Lines Matching refs:ch
55 uint16_t ch = *utf16_in++; in ConvertUtf16ToModifiedUtf8() local
56 if (ch > 0 && ch <= 0x7f) { in ConvertUtf16ToModifiedUtf8()
57 *utf8_out++ = ch; in ConvertUtf16ToModifiedUtf8()
59 if (ch > 0x07ff) { in ConvertUtf16ToModifiedUtf8()
60 *utf8_out++ = (ch >> 12) | 0xe0; in ConvertUtf16ToModifiedUtf8()
61 *utf8_out++ = ((ch >> 6) & 0x3f) | 0x80; in ConvertUtf16ToModifiedUtf8()
62 *utf8_out++ = (ch & 0x3f) | 0x80; in ConvertUtf16ToModifiedUtf8()
64 *utf8_out++ = (ch >> 6) | 0xc0; in ConvertUtf16ToModifiedUtf8()
65 *utf8_out++ = (ch & 0x3f) | 0x80; in ConvertUtf16ToModifiedUtf8()
116 uint16_t ch = *chars++; in CountUtf8Bytes() local
117 if (ch > 0 && ch <= 0x7f) { in CountUtf8Bytes()
120 if (ch > 0x7ff) { in CountUtf8Bytes()