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 corrections_init() local
2257 &unichar, buf0, buf1, in corrections_init()
2261 if (!utf32valid(unichar) || !age_valid(major, minor, revision)) in corrections_init()
2272 &unichar, buf0, buf1, in corrections_init()
2276 if (!utf32valid(unichar) || !age_valid(major, minor, revision)) in corrections_init()
2278 corrections[count] = unicode_data[unichar]; in corrections_init()
2279 assert(corrections[count].code == unichar); in corrections_init()
2299 unichar, buf0, buf1, major, minor, revision); in corrections_init()
2369 unsigned int unichar; in hangul_decompose() local
2379 for (unichar = 0xAC00; unichar <= 0xD7A3; unichar++) { in hangul_decompose()
2380 unsigned int si = unichar - sb; in hangul_decompose()
2392 assert(!unicode_data[unichar].utf32nfdi); in hangul_decompose()
2395 unicode_data[unichar].utf32nfdi = um; in hangul_decompose()
2397 assert(!unicode_data[unichar].utf32nfdicf); in hangul_decompose()
2400 unicode_data[unichar].utf32nfdicf = um; in hangul_decompose()
2407 unicode_data[unichar].utf8nfdi = malloc(2); in hangul_decompose()
2408 unicode_data[unichar].utf8nfdi[0] = HANGUL; in hangul_decompose()
2409 unicode_data[unichar].utf8nfdi[1] = '\0'; in hangul_decompose()
2412 print_utf32nfdi(unichar); in hangul_decompose()
2422 unsigned int unichar; in nfdi_decompose() local
2435 for (unichar = 0; unichar != 0x110000; unichar++) { in nfdi_decompose()
2436 if (!unicode_data[unichar].utf32nfdi) in nfdi_decompose()
2441 um = unicode_data[unichar].utf32nfdi; in nfdi_decompose()
2456 free(unicode_data[unichar].utf32nfdi); in nfdi_decompose()
2459 unicode_data[unichar].utf32nfdi = um; in nfdi_decompose()
2462 if (!unicode_data[unichar].utf32nfdicf) { in nfdi_decompose()
2465 unicode_data[unichar].utf32nfdicf = um; in nfdi_decompose()
2468 print_utf32nfdi(unichar); in nfdi_decompose()
2477 unsigned int unichar; in nfdicf_decompose() local
2489 for (unichar = 0; unichar != 0x110000; unichar++) { in nfdicf_decompose()
2490 if (!unicode_data[unichar].utf32nfdicf) in nfdicf_decompose()
2495 um = unicode_data[unichar].utf32nfdicf; in nfdicf_decompose()
2510 free(unicode_data[unichar].utf32nfdicf); in nfdicf_decompose()
2513 unicode_data[unichar].utf32nfdicf = um; in nfdicf_decompose()
2516 print_utf32nfdicf(unichar); in nfdicf_decompose()
2907 unsigned int unichar; member
2937 u8c->unichar = 0; in utf8ncursor()
3044 u8c->unichar = utf8decode(u8c->s); in utf8byte()
3146 unsigned int unichar; in normalization_test() local
3170 unichar = strtoul(s, &s, 16); in normalization_test()
3171 t += utf8encode(t, unichar); in normalization_test()
3179 unichar = strtoul(s, &s, 16); in normalization_test()
3180 data = &unicode_data[unichar]; in normalization_test()
3184 t += utf8encode(t, unichar); in normalization_test()
3295 unsigned int unichar; in main() local
3339 for (unichar = 0; unichar != 0x110000; unichar++) in main()
3340 unicode_data[unichar].code = unichar; in main()