Home
last modified time | relevance | path

Searched refs:utf32 (Results 1 – 25 of 34) sorted by relevance

12

/external/grpc-grpc/src/core/lib/json/
Djson_writer.cc131 uint32_t utf32 = 0; in json_writer_escape_string() local
136 utf32 = c & 0x1f; in json_writer_escape_string()
139 utf32 = c & 0x0f; in json_writer_escape_string()
142 utf32 = c & 0x07; in json_writer_escape_string()
148 utf32 <<= 6; in json_writer_escape_string()
155 utf32 |= c & 0x3f; in json_writer_escape_string()
162 if (((utf32 >= 0xd800) && (utf32 <= 0xdfff)) || (utf32 >= 0x110000)) in json_writer_escape_string()
164 if (utf32 >= 0x10000) { in json_writer_escape_string()
181 utf32 -= 0x10000; in json_writer_escape_string()
183 static_cast<uint16_t>(0xd800 | (utf32 >> 10))); in json_writer_escape_string()
[all …]
Djson_reader.cc36 uint32_t utf32) { in json_reader_string_add_utf32() argument
37 reader->vtable->string_add_utf32(reader->userdata, utf32); in json_reader_string_add_utf32()
446 uint32_t utf32; in grpc_json_reader_run() local
449 utf32 = 0x10000; in grpc_json_reader_run()
450 utf32 += static_cast<uint32_t>( in grpc_json_reader_run()
452 utf32 += static_cast<uint32_t>(reader->unicode_char - 0xdc00); in grpc_json_reader_run()
453 json_reader_string_add_utf32(reader, utf32); in grpc_json_reader_run()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/json/
Djson_writer.cc173 uint32_t utf32 = 0; in EscapeString() local
178 utf32 = c & 0x1f; in EscapeString()
181 utf32 = c & 0x0f; in EscapeString()
184 utf32 = c & 0x07; in EscapeString()
190 utf32 <<= 6; in EscapeString()
203 utf32 |= c & 0x3f; in EscapeString()
210 if (((utf32 >= 0xd800) && (utf32 <= 0xdfff)) || (utf32 >= 0x110000)) { in EscapeString()
213 if (utf32 >= 0x10000) { in EscapeString()
230 utf32 -= 0x10000; in EscapeString()
231 EscapeUtf16(static_cast<uint16_t>(0xd800 | (utf32 >> 10))); in EscapeString()
[all …]
Djson_reader.cc603 uint32_t utf32; in Run() local
607 utf32 = 0x10000; in Run()
608 utf32 += static_cast<uint32_t>( in Run()
610 utf32 += static_cast<uint32_t>(unicode_char_ - 0xdc00); in Run()
611 StringAddUtf32(utf32); in Run()
/external/harfbuzz_ng/test/api/
Dtest-buffer.c34 static const uint32_t utf32[7] = {'a', 'b', 0x20000, 'd', 'e', 'f', 'g'}; variable
73 for (i = 1; i < G_N_ELEMENTS (utf32) - 1; i++) in fixture_init()
74 hb_buffer_add (b, utf32[i], i); in fixture_init()
78 hb_buffer_add_utf32 (b, utf32, G_N_ELEMENTS (utf32), 1, G_N_ELEMENTS (utf32) - 2); in fixture_init()
213 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents()
221 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]); in test_buffer_contents()
225 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents()
232 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]); in test_buffer_contents()
236 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents()
245 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]); in test_buffer_contents()
[all …]
/external/libchrome/base/strings/
Dutf_string_conversions_unittest.cc158 const wchar_t* utf32; in TEST() member
179 WideToUTF8(test.utf32, wcslen(test.utf32), &converted)); in TEST()
/external/skqp/src/utils/
DSkUTF.cpp96 int SkUTF::CountUTF32(const int32_t* utf32, size_t byteLength) { in CountUTF32() argument
97 if (!is_align4(intptr_t(utf32)) || !is_align4(byteLength) || byteLength >> 2 > INT_MAX) { in CountUTF32()
101 const uint32_t* ptr = (const uint32_t*)utf32; in CountUTF32()
DSkUTF.h28 int CountUTF32(const int32_t* utf32, size_t byteLength);
/external/skia/src/utils/
DSkUTF.cpp97 int SkUTF::CountUTF32(const int32_t* utf32, size_t byteLength) { in CountUTF32() argument
98 if (!is_align4(intptr_t(utf32)) || !is_align4(byteLength) || !SkTFitsIn<int>(byteLength >> 2)) { in CountUTF32()
102 const uint32_t* ptr = (const uint32_t*)utf32; in CountUTF32()
DSkUTF.h30 SK_SPI int CountUTF32(const int32_t* utf32, size_t byteLength);
/external/skqp/src/pdf/
DSkPDFUtils.h104 inline void WriteUTF16beHex(SkDynamicMemoryWStream* wStream, SkUnichar utf32) { in WriteUTF16beHex() argument
106 size_t len = SkUTF::ToUTF16(utf32, utf16); in WriteUTF16beHex()
/external/skia/src/pdf/
DSkPDFUtils.h104 inline void WriteUTF16beHex(SkDynamicMemoryWStream* wStream, SkUnichar utf32) { in WriteUTF16beHex() argument
106 size_t len = SkUTF::ToUTF16(utf32, utf16); in WriteUTF16beHex()
/external/skqp/tools/fonts/
DSkTestTypeface.cpp148 auto utf32 = (const SkUnichar*)chars; in onCharsToGlyphs() local
155 case kUTF32_Encoding: ch = *utf32++; break; in onCharsToGlyphs()
DSkTestSVGTypeface.cpp131 auto utf32 = (const SkUnichar*)chars; in onCharsToGlyphs() local
138 case kUTF32_Encoding: ch = *utf32++; break; in onCharsToGlyphs()
/external/llvm-project/lldb/test/Shell/SymbolFile/DWARF/
DDW_TAG_basic_type_DW_ATE_UTF_nonC.ll13 ; __gshared dstring utf32 = "World"d;
69 !19 = distinct !DIGlobalVariable(name: "utf32", linkageName: "_D8utftypes5utf32Ayw", scope: !2, fil…
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/
DDetectingViewer.java312 Charset utf32 = CharsetICU.forNameICU(encoding); in show() local
318 sb.append(utf32.decode(ByteBuffer.wrap(bytes)).toString()); in show()
/external/skqp/src/ports/
DSkFontHost_win.cpp795 uint16_t SkScalerContext_GDI::generateCharToGlyph(SkUnichar utf32) { in generateCharToGlyph() argument
799 if (SkUTF::ToUTF16(utf32, (uint16_t*)utf16) == 1) { in generateCharToGlyph()
2065 const uint32_t* utf32 = reinterpret_cast<const uint32_t*>(chars); in onCharsToGlyphs() local
2070 while (runLength < glyphsLeft && utf32[glyphIndex + runLength] <= 0xFFFF) { in onCharsToGlyphs()
2071 scratch[runLength] = static_cast<WCHAR>(utf32[glyphIndex + runLength]); in onCharsToGlyphs()
2080 while (glyphIndex < glyphCount && utf32[glyphIndex] > 0xFFFF) { in onCharsToGlyphs()
2081 SkUTF::ToUTF16(utf32[glyphIndex], reinterpret_cast<uint16_t*>(scratch)); in onCharsToGlyphs()
DSkTypeface_win_dw.cpp113 const UINT32* utf32 = reinterpret_cast<const UINT32*>(chars); in onCharsToGlyphs() local
114 fDWriteFontFace->GetGlyphIndices(utf32, glyphCount, glyphs); in onCharsToGlyphs()
/external/icu/icu4c/source/test/cintltst/
Dncnvtst.c779 UChar32 *utf32 = (UChar32*)malloc(MAX_LENGTH*sizeof(UChar32)); in TestRegressionUTF32() local
792 utf32[offset32++] = currCh; in TestRegressionUTF32()
796 …(const uint8_t *)utf32, offset32*sizeof(UChar32), "UTF32_PlatformEndian", 0, TRUE, U_ZERO_ERROR ))… in TestRegressionUTF32()
799 if(!convertToU((const uint8_t *)utf32, offset32*sizeof(UChar32), in TestRegressionUTF32()
805 free(utf32); in TestRegressionUTF32()
Dnucnvtst.c1153 static const uint8_t utf32[]={ in TestNewConvertWithBufferSizes() local
1198 testConvertToU(utf32, sizeof(utf32), in TestNewConvertWithBufferSizes()
1206 static const uint8_t utf32[]={ in TestNewConvertWithBufferSizes() local
1251 testConvertToU(utf32, sizeof(utf32), in TestNewConvertWithBufferSizes()
/external/icu/icu4c/source/common/
Dunistr.cpp450 UnicodeString UnicodeString::fromUTF32(const UChar32 *utf32, int32_t length) { in fromUTF32() argument
466 utf32, length, in fromUTF32()
1011 UnicodeString::toUTF32(UChar32 *utf32, int32_t capacity, UErrorCode &errorCode) const { in toUTF32() argument
1015 u_strToUTF32WithSub(utf32, capacity, &length32, in toUTF32()
/external/icu/tools/icu4c_srcgen/
Dcxxfiles.txt24 #utf32.h
/external/skia/src/ports/
DSkFontHost_win.cpp1963 const uint32_t* utf32 = reinterpret_cast<const uint32_t*>(uni); in onCharsToGlyphs() local
1968 while (runLength < glyphsLeft && utf32[glyphIndex + runLength] <= 0xFFFF) { in onCharsToGlyphs()
1969 scratch[runLength] = static_cast<WCHAR>(utf32[glyphIndex + runLength]); in onCharsToGlyphs()
1978 while (glyphIndex < glyphCount && utf32[glyphIndex] > 0xFFFF) { in onCharsToGlyphs()
1979 SkUTF::ToUTF16(utf32[glyphIndex], reinterpret_cast<uint16_t*>(scratch)); in onCharsToGlyphs()
DSkTypeface_mac_ct.cpp1072 const SkUnichar* utf32 = reinterpret_cast<const SkUnichar*>(uni); in onCharsToGlyphs() local
1076 utf16 += SkUTF::ToUTF16(utf32[i], utf16); in onCharsToGlyphs()
/external/jcommander/src/test/java/com/beust/jcommander/
DJCommanderTest.java645 final Charset utf32 = Charset.forName("UTF-32"); in atFileWithInNonDefaultCharset() local
648 try (OutputStreamWriter fw = new OutputStreamWriter(new FileOutputStream(f), utf32)) { in atFileWithInNonDefaultCharset() argument
662 jc.setAtFileCharset(utf32); in atFileWithInNonDefaultCharset()

12