Lines Matching refs:ch
40 const auto emit{[&](char ch) { result += ch; }}; in QuoteCharacterLiteralHelper()
41 for (auto ch : str) { in QuoteCharacterLiteralHelper() local
42 using CharT = std::decay_t<decltype(ch)>; in QuoteCharacterLiteralHelper()
43 char32_t ch32{static_cast<std::make_unsigned_t<CharT>>(ch)}; in QuoteCharacterLiteralHelper()
131 for (auto ch : str) { in EncodeString() local
132 char32_t uch{static_cast<std::make_unsigned_t<decltype(ch)>>(ch)}; in EncodeString()
160 char32_t ch{*p}; in DecodeRawCharacter() local
161 if (ch <= 0x7f) { in DecodeRawCharacter()
162 return {ch, 1}; in DecodeRawCharacter()
163 } else if ((ch & 0xf8) == 0xf0 && bytes >= 4 && ch > 0xf0 && in DecodeRawCharacter()
165 ch = ((ch & 7) << 6) | (p[1] & 0x3f); in DecodeRawCharacter()
166 ch = (ch << 6) | (p[2] & 0x3f); in DecodeRawCharacter()
167 ch = (ch << 6) | (p[3] & 0x3f); in DecodeRawCharacter()
168 return {ch, 4}; in DecodeRawCharacter()
169 } else if ((ch & 0xf0) == 0xe0 && bytes >= 3 && ch > 0xe0 && in DecodeRawCharacter()
171 ch = ((ch & 0xf) << 6) | (p[1] & 0x3f); in DecodeRawCharacter()
172 ch = (ch << 6) | (p[2] & 0x3f); in DecodeRawCharacter()
173 return {ch, 3}; in DecodeRawCharacter()
174 } else if ((ch & 0xe0) == 0xc0 && bytes >= 2 && ch > 0xc0 && in DecodeRawCharacter()
176 ch = ((ch & 0x1f) << 6) | (p[1] & 0x3f); in DecodeRawCharacter()
177 return {ch, 2}; in DecodeRawCharacter()