Lines Matching refs:utf32chr
82 unsigned long utf32chr = 0; in OPENSSL_utf82uni() local
88 j = UTF8_getc((const unsigned char *)asc+i, asclen-i, &utf32chr); in OPENSSL_utf82uni()
109 if (utf32chr > 0x10FFFF) /* UTF-16 cap */ in OPENSSL_utf82uni()
112 if (utf32chr >= 0x10000) /* pair of UTF-16 characters */ in OPENSSL_utf82uni()
124 j = UTF8_getc((const unsigned char *)asc+i, asclen-i, &utf32chr); in OPENSSL_utf82uni()
125 if (utf32chr >= 0x10000) { /* pair if UTF-16 characters */ in OPENSSL_utf82uni()
128 utf32chr -= 0x10000; in OPENSSL_utf82uni()
129 hi = 0xD800 + (utf32chr>>10); in OPENSSL_utf82uni()
130 lo = 0xDC00 + (utf32chr&0x3ff); in OPENSSL_utf82uni()
136 *unitmp++ = (unsigned char)(utf32chr>>8); in OPENSSL_utf82uni()
137 *unitmp++ = (unsigned char)(utf32chr); in OPENSSL_utf82uni()
152 unsigned long utf32chr; in bmp_to_utf8() local
159 utf32chr = (utf16[0]<<8) | utf16[1]; in bmp_to_utf8()
161 if (utf32chr >= 0xD800 && utf32chr < 0xE000) { /* two chars */ in bmp_to_utf8()
166 utf32chr -= 0xD800; in bmp_to_utf8()
167 utf32chr <<= 10; in bmp_to_utf8()
170 utf32chr |= lo-0xDC00; in bmp_to_utf8()
171 utf32chr += 0x10000; in bmp_to_utf8()
174 return UTF8_putc((unsigned char *)str, len > 4 ? 4 : len, utf32chr); in bmp_to_utf8()