Searched refs:wc1 (Results 1 – 5 of 5) sorted by relevance
/external/toybox/toys/example/ |
D | demo_utf8towc.c | 23 wchar_t wc1, wc2; in demo_utf8towc_main() local 29 wc1 = wc2 = 0; in demo_utf8towc_main() 34 len1 = mbrtowc(&wc1, str, len2, &mb); in demo_utf8towc_main() 37 if (len1 != len2 || wc1 != wc2) in demo_utf8towc_main() 38 printf("%x %d %x %d %x\n", u, len1, wc1, len2, wc2); in demo_utf8towc_main()
|
/external/flac/src/share/utf8/ |
D | charset.c | 130 int utf8_wctomb(char *s, int wc1) in utf8_wctomb() argument 132 uint32_t wc = wc1; in utf8_wctomb() 362 static int wctomb_8bit(void *map1, char *s, int wc1) in wctomb_8bit() argument 365 uint16_t wc = wc1; in wctomb_8bit() 371 if (wc1 & ~0xffff) in wctomb_8bit()
|
/external/libcxx/src/ |
D | locale.cpp | 1753 uint16_t wc1 = *frm_nxt; in utf16_to_utf8() local 1754 if (wc1 > Maxcode) in utf16_to_utf8() 1756 if (wc1 < 0x0080) in utf16_to_utf8() 1760 *to_nxt++ = static_cast<uint8_t>(wc1); in utf16_to_utf8() 1762 else if (wc1 < 0x0800) in utf16_to_utf8() 1766 *to_nxt++ = static_cast<uint8_t>(0xC0 | (wc1 >> 6)); in utf16_to_utf8() 1767 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x03F)); in utf16_to_utf8() 1769 else if (wc1 < 0xD800) in utf16_to_utf8() 1773 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12)); in utf16_to_utf8() 1774 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6)); in utf16_to_utf8() [all …]
|
/external/llvm-project/libcxx/src/ |
D | locale.cpp | 1766 uint16_t wc1 = *frm_nxt; in utf16_to_utf8() local 1767 if (wc1 > Maxcode) in utf16_to_utf8() 1769 if (wc1 < 0x0080) in utf16_to_utf8() 1773 *to_nxt++ = static_cast<uint8_t>(wc1); in utf16_to_utf8() 1775 else if (wc1 < 0x0800) in utf16_to_utf8() 1779 *to_nxt++ = static_cast<uint8_t>(0xC0 | (wc1 >> 6)); in utf16_to_utf8() 1780 *to_nxt++ = static_cast<uint8_t>(0x80 | (wc1 & 0x03F)); in utf16_to_utf8() 1782 else if (wc1 < 0xD800) in utf16_to_utf8() 1786 *to_nxt++ = static_cast<uint8_t>(0xE0 | (wc1 >> 12)); in utf16_to_utf8() 1787 *to_nxt++ = static_cast<uint8_t>(0x80 | ((wc1 & 0x0FC0) >> 6)); in utf16_to_utf8() [all …]
|
/external/toybox/toys/pending/ |
D | sh.c | 996 wchar_t wc1, wc2; in utf8chr() local 1001 if (0<(ll = utf8towc(&wc1, wc, 99))) { in utf8chr() 1006 if (wc1 == wc2) return wc1; in utf8chr()
|