NFC normalization (@ref UTF8PROC_COMPOSE).
NFD normalization (@ref UTF8PROC_DECOMPOSE).
NFKC normalization (@ref UTF8PROC_COMPOSE and @ref UTF8PROC_COMPAT).
NFKD normalization (@ref UTF8PROC_DECOMPOSE and @ref UTF8PROC_COMPAT).
Return the Unicode category for the codepoint (one of the @ref utf8proc_category_t constants.)
Return the two-letter (nul-terminated) Unicode category string for the codepoint (e.g. "Lu" or "Co").
Given a codepoint, return a character width analogous to wcwidth(codepoint), except that a width of 0 is returned for non-printable codepoints instead of -1 as in wcwidth.
Check if a codepoint is valid (regardless of whether it has been assigned a value by the current Unicode standard).
The same as @ref utf8proc_decompose_char, but acts on a whole UTF-8 string and orders the decomposed sequences correctly.
Decompose a codepoint into an array of codepoints.
The same as @ref utf8proc_decompose, but also takes a custom_func mapping function that is called on each codepoint in str before any other transformations (along with a custom_data pointer that is passed through to custom_func). The custom_func argument is ignored if it is NULL. See also @ref utf8proc_map_custom.
Encodes the codepoint as an UTF-8 string in the byte array pointed to by dst. This array must be at least 4 bytes long.
Returns an informative error string for the given utf8proc error code (e.g. the error codes returned by @ref utf8proc_map).
Look up the properties for a given codepoint.
Same as @ref utf8proc_grapheme_break_stateful, except without support for the Unicode 9 additions to the algorithm. Supported for legacy reasons.
Given a pair of consecutive codepoints, return whether a grapheme break is permitted between them (as defined by the extended grapheme clusters in UAX#29).
Reads a single codepoint from the UTF-8 sequence being pointed to by str. The maximum number of bytes read is strlen, unless strlen is negative (in which case up to 4 bytes are read).
Maps the given UTF-8 string pointed to by str to a new UTF-8 string, allocated dynamically by malloc and returned via dstptr.
Like @ref utf8proc_map, but also takes a custom_func mapping function that is called on each codepoint in str before any other transformations (along with a custom_data pointer that is passed through to custom_func). The custom_func argument is ignored if it is NULL.
Normalizes the sequence of length codepoints pointed to by buffer in-place (i.e., the result is also stored in buffer).
Reencodes the sequence of length codepoints pointed to by buffer UTF-8 data in-place (i.e., the result is also stored in buffer). Can optionally normalize the UTF-32 sequence prior to UTF-8 conversion.
Given a codepoint c, return the codepoint of the corresponding lower-case character, if any; otherwise (if there is no lower-case variant, or if c is not a valid codepoint) return c.
Given a codepoint c, return the codepoint of the corresponding title-case character, if any; otherwise (if there is no title-case variant, or if c is not a valid codepoint) return c.
Given a codepoint c, return the codepoint of the corresponding upper-case character, if any; otherwise (if there is no upper-case variant, or if c is not a valid codepoint) return c.
Returns the utf8proc API version as a string MAJOR.MINOR.PATCH (http://semver.org format), possibly with a "-dev" suffix for development versions.
Array containing the byte lengths of a UTF-8 encoded codepoint based on the first byte.