/*++ /* NAME /* parse_utf8_char 3h /* SUMMARY /* parse one UTF-8 multibyte character /* SYNOPSIS /* #include <parse_utf8_char.h> /* /* char *parse_utf8_char(str, end) /* const char *str; /* const char *end; /* DESCRIPTION /* parse_utf8_char() determines if the byte sequence starting /* at \fBstr\fR begins with a complete UTF-8 character as /* defined in RFC 3629. That is, a proper encoding of code /* points U+0000..U+10FFFF, excluding over-long encodings and /* excluding U+D800..U+DFFF surrogates. /* /* When the byte sequence starting at \fBstr\fR begins with a /* complete UTF-8 character, this function returns a pointer /* to the last byte in that character. Otherwise, it returns /* a null pointer. /* /* The \fBend\fR argument is either null (the byte sequence /* starting at \fBstr\fR must be null terminated), or \fBend /* - str\fR specifies the length of the byte sequence. /* BUGS /* Code points in the range U+FDD0..U+FDEF and ending in FFFE /* or FFFF are non-characters in UNICODE. This function does /* not reject these. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA /* /* Wietse Venema /* porcupine.org /* Amawalk, NY 10501, USA
/*--*/
/* *Systemlibrary.
*/ #include <sys_defs.h>
#ifdef NO_INLINE #defineinline/* */ #endif
/* parse_utf8_char - parse and validate one UTF8 multibyte sequence */
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.