Lines Matching refs:unichar

309 	unsigned int unichar = 0;  in utf8decode()  local
312 unichar = *s; in utf8decode()
314 unichar = *s++ & 0x1F; in utf8decode()
315 unichar <<= UTF8_V_SHIFT; in utf8decode()
316 unichar |= *s & 0x3F; in utf8decode()
318 unichar = *s++ & 0x0F; in utf8decode()
319 unichar <<= UTF8_V_SHIFT; in utf8decode()
320 unichar |= *s++ & 0x3F; in utf8decode()
321 unichar <<= UTF8_V_SHIFT; in utf8decode()
322 unichar |= *s & 0x3F; in utf8decode()
324 unichar = *s++ & 0x0F; in utf8decode()
325 unichar <<= UTF8_V_SHIFT; in utf8decode()
326 unichar |= *s++ & 0x3F; in utf8decode()
327 unichar <<= UTF8_V_SHIFT; in utf8decode()
328 unichar |= *s++ & 0x3F; in utf8decode()
329 unichar <<= UTF8_V_SHIFT; in utf8decode()
330 unichar |= *s & 0x3F; in utf8decode()
332 return unichar; in utf8decode()
335 static int utf32valid(unsigned int unichar) in utf32valid() argument
337 return unichar < 0x110000; in utf32valid()
1587 unsigned int unichar; in utf8_init() local
1590 for (unichar = 0; unichar != 0x110000; unichar++) in utf8_init()
1591 utf8_create(&unicode_data[unichar]); in utf8_init()
1685 unsigned int unichar; in trees_populate() local
1695 for (unichar = 0; unichar != 0x110000; unichar++) { in trees_populate()
1696 if (unicode_data[unichar].gen < 0) in trees_populate()
1698 keylen = utf8encode(keyval, unichar); in trees_populate()
1699 data = corrections_lookup(&unicode_data[unichar]); in trees_populate()
1701 data = &unicode_data[unichar]; in trees_populate()
1749 unsigned int unichar; in verify() local
1759 for (unichar = 0; unichar != 0x110000; unichar++) { in verify()
1761 data = corrections_lookup(&unicode_data[unichar]); in verify()
1763 data = &unicode_data[unichar]; in verify()
1764 utf8encode(key,unichar); in verify()
1770 if (unichar < 0xd800 || unichar > 0xdfff) in verify()
1773 if (unichar >= 0xd800 && unichar <= 0xdfff) in verify()
1810 unichar, data->code, data->gen, in verify()
1915 static void print_utf32nfdi(unsigned int unichar) in print_utf32nfdi() argument
1917 printf(" %X ->", unichar); in print_utf32nfdi()
1918 print_utf32(unicode_data[unichar].utf32nfdi); in print_utf32nfdi()
1922 static void print_utf32nfdicf(unsigned int unichar) in print_utf32nfdicf() argument
1924 printf(" %X ->", unichar); in print_utf32nfdicf()
1925 print_utf32(unicode_data[unichar].utf32nfdicf); in print_utf32nfdicf()
1936 unsigned int unichar; in age_init() local
2017 for (unichar = first; unichar <= last; unichar++) in age_init()
2018 unicode_data[unichar].gen = gen; in age_init()
2026 ret = sscanf(line, "%X ; %d.%d #", &unichar, &major, &minor); in age_init()
2028 unicode_data[unichar].gen = gen; in age_init()
2031 printf(" %X gen %d\n", unichar, gen); in age_init()
2032 if (!utf32valid(unichar)) in age_init()
2043 for (unichar = 0xd800; unichar <= 0xdfff; unichar++) in age_init()
2044 unicode_data[unichar].gen = -1; in age_init()
2057 unsigned int unichar; in ccc_init() local
2073 for (unichar = first; unichar <= last; unichar++) { in ccc_init()
2074 unicode_data[unichar].ccc = value; in ccc_init()
2083 ret = sscanf(line, "%X ; %d #", &unichar, &value); in ccc_init()
2085 unicode_data[unichar].ccc = value; in ccc_init()
2088 printf(" %X ccc %d\n", unichar, value); in ccc_init()
2089 if (!utf32valid(unichar)) in ccc_init()
2119 unsigned int unichar; in nfdi_init() local
2137 &unichar, buf0); in nfdi_init()
2140 if (!utf32valid(unichar)) in nfdi_init()
2164 unicode_data[unichar].utf32nfdi = um; in nfdi_init()
2167 print_utf32nfdi(unichar); in nfdi_init()
2180 unsigned int unichar; in nfdicf_init() local
2197 ret = sscanf(line, "%X; %c; %[^;];", &unichar, &status, buf0); in nfdicf_init()
2200 if (!utf32valid(unichar)) in nfdicf_init()
2220 unicode_data[unichar].utf32nfdicf = um; in nfdicf_init()
2223 print_utf32nfdicf(unichar); in nfdicf_init()
2236 unsigned int unichar; in ignore_init() local
2257 for (unichar = first; unichar <= last; unichar++) { in ignore_init()
2258 free(unicode_data[unichar].utf32nfdi); in ignore_init()
2261 unicode_data[unichar].utf32nfdi = um; in ignore_init()
2262 free(unicode_data[unichar].utf32nfdicf); in ignore_init()
2265 unicode_data[unichar].utf32nfdicf = um; in ignore_init()
2273 ret = sscanf(line, "%X ; %s # ", &unichar, buf0); in ignore_init()
2277 if (!utf32valid(unichar)) in ignore_init()
2279 free(unicode_data[unichar].utf32nfdi); in ignore_init()
2282 unicode_data[unichar].utf32nfdi = um; in ignore_init()
2283 free(unicode_data[unichar].utf32nfdicf); in ignore_init()
2286 unicode_data[unichar].utf32nfdicf = um; in ignore_init()
2289 unichar); in ignore_init()
2305 unsigned int unichar; in corrections_init() local
2326 &unichar, buf0, buf1, in corrections_init()
2330 if (!utf32valid(unichar) || !age_valid(major, minor, revision)) in corrections_init()
2341 &unichar, buf0, buf1, in corrections_init()
2345 if (!utf32valid(unichar) || !age_valid(major, minor, revision)) in corrections_init()
2347 corrections[count] = unicode_data[unichar]; in corrections_init()
2348 assert(corrections[count].code == unichar); in corrections_init()
2368 unichar, buf0, buf1, major, minor, revision); in corrections_init()
2438 unsigned int unichar; in hangul_decompose() local
2448 for (unichar = 0xAC00; unichar <= 0xD7A3; unichar++) { in hangul_decompose()
2449 unsigned int si = unichar - sb; in hangul_decompose()
2461 assert(!unicode_data[unichar].utf32nfdi); in hangul_decompose()
2464 unicode_data[unichar].utf32nfdi = um; in hangul_decompose()
2466 assert(!unicode_data[unichar].utf32nfdicf); in hangul_decompose()
2469 unicode_data[unichar].utf32nfdicf = um; in hangul_decompose()
2476 unicode_data[unichar].utf8nfdi = malloc(2); in hangul_decompose()
2477 unicode_data[unichar].utf8nfdi[0] = HANGUL; in hangul_decompose()
2478 unicode_data[unichar].utf8nfdi[1] = '\0'; in hangul_decompose()
2481 print_utf32nfdi(unichar); in hangul_decompose()
2491 unsigned int unichar; in nfdi_decompose() local
2504 for (unichar = 0; unichar != 0x110000; unichar++) { in nfdi_decompose()
2505 if (!unicode_data[unichar].utf32nfdi) in nfdi_decompose()
2510 um = unicode_data[unichar].utf32nfdi; in nfdi_decompose()
2525 free(unicode_data[unichar].utf32nfdi); in nfdi_decompose()
2528 unicode_data[unichar].utf32nfdi = um; in nfdi_decompose()
2531 if (!unicode_data[unichar].utf32nfdicf) { in nfdi_decompose()
2534 unicode_data[unichar].utf32nfdicf = um; in nfdi_decompose()
2537 print_utf32nfdi(unichar); in nfdi_decompose()
2546 unsigned int unichar; in nfdicf_decompose() local
2558 for (unichar = 0; unichar != 0x110000; unichar++) { in nfdicf_decompose()
2559 if (!unicode_data[unichar].utf32nfdicf) in nfdicf_decompose()
2564 um = unicode_data[unichar].utf32nfdicf; in nfdicf_decompose()
2579 free(unicode_data[unichar].utf32nfdicf); in nfdicf_decompose()
2582 unicode_data[unichar].utf32nfdicf = um; in nfdicf_decompose()
2585 print_utf32nfdicf(unichar); in nfdicf_decompose()
2976 unsigned int unichar; member
3006 u8c->unichar = 0; in utf8ncursor()
3113 u8c->unichar = utf8decode(u8c->s); in utf8byte()
3215 unsigned int unichar; in normalization_test() local
3239 unichar = strtoul(s, &s, 16); in normalization_test()
3240 t += utf8encode(t, unichar); in normalization_test()
3248 unichar = strtoul(s, &s, 16); in normalization_test()
3249 data = &unicode_data[unichar]; in normalization_test()
3253 t += utf8encode(t, unichar); in normalization_test()
3363 unsigned int unichar; in main() local
3407 for (unichar = 0; unichar != 0x110000; unichar++) in main()
3408 unicode_data[unichar].code = unichar; in main()