Searched refs:codepoint (Results 1 – 9 of 9) sorted by relevance
102 static void Encode(OutputStream& os, unsigned codepoint) { in Encode()103 if (codepoint <= 0x7F) in Encode()104 os.Put(static_cast<Ch>(codepoint & 0xFF)); in Encode()105 else if (codepoint <= 0x7FF) { in Encode()106 os.Put(static_cast<Ch>(0xC0 | ((codepoint >> 6) & 0xFF))); in Encode()107 os.Put(static_cast<Ch>(0x80 | ((codepoint & 0x3F)))); in Encode()109 else if (codepoint <= 0xFFFF) { in Encode()110 os.Put(static_cast<Ch>(0xE0 | ((codepoint >> 12) & 0xFF))); in Encode()111 os.Put(static_cast<Ch>(0x80 | ((codepoint >> 6) & 0x3F))); in Encode()112 os.Put(static_cast<Ch>(0x80 | (codepoint & 0x3F))); in Encode()[all …]
264 unsigned codepoint; in WriteString() local265 if (!SourceEncoding::Decode(is, &codepoint)) in WriteString()269 if (codepoint <= 0xD7FF || (codepoint >= 0xE000 && codepoint <= 0xFFFF)) { in WriteString()270 os_->Put(hexDigits[(codepoint >> 12) & 15]); in WriteString()271 os_->Put(hexDigits[(codepoint >> 8) & 15]); in WriteString()272 os_->Put(hexDigits[(codepoint >> 4) & 15]); in WriteString()273 os_->Put(hexDigits[(codepoint ) & 15]); in WriteString()276 RAPIDJSON_ASSERT(codepoint >= 0x010000 && codepoint <= 0x10FFFF); in WriteString()278 unsigned s = codepoint - 0x010000; in WriteString()
593 unsigned codepoint = 0; in ParseHex4() local596 codepoint <<= 4; in ParseHex4()597 codepoint += static_cast<unsigned>(c); in ParseHex4()599 codepoint -= '0'; in ParseHex4()601 codepoint -= 'A' - 10; in ParseHex4()603 codepoint -= 'a' - 10; in ParseHex4()609 return codepoint; in ParseHex4()691 unsigned codepoint = ParseHex4(is); in ParseStringToStream() local693 if (codepoint >= 0xD800 && codepoint <= 0xDBFF) { in ParseStringToStream()701 … codepoint = (((codepoint - 0xD800) << 10) | (codepoint2 - 0xDC00)) + 0x10000; in ParseStringToStream()[all …]
289 for (unsigned codepoint = range[0]; codepoint <= range[1]; ++codepoint) { in TEST() local291 UTF8<>::Encode(os, codepoint); in TEST()302 EXPECT_EQ(codepoint, decodedCodepoint); in TEST()311 std::cout << std::hex << codepoint << " " << decodedCodepoint << std::endl; in TEST()320 EXPECT_EQ(codepoint, decodedCodepoint); in TEST()321 if (!result || codepoint != decodedCodepoint) in TEST()322 std::cout << std::hex << codepoint << " " << decodedCodepoint << std::endl; in TEST()341 for (unsigned codepoint = range[0]; codepoint <= range[1]; ++codepoint) { in TEST() local343 UTF16<>::Encode(os, codepoint); in TEST()347 if (codepoint != 0) // cannot handle U+0000 in TEST()[all …]
68 unsigned codepoint, state = 0; in IsUTF8() local71 decode(&state, &codepoint, *s++); in IsUTF8()
3116 static boolean mustEscapeCharInJsString(int codepoint) { in mustEscapeCharInJsString() argument3117 return JS_ESCAPE_CHARS.contains(codepoint); in mustEscapeCharInJsString()3132 static boolean mustEscapeCharInJsonString(int codepoint) { in mustEscapeCharInJsonString() argument3133 return JSON_ESCAPE_CHARS.contains(codepoint); in mustEscapeCharInJsonString()
1dictionary=main:en_us,locale=en_US,description=English (US),date ...