/* Unicode has changed over the years. Unicode code points no longer * fit into 16 bits; as of Unicode 5 valid code points range from 0 * to 0x10ffff (17 planes, where each plane holds 65536 code points). * * The original decision to represent Unicode characters as 16-bit * wchar_t values is now outdated. But plane 0 still includes the * most commonly used characters, so we will retain it. The newer * 32-bit unicode_t type can be used when it is necessary to * represent the full Unicode character set.
*/
staticinlineint nls_strnicmp(struct nls_table *t, constunsignedchar *s1, constunsignedchar *s2, int len)
{ while (len--) { if (nls_tolower(t, *s1++) != nls_tolower(t, *s2++)) return 1;
}
return 0;
}
/* * nls_nullsize - return length of null character for codepage * @codepage - codepage for which to return length of NULL terminator * * Since we can't guarantee that the null terminator will be a particular * length, we have to check against the codepage. If there's a problem * determining it, assume a single-byte NULL terminator.
*/ staticinlineint
nls_nullsize(conststruct nls_table *codepage)
{ int charlen; char tmp[NLS_MAX_CHARSET_SIZE];
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 ist noch experimentell.