Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/locale/wctype.c
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | const char *propnames = | ||||
"print\0" | "print\0" | ||||
"punct\0" | "punct\0" | ||||
"space\0" | "space\0" | ||||
"upper\0" | "upper\0" | ||||
"xdigit\0" | "xdigit\0" | ||||
"ideogram\0" /* BSD extension */ | "ideogram\0" /* BSD extension */ | ||||
"special\0" /* BSD extension */ | "special\0" /* BSD extension */ | ||||
"phonogram\0" /* BSD extension */ | "phonogram\0" /* BSD extension */ | ||||
"number\0" /* BSD extension */ | |||||
"rune\0"; /* BSD extension */ | "rune\0"; /* BSD extension */ | ||||
static const wctype_t propmasks[] = { | static const wctype_t propmasks[] = { | ||||
_CTYPE_A|_CTYPE_D, | _CTYPE_A|_CTYPE_N, | ||||
_CTYPE_A, | _CTYPE_A, | ||||
_CTYPE_B, | _CTYPE_B, | ||||
_CTYPE_C, | _CTYPE_C, | ||||
_CTYPE_D, | _CTYPE_D, | ||||
_CTYPE_G, | _CTYPE_G, | ||||
_CTYPE_L, | _CTYPE_L, | ||||
_CTYPE_R, | _CTYPE_R, | ||||
_CTYPE_P, | _CTYPE_P, | ||||
_CTYPE_S, | _CTYPE_S, | ||||
_CTYPE_U, | _CTYPE_U, | ||||
_CTYPE_X, | _CTYPE_X, | ||||
_CTYPE_I, | _CTYPE_I, | ||||
_CTYPE_T, | _CTYPE_T, | ||||
_CTYPE_Q, | _CTYPE_Q, | ||||
_CTYPE_N, | |||||
0xFFFFFF00L | 0xFFFFFF00L | ||||
}; | }; | ||||
size_t len1, len2; | size_t len1, len2; | ||||
const char *p; | const char *p; | ||||
const wctype_t *q; | const wctype_t *q; | ||||
len1 = strlen(property); | len1 = strlen(property); | ||||
q = propmasks; | q = propmasks; | ||||
Show All 13 Lines |