Home
last modified time | relevance | path

Searched refs:codepoint (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dencodings.h102 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 …]
Dwriter.h264 unsigned codepoint; in WriteString() local
265 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()
Dreader.h593 unsigned codepoint = 0; in ParseHex4() local
596 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() local
693 if (codepoint >= 0xD800 && codepoint <= 0xDBFF) { in ParseStringToStream()
701codepoint = (((codepoint - 0xD800) << 10) | (codepoint2 - 0xDC00)) + 0x10000; in ParseStringToStream()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dencodingstest.cpp289 for (unsigned codepoint = range[0]; codepoint <= range[1]; ++codepoint) { in TEST() local
291 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() local
343 UTF16<>::Encode(os, codepoint); in TEST()
347 if (codepoint != 0) // cannot handle U+0000 in TEST()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Dmisctest.cpp68 unsigned codepoint, state = 0; in IsUTF8() local
71 decode(&state, &codepoint, *s++); in IsUTF8()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DStringUtil.java3116 static boolean mustEscapeCharInJsString(int codepoint) { in mustEscapeCharInJsString() argument
3117 return JS_ESCAPE_CHARS.contains(codepoint); in mustEscapeCharInJsString()
3132 static boolean mustEscapeCharInJsonString(int codepoint) { in mustEscapeCharInJsonString() argument
3133 return JSON_ESCAPE_CHARS.contains(codepoint); in mustEscapeCharInJsonString()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_wordlist.combined.gz