int utf8version_is_supported(conststruct unicode_map *um, unsignedint version);
/* * Determine the length of the normalized from of the string, * excluding any terminating NULL byte. * Returns 0 if only ignorable code points are present. * Returns -1 if the input is not valid UTF-8.
*/
ssize_t utf8nlen(conststruct unicode_map *um, enum utf8_normalization n, constchar *s, size_t len);
/* Needed in struct utf8cursor below. */ #define UTF8HANGULLEAF (12)
/* * Initialize a utf8cursor to normalize a string. * Returns 0 on success. * Returns -1 on failure.
*/ int utf8ncursor(struct utf8cursor *u8c, conststruct unicode_map *um, enum utf8_normalization n, constchar *s, size_t len);
/* * Get the next byte in the normalization. * Returns a value > 0 && < 256 on success. * Returns 0 when the end of the normalization is reached. * Returns -1 if the string being normalized is not valid UTF-8.
*/ externint utf8byte(struct utf8cursor *u8c);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.