diff options
Diffstat (limited to 'docs')
45 files changed, 0 insertions, 979 deletions
diff --git a/docs/u8c_abrt.3 b/docs/u8c_abrt.3 deleted file mode 100644 index 7c92b28..0000000 --- a/docs/u8c_abrt.3 +++ /dev/null @@ -1,19 +0,0 @@ -.TH "u8c_abrt" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_abrt - Abort - Abort program with diagnostic information. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/main.h> */ -# include <u8c/main.h -# define u8c_abrt(why) u8c_abrtfn(__FILE__,(long)__LINE__,__func__,why) -\f[R] -.fi -.SH DESCRIPTION -.PP -The macro \f[B]u8c_abrt\f[R] expands to a valid call to \f[B]u8c_abrtfn\f[R]. -.SH VERSION -.PP -u8c 21 diff --git a/docs/u8c_abrtfn.3 b/docs/u8c_abrtfn.3 deleted file mode 100644 index 5fbba82..0000000 --- a/docs/u8c_abrtfn.3 +++ /dev/null @@ -1,27 +0,0 @@ -.TH "u8c_abrtfn" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_abrtfn - Abort functions - Abort program with diagnostic information. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/main.h> */ -# include <stdbool.h -# include <stdnoreturn.h> -# include <uchar.h> -extern noreturn bool u8c_abrtfn(char const * const fl,long const ln,char const * const fn,char const * const why); -\f[R] -.fi -.SH DESCRIPTION -.PP -The function \f[B]u8c_abrtfn\f[R] aborts the program and prints diagnostic infiormation to \f[B]stderr\f[R]. -.PP -\f[B]__FILE__\f[R] is to be passed at \f[B]fl\f[R], \f[B](long)__LINE__\f[R] at \f[B]ln\f[R], and \f[B]__func__\f[R] at \f[B]fn\f[R]. A standard string (\f[B]char const *\f[R]) must be passed at \f[B]why\f[R], which explains the reason for aborting. -.PP -All arguments are printed, in the end followed by a timestamp representing the number of seconds passed since the current epoch (as returned by \f[B]time(NULL)\f[R]). -.PP -It's recommended to use the convenience macro \f[B]u8c_abrt\f[R], as it expands to a valid call to \f[B]u8c_abrt\f[R]. -.SH VERSION -.PP -u8c 16 (as \f[B]u8c_abrt\f[R]), u8c 21 diff --git a/docs/u8c_col.3 b/docs/u8c_col.3 deleted file mode 100644 index 784a67d..0000000 --- a/docs/u8c_col.3 +++ /dev/null @@ -1,34 +0,0 @@ -.TH "u8c_col" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_col - Colour - Set of macros expanding to hexadecimal colour value expressions. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/fmt.h> */ -# include <stdint.h> -static uint_least32_t const u8c_col_azure = UINT32_C(0x3DA9E1); -static uint_least32_t const u8c_col_ash = UINT32_C(0xD2D2CC); -static uint_least32_t const u8c_col_black = UINT32_C(0x444747); -static uint_least32_t const u8c_col_blue = UINT32_C(0x3D3DE1); -static uint_least32_t const u8c_col_chartreuse = UINT32_C(0xA9E13D); -static uint_least32_t const u8c_col_cyan = UINT32_C(0x3DE1E1); -static uint_least32_t const u8c_col_green = UINT32_C(0x3ED13D); -static uint_least32_t const u8c_col_magenta = UINT32_C(0xE13DE1); -static uint_least32_t const u8c_col_mint = UINT32_C(0x3DE1A9); -static uint_least32_t const u8c_col_orange = UINT32_C(0xE1A93D); -static uint_least32_t const u8c_col_red = UINT32_C(0xE13D3D); -static uint_least32_t const u8c_col_rose = UINT32_C(0xE13DA9); -static uint_least32_t const u8c_col_silver = UINT32_C(0x9CA1A1); -static uint_least32_t const u8c_col_violet = UINT32_C(0xA93dE1); -static uint_least32_t const u8c_col_white = UINT32_C(0xF8F8F1); -static uint_least32_t const u8c_col_yellow = UINT32_C(0xE1E13D); -\f[R] -.fi -.SH DESCRIPTION -.PP -The constant set \f[B]u8c_col\f[R] contains sixteen constants with colour values. -.SH VERSION -.PP -u8c 2 diff --git a/docs/u8c_dbg.3 b/docs/u8c_dbg.3 deleted file mode 100644 index d461d4e..0000000 --- a/docs/u8c_dbg.3 +++ /dev/null @@ -1,19 +0,0 @@ -.TH "u8c_dbg" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_dbg - Debug - Whether or not the library is in debug mode. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/main.h> */ -# include <stdbool.h> -extern bool const u8c_dbg; -\f[R] -.fi -.SH DESCRIPTION -.PP -The constant \f[B]u8c_dbg\f[R] has value \f[B]false\f[R] if u8c has been compiled with debugging disabled, otherwise \f[B]true\f[R]. -.SH VERSION -.PP -u8c 0 (as \f[B]u8c_debug\f[R]), u8c 16 diff --git a/docs/u8c_dbgprint.3 b/docs/u8c_dbgprint.3 deleted file mode 100644 index 3d400dc..0000000 --- a/docs/u8c_dbgprint.3 +++ /dev/null @@ -1,24 +0,0 @@ -.TH "u8c_dbgprint" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_dbgprint - Debug print - Print line if debug mode is enabled. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/fmt.h> */ -# if defined(NDEBUG) -# define u8c_dbgprint(...) ((void)0x0) -# else -# include <u8c/println.h> -# include <stdio.h> -# define u8c_dbgprint(...) u8c_println(stderr,__VA_ARGS__) -# endif -\f[R] -.fi -.SH DESCRIPTION -.PP -The function-like macro \f[B]u8c_dbgprint\f[R] passes it\[cq]s input to \f[B]u8c_println\f[R] (if the \f[B]NDEBUG\f[R] macro is defined, nothing is done). -.SH VERSION -.PP -u8c 0 diff --git a/docs/u8c_end.3 b/docs/u8c_end.3 deleted file mode 100644 index 593af14..0000000 --- a/docs/u8c_end.3 +++ /dev/null @@ -1,25 +0,0 @@ -.TH "u8c_end" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_end - End - Finalise u8c and clean up. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/main.h> */ -# include <stdbool.h> -extern bool u8c_end(void); -\f[R] -.fi -.SH DESCRIPTION -.PP -The function \f[B]u8c_end\f[R] ends the current u8c session. -.PP -If \f[B]u8c_end\f[R] is called before \f[B]u8c_init\f[R], \f[B]false\f[R] is returned, and nothing has happened. -.PP -If it is called after it has already been called, unless \f[B]u8c_init\f[R] has been called in the meantime, \f[B]false\f[R] is returned, and nothing has happened. -.PP -Even if \f[B]u8c_thrdsafe\f[R] evaluates to \f[B]true\f[R], this function is never thread-safe. -.SH VERSION -.PP -u8c 2 diff --git a/docs/u8c_errhandltyp.3 b/docs/u8c_errhandltyp.3 deleted file mode 100644 index 0477d2c..0000000 --- a/docs/u8c_errhandltyp.3 +++ /dev/null @@ -1,21 +0,0 @@ -.TH "u8c_errhandltyp" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_errhandltyp - Error handler type - Type to be used for error handlers passerd to \f[B]u8c_regerrhandl\f[R]. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/err.h> */ -# include <u8c/errtyp.h> -typedef void (* u8c_errhandltyp)(enum u8c_errtyp); -\f[R] -.fi -.SH DESCRIPTION -.PP -The type definition \f[B]u8c_errhandltyp\f[R] is for convenience. -.PP -It is to be the type of the error handler accepted by \f[B]u8c_regerrhandl\f[R]. -.SH VERSION -.PP -u8c 19 diff --git a/docs/u8c_errtyp.3 b/docs/u8c_errtyp.3 deleted file mode 100644 index f42ac10..0000000 --- a/docs/u8c_errtyp.3 +++ /dev/null @@ -1,31 +0,0 @@ -.TH "u8c_errtyp" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_errtyp - Error type - Enumeration for specifying the type of error. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/err.h> */ -enum u8c_errtyp { - u8c_errtyp_badalloc, - u8c_errtyp_badio, - u8c_errtyp_u32oor, - u8c_errtyp_u8oor, - u8c_errtyp_deferr, - u8c_errtyp_untermin, - u8c_errtyp_maxerrtyp, - u8c_errtyp_all, -}; -\f[R] -.fi -.SH DESCRIPTION -.PP -The enumeration \f[B]u8c_errtyp\f[R] contains the various types of error to be used in u8c. -.PP -The member \f[B]u8c_errtyp_maxerrtyp\f[R] must \f[I]NEVER\f[R] be passed to any u8c function. -.PP -The member \f[B]u8c_errtyp_all\f[R] is to be passed to \f[B]u8c_regerrhandl\f[R] only. -.SH VERSION -.PP -u8c 19 diff --git a/docs/u8c_fmt.3 b/docs/u8c_fmt.3 deleted file mode 100644 index e1499fd..0000000 --- a/docs/u8c_fmt.3 +++ /dev/null @@ -1,19 +0,0 @@ -.TH "u8c_fmt" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_fmt - Format - Format UTF-32 string. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/fmt.h> */ -# include <stddef.h> -# include <uchar.h> -extern bool u8c_fmt(size_t * const outsz,char32_t const * * const out,char32_t const * const in,...); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 2 diff --git a/docs/u8c_fmttyp.3 b/docs/u8c_fmttyp.3 deleted file mode 100644 index 04c4391..0000000 --- a/docs/u8c_fmttyp.3 +++ /dev/null @@ -1,46 +0,0 @@ -.TH "u8c_fmttyp" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_fmttyp - Format type - Format specifier to be used by \f[C]u8c_fmt\f[R] or \f[C]u8c_vfmt\f[R]. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/fmt.h> */ -enum u8c_fmttyp { - u8c_fmttyp_bgcol, - u8c_fmttyp_bgcol0, - u8c_fmttyp_bool, - u8c_fmttyp_byt, - u8c_fmttyp_chr, - u8c_fmttyp_fgcol, - u8c_fmttyp_fgcol0, - u8c_fmttyp_int, - u8c_fmttyp_int16, - u8c_fmttyp_int32, - u8c_fmttyp_int64, - u8c_fmttyp_int8, - u8c_fmttyp_llong, - u8c_fmttyp_long, - u8c_fmttyp_sbyt, - u8c_fmttyp_shrt, - u8c_fmttyp_str, - u8c_fmttyp_sz, - u8c_fmttyp_tm, - u8c_fmttyp_ubyt, - u8c_fmttyp_uint, - u8c_fmttyp_uint16, - u8c_fmttyp_uint32, - u8c_fmttyp_uint64, - u8c_fmttyp_uint8, - u8c_fmttyp_ulong, - u8c_fmttyp_ullong, - u8c_fmttyp_ushrt, -}; -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 0 diff --git a/docs/u8c_geterr.3 b/docs/u8c_geterr.3 deleted file mode 100644 index e19d50d..0000000 --- a/docs/u8c_geterr.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_geterr" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_geterr - Get error - Get last error set by \f[C]u8c_seterr\f[R]. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/err.h> */ -# include <stdbool.h> -# include <stddef.h> -# include <uchar.h> -extern bool u8c_geterr(size_t * const sz,char32_t const * * const out); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 2 diff --git a/docs/u8c_init.3 b/docs/u8c_init.3 deleted file mode 100644 index 35f6346..0000000 --- a/docs/u8c_init.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_init" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_init - Initialise - Initialise and start an u8c session. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/main.h> */ -# include <stdbool.h> -# include <u8c/errtyp.h> -extern bool u8c_init(void); -\f[R] -.fi -.SH DESCRIPTION -.PP -Even if \f[B]u8c_thrdsafe\f[R] evaluates to \f[B]true\f[R], this function is never thread-safe. -.SH VERSION -.PP -u8c 2 diff --git a/docs/u8c_isalnum.3 b/docs/u8c_isalnum.3 deleted file mode 100644 index 273c673..0000000 --- a/docs/u8c_isalnum.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_isalnum" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_isalnum - Is alphanumeric - Check if a character is alphanumeric. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/is.h> */ -# include <stdbool.h> -# include <stdint.h> -# include <uchar.h> -extern bool u8c_isalnum(uint_least8_t * const res,char32_t const chr); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c X diff --git a/docs/u8c_isalpha.3 b/docs/u8c_isalpha.3 deleted file mode 100644 index a063974..0000000 --- a/docs/u8c_isalpha.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_isalpha" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_isalpha - Is alphabetic - Check if a character is alphabetic. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/is.h> */ -# include <stdbool.h> -# include <stdint.h> -# include <uchar.h> -extern bool u8c_isalpha(uint_least8_t * const res,char32_t const chr); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c X diff --git a/docs/u8c_iscntrl.3 b/docs/u8c_iscntrl.3 deleted file mode 100644 index b4fa794..0000000 --- a/docs/u8c_iscntrl.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_iscntrl" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_iscntrl - Is control - Check if a character is a control character. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/is.h> */ -# include <stdbool.h> -# include <stdint.h> -# include <uchar.h> -extern bool u8c_iscntrl(uint_least8_t * const res,char32_t const chr); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c X diff --git a/docs/u8c_isdigit.3 b/docs/u8c_isdigit.3 deleted file mode 100644 index 0e93230..0000000 --- a/docs/u8c_isdigit.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_isdigit" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_isdigit - Is digit - Check if a character is a dozenal digit. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/is.h> */ -# include <stdbool.h> -# include <stdint.h> -# include <uchar.h> -extern bool u8c_isdigit(uint_least8_t * const res,char32_t const chr); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c X diff --git a/docs/u8c_ispunct.3 b/docs/u8c_ispunct.3 deleted file mode 100644 index db9878e..0000000 --- a/docs/u8c_ispunct.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_ispunct" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_ispunct - Is punctuation - Check if a character is a punctuation mark. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/is.h> */ -# include <stdbool.h> -# include <stdint.h> -# include <uchar.h> -extern bool u8c_ispunct(uint_least8_t * const res,char32_t const chr); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c X diff --git a/docs/u8c_isspace.3 b/docs/u8c_isspace.3 deleted file mode 100644 index e78395d..0000000 --- a/docs/u8c_isspace.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_isspace" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_isspace - Is space - Check if a character is an whitespace. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/is.h> */ -# include <stdbool.h> -# include <stdint.h> -# include <uchar.h> -extern bool u8c_isspace(uint_least8_t * const res,char32_t const chr); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c X diff --git a/docs/u8c_isxdigit.3 b/docs/u8c_isxdigit.3 deleted file mode 100644 index 7bb7649..0000000 --- a/docs/u8c_isxdigit.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_isxdigit" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_isxdigit - Is hexadecimal digit - Check if a character is a hexadecimal digit. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/is.h> */ -# include <stdbool.h> -# include <stdint.h> -# include <uchar.h> -extern bool u8c_isxdigit(uint_least8_t * const res,char32_t const chr); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 16 diff --git a/docs/u8c_print.3 b/docs/u8c_print.3 deleted file mode 100644 index 7b5f55f..0000000 --- a/docs/u8c_print.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_print" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_print - Print - Format UTF-32 and print it to file. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/fmt.h> */ -# include <stdbool.h> -# include <stdio.h> -# include <uchar.h> -extern bool u8c_print(FILE * fp,char32_t const * const msg,...); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 2 diff --git a/docs/u8c_println.3 b/docs/u8c_println.3 deleted file mode 100644 index 14b8131..0000000 --- a/docs/u8c_println.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_println" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_println - Print line - Format UTF-32 and print it to file (followed by a new-line). -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/fmt.h> */ -# include <stdbool.h> -# include <stdio.h> -# include <uchar.h> -extern bool u8c_println(FILE * fp,char32_t const * const msg,...); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 0 (as u8c_print), u8c 2 diff --git a/docs/u8c_regerrhandl.3 b/docs/u8c_regerrhandl.3 deleted file mode 100644 index 27be625..0000000 --- a/docs/u8c_regerrhandl.3 +++ /dev/null @@ -1,23 +0,0 @@ -.TH "u8c_regerrhandl" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_regerrhandl - Register error handler - Register error handler function to be called by \f[B]u8c_seterr\f[R]. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/err.h> */ -# include <stdbool.h> -# include <u8c/errhandltyp.h> -# include <u8c/errtyp.h> -extern bool u8c_regerrhandl(enum u8c_errtyp typ,u8c_errhandltyp errhandl); -\f[R] -.fi -.SH DESCRIPTION -.PP -Registers an error handler to be called when an error of type \f[B]typ\f[R] is detected. -.PP -If \f[B]u8c_errtyp_all\f[R] is passed at \f[B]typ\f[R], the error handler is registered for all error types. -.SH VERSION -.PP -u8c 19 diff --git a/docs/u8c_seterr.3 b/docs/u8c_seterr.3 deleted file mode 100644 index be9ed98..0000000 --- a/docs/u8c_seterr.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_seterr" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_seterr - Set error - Set error and call error handler. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/err.h> */ -# include <stdbool.h> -# include <u8c/errtyp.h> -# include <uchar.h> -extern bool u8c_seterr(char32_t const * const msg,enum u8c_errtyp _typ); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 10 diff --git a/docs/u8c_setfmt.3 b/docs/u8c_setfmt.3 deleted file mode 100644 index 65d7646..0000000 --- a/docs/u8c_setfmt.3 +++ /dev/null @@ -1,19 +0,0 @@ -.TH "u8c_setfmt" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_setfmt - Set format - Set format to be used by \f[B]u8c_fmt\f[R] and company. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/fmt.h> */ -# include <stdbool.h> -# include <stdint.h> -extern bool u8c_setfmt(uint_least8_t const base,uint_least8_t const endian); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 16 diff --git a/docs/u8c_thrdsafe.3 b/docs/u8c_thrdsafe.3 deleted file mode 100644 index 09a0e3f..0000000 --- a/docs/u8c_thrdsafe.3 +++ /dev/null @@ -1,23 +0,0 @@ -.TH "u8c_thrdsafe" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_thrdsafe - Thread-safe - Whether or not u8c is thread-safe. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/main.h> */ -# include <stdbool.h> -extern bool const u8c_thrdsafe; -\f[R] -.fi -.SH DESCRIPTION -.PP -The constant \f[B]u8c_thrdsafe\f[R] evaluates to \f[B]true\f[R] if u8c is thread-safe, that is, the following functions (that othwerise wouldn't be thread-safe) may be called from multiple threads: \f[B]u8c_geterr\f[R], \f[B]u8c_regerrhandl\f[R], \f[B]u8c_seterr\f[R], and \f[B]u8c_setfmt\f[R]. -.PP -If it evaluates to \f[B]false\f[R], the functions listed may only be called from one thread. -.PP -The functions \f[B]u8c_end\f[R] and \f[B]u8c_init\f[R] may never be called from more than one thread. -.SH VERSION -.PP -u8c 0 diff --git a/docs/u8c_u16alloc.3 b/docs/u8c_u16alloc.3 deleted file mode 100644 index 96a59a6..0000000 --- a/docs/u8c_u16alloc.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_u16alloc" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u16alloc - UTF-16 allocate - Allocate UTF-16 string. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u16.h> */ -# include <stdbool.h> -# include <stddef.h> -# include <uchar.h> -extern bool u8c_u16alloc(char16_t * * const u16,size_t const sz); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 20 diff --git a/docs/u8c_u16free.3 b/docs/u8c_u16free.3 deleted file mode 100644 index 7674794..0000000 --- a/docs/u8c_u16free.3 +++ /dev/null @@ -1,19 +0,0 @@ -.TH "u8c_u16free" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u16free - UTF-16 free - Deallocate UTF-16 string and set it to \f[B]NULL\f[R]. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u16.h> */ -# include <stdbool.h> -# include <uchar.h> -extern bool u8c_u16free(char16_t const * * const u16); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 20 diff --git a/docs/u8c_u32alloc.3 b/docs/u8c_u32alloc.3 deleted file mode 100644 index 4ced722..0000000 --- a/docs/u8c_u32alloc.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_u32alloc" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u32alloc - UTF-32 allocate - Allocate UTF-32 string. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u32.h> */ -# include <stdbool.h> -# include <stddef.h> -# include <uchar.h> -extern bool u8c_u32alloc(char32_t * * const u32,size_t const sz); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 16 diff --git a/docs/u8c_u32cat.3 b/docs/u8c_u32cat.3 deleted file mode 100644 index 78d8a5c..0000000 --- a/docs/u8c_u32cat.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_u32cat" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u32cat - UTF-32 concatenate - Concatenate two UTF-32 strings. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u32.h> */ -# include <stdbool.h> -# include <stddef.h> -# include <uchar.h> -extern bool u8c_u32cat(size_t * const sz,char32_t const * * const out,char32_t const * const lstr,char32_t const * const rstr); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 16 diff --git a/docs/u8c_u32cmp.3 b/docs/u8c_u32cmp.3 deleted file mode 100644 index 2954a8d..0000000 --- a/docs/u8c_u32cmp.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_u32cmp" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u32cmp - UTF-32 compare - Compare two UTF-32 strings. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u32.h> */ -# include <stdbool.h> -# include <stdint.h> -# include <uchar.h> -extern bool u8c_u32cmp(uint_least8_t * const res,char32_t const * const lstr,char32_t const * const rstr); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 9 diff --git a/docs/u8c_u32cp.3 b/docs/u8c_u32cp.3 deleted file mode 100644 index 507e36e..0000000 --- a/docs/u8c_u32cp.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_u32cp" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u32cp - UTF-32 copy - Copy an UTF-32 string. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u32.h> */ -# include <stdbool.h> -# include <stddef.h> -# include <uchar.h> -extern bool u8c_u32cp(size_t * const sz,char32_t const * * const out,char32_t const * const in); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 2 diff --git a/docs/u8c_u32fndchr.3 b/docs/u8c_u32fndchr.3 deleted file mode 100644 index 566985e..0000000 --- a/docs/u8c_u32fndchr.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_u32fndchr" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u32fndchr - UTF-32 find character - Find the first occurence of an UTF-32 character in an UTF-32 string. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u32.h> */ -# include <stdbool.h> -# include <stddef.h> -# include <uchar.h> -extern bool u8c_u32fndchr(size_t * const pos,char32_t const * const in,char32_t const chr); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 16 diff --git a/docs/u8c_u32fndpat.3 b/docs/u8c_u32fndpat.3 deleted file mode 100644 index b74da9b..0000000 --- a/docs/u8c_u32fndpat.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_u32fndpat" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u32fndpat - UTF-32 find pattern - Find the first occurence of an UTF-32 pattern (string) in an UTF-32 string. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u32.h> */ -# include <stdbool.h> -# include <stddef.h> -# include <uchar.h> -extern bool u8c_u32fndpat(size_t * const pos,char32_t const * const in,char32_t const * const pat); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 16 diff --git a/docs/u8c_u32free.3 b/docs/u8c_u32free.3 deleted file mode 100644 index 0dd58f1..0000000 --- a/docs/u8c_u32free.3 +++ /dev/null @@ -1,19 +0,0 @@ -.TH "u8c_u32free" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u32free - UTF-32 free - Deallocate UTF-32 string and set it to \f[B]NULL\f[R]. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u32.h> */ -# include <stdbool.h> -# include <uchar.h> -extern bool u8c_u32free(char32_t const * * const u32); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 14 diff --git a/docs/u8c_u32ins.3 b/docs/u8c_u32ins.3 deleted file mode 100644 index 8dc54c7..0000000 --- a/docs/u8c_u32ins.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_u32ins" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u32ins - UTF-32 insert - Insert an UTF-32 string into another UTF-32 string. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u32.h> */ -# include <stdbool.h> -# include <stddef.h> -# include <uchar.h> -extern bool u8c_u32ins(size_t * const sz,char32_t const * * const out,size_t const pos,char32_t const * const str0,char32_t const * const str1); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 19 diff --git a/docs/u8c_u32max.3 b/docs/u8c_u32max.3 deleted file mode 100644 index fdb7270..0000000 --- a/docs/u8c_u32max.3 +++ /dev/null @@ -1,18 +0,0 @@ -.TH "u8c_u32max" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u32max - UTF-32 maximum - Maximum valid UTF-32 value. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u32.h> */ -# include <uchar.h> -static char32_t const u8c_u32max = U'\x10FFFF'; -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 16 (as \f[B]u8c_unimax\f[R]), u8c 21 diff --git a/docs/u8c_u32substr.3 b/docs/u8c_u32substr.3 deleted file mode 100644 index 8615447..0000000 --- a/docs/u8c_u32substr.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_u32substr" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u32substr - UTF-32 sub-string - Get sub-string of an UTF-32 string. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u32.h> */ -# include <stdbool.h> -# include <stddef.h> -# include <uchar.h> -extern bool u8c_u32substr(char32_t const * * const out,size_t const start,size_t const len,char32_t const * const in); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 16 diff --git a/docs/u8c_u32sz.3 b/docs/u8c_u32sz.3 deleted file mode 100644 index 61254b7..0000000 --- a/docs/u8c_u32sz.3 +++ /dev/null @@ -1,20 +0,0 @@ -.TH "u8c_u32sz" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u32sz - UTF-32 size - Get the size of an UTF-32 string. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u32.h> */ -# include <stdbool.h> -# include <stddef.h> -# include <uchar.h> -extern bool u8c_u32sz(size_t * sz,char32_t const * in); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 2 diff --git a/docs/u8c_u8alloc.3 b/docs/u8c_u8alloc.3 deleted file mode 100644 index ab0cf15..0000000 --- a/docs/u8c_u8alloc.3 +++ /dev/null @@ -1,19 +0,0 @@ -.TH "u8c_u8alloc" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u8alloc - UTF-8 allocate - Allocate UTF-8 string. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u8.h> */ -# include <stdbool.h> -# include <stddef.h> -extern bool u8c_u8alloc(unsigned char * * const u32,size_t const sz); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 16 diff --git a/docs/u8c_u8dec.3 b/docs/u8c_u8dec.3 deleted file mode 100644 index e4f7fc8..0000000 --- a/docs/u8c_u8dec.3 +++ /dev/null @@ -1,28 +0,0 @@ -.\" Automatically generated by Pandoc 2.14.0.2 -.\" -.TH "" "" "" "" "" -.hy -.SH NAME -.PP -u8c_u8dec - UTF-8 decode - Convert an UTF-8 string to UTF-32. -.SH DECLARATION -.IP -.nf -\f[C] -/* # include <u8c/u8.h> */ -# include <stdbool.h> -# include <stddef.h> -# include <uchar.h> -extern bool u8c_u8dec(size_t * const sz,char32_t const * * const out,unsigned char const * const in); -\f[R] -.fi -.SH DESCRIPTION -.PP -The function \f[C]u8c_u8dec\f[R] converts the given UTF-8 string -(\f[I]in\f[R]) to UTF-32 (\f[I]out\f[R]). -.PP -The size of the output string (excluding the null-terminator) is placed -into \f[I]sz\f[R], if [\f[I]sz\f[R]] is not equal to \f[I]NULL\f[R]. -.SH VERSION -.PP -u8c 0 diff --git a/docs/u8c_u8enc.3 b/docs/u8c_u8enc.3 deleted file mode 100644 index d6fc549..0000000 --- a/docs/u8c_u8enc.3 +++ /dev/null @@ -1,28 +0,0 @@ -.\" Automatically generated by Pandoc 2.14.0.2 -.\" -.TH "" "" "" "" "" -.hy -.SH NAME -.PP -u8c_u8enc - UTF-8 encode - Convert an UTF-32 string to UTF-8. -.SH DECLARATION -.IP -.nf -\f[C] -/* # include <u8c/u8.h> */ -# include <stdbool.h> -# include <stddef.h> -# include <uchar.h> -extern bool u8c_u8enc(size_t * const sz,unsigned char const * * const out,char32_t const * const in); -\f[R] -.fi -.SH DESCRIPTION -.PP -The function \f[C]u8c_u8enc\f[R] converts the given UTF-32 string -(\f[B]in\f[R]) to UTF-8 (\f[B]out\f[R]). -.PP -The size of the output string (excluding the null-terminator) is placed -into \f[B]sz\f[R], if [\f[B]sz\f[R]] is not equal to \f[I]NULL\f[R]. -.SH VERSION -.PP -u8c 0 diff --git a/docs/u8c_u8free.3 b/docs/u8c_u8free.3 deleted file mode 100644 index da10a20..0000000 --- a/docs/u8c_u8free.3 +++ /dev/null @@ -1,18 +0,0 @@ -.TH "u8c_u8free" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_u8free - UTF-8 free - Deallocate UTF-8 string and set it to \f[B]NULL\f[R]. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/u8.h> */ -# include <stdbool.h> -extern bool u8c_u8free(unsigned char const * * const u8); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 16 diff --git a/docs/u8c_ver.3 b/docs/u8c_ver.3 deleted file mode 100644 index c1a2dc3..0000000 --- a/docs/u8c_ver.3 +++ /dev/null @@ -1,18 +0,0 @@ -.TH "u8c_ver" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_ver - Version - Version of the u8c API. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/main.h> */ -# include <stdint.h> -static uint_least64_t const u8c_ver = /* version */; -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 0 diff --git a/docs/u8c_vfmt.3 b/docs/u8c_vfmt.3 deleted file mode 100644 index 0eff93a..0000000 --- a/docs/u8c_vfmt.3 +++ /dev/null @@ -1,21 +0,0 @@ -.TH "u8c_vfmt" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_vfmt - Variadic format - Format UTF-32 string. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/fmt.h> */ -# include <stdarg.h> -# include <stdbool.h> -# include <stddef.h> -# include <uchar.h> -extern bool u8c_vfmt(size_t * const sz,char32_t const * * const out,char32_t const * const in,va_list args); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 2 diff --git a/docs/u8c_vprint.3 b/docs/u8c_vprint.3 deleted file mode 100644 index e3d58f6..0000000 --- a/docs/u8c_vprint.3 +++ /dev/null @@ -1,21 +0,0 @@ -.TH "u8c_vprint" "3" "" "u8c" "u8c API Manual" -.SH NAME -.PP -u8c_vprint - Variadic print - Format UTF-32 and print it to file. -.SH DECLARATION -.PP -.nf -\f[C] -/* # include <u8c/fmt.h> */ -# include <stdarg.h> -# include <stdbool.h> -# include <stdio.h> -# include <uchar.h> -extern bool u8c_vprint(FILE * fp,char32_t const * const msg,va_list args); -\f[R] -.fi -.SH DESCRIPTION -.PP -.SH VERSION -.PP -u8c 2 |