Lines Matching refs:ch
122 const uint16_t ch = *utf16_in++; in ConvertUtf16ToModifiedUtf8() local
123 if (ch > 0 && ch <= 0x7f) { in ConvertUtf16ToModifiedUtf8()
124 *utf8_out++ = ch; in ConvertUtf16ToModifiedUtf8()
130 if ((ch >= 0xd800 && ch <= 0xdbff) && (char_count > 0)) { in ConvertUtf16ToModifiedUtf8()
139 const uint32_t code_point = (ch << 10) + ch2 - 0x035fdc00; in ConvertUtf16ToModifiedUtf8()
148 if (ch > 0x07ff) { in ConvertUtf16ToModifiedUtf8()
150 *utf8_out++ = (ch >> 12) | 0xe0; in ConvertUtf16ToModifiedUtf8()
151 *utf8_out++ = ((ch >> 6) & 0x3f) | 0x80; in ConvertUtf16ToModifiedUtf8()
152 *utf8_out++ = (ch & 0x3f) | 0x80; in ConvertUtf16ToModifiedUtf8()
155 *utf8_out++ = (ch >> 6) | 0xc0; in ConvertUtf16ToModifiedUtf8()
156 *utf8_out++ = (ch & 0x3f) | 0x80; in ConvertUtf16ToModifiedUtf8()
166 const uint16_t ch = *chars++; in CountUtf8Bytes() local
167 if (LIKELY(ch != 0 && ch < 0x80)) { in CountUtf8Bytes()
171 if (ch < 0x800) { in CountUtf8Bytes()
175 if (ch >= 0xd800 && ch < 0xdc00) { in CountUtf8Bytes()