Home
last modified time | relevance | path

Searched refs:utf8 (Results 1 – 25 of 712) sorted by relevance

12345678910>>...29

/third_party/skia/modules/skshaper/src/
DSkShaper_primitive.cpp19 void shape(const char* utf8, size_t utf8Bytes,
25 void shape(const char* utf8, size_t utf8Bytes,
33 void shape(const char* utf8, size_t utf8Bytes,
125 void SkShaperPrimitive::shape(const char* utf8, size_t utf8Bytes, in shape() argument
146 return this->shape(utf8, utf8Bytes, skfont, skbidi, width, handler); in shape()
149 void SkShaperPrimitive::shape(const char* utf8, size_t utf8Bytes, in shape() argument
160 return this->shape(utf8, utf8Bytes, font.currentFont(), (bidi.currentLevel() % 2) == 0, in shape()
164 void SkShaperPrimitive::shape(const char* utf8, size_t utf8Bytes, in shape() argument
171 int glyphCount = font.countText(utf8, utf8Bytes, SkTextEncoding::kUTF8); in shape()
177 font.textToGlyphs(utf8, utf8Bytes, SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in shape()
[all …]
DSkShaper_coretext.cpp34 void shape(const char* utf8, size_t utf8Bytes,
40 void shape(const char* utf8, size_t utf8Bytes,
48 void shape(const char* utf8, size_t utf8Bytes,
62 void SkShaper_CoreText::shape(const char* utf8, size_t utf8Bytes, in shape() argument
83 return this->shape(utf8, utf8Bytes, skfont, skbidi, width, handler); in shape()
86 void SkShaper_CoreText::shape(const char* utf8, size_t utf8Bytes, in shape() argument
97 return this->shape(utf8, utf8Bytes, font.currentFont(), (bidi.currentLevel() % 2) == 0, in shape()
155 bool setUTF8(const char* utf8, size_t size) { in setUTF8() argument
156 SkASSERT(utf8 != nullptr); in setUTF8()
163 auto utf16Size = SkUTF::UTF8ToUTF16(nullptr, 0, utf8, size); in setUTF8()
[all …]
DSkShaper_harfbuzz.cpp347 SkUnicodeBidiRunIterator(const char* utf8, const char* end, SkUnicodeBidi bidi) in SkUnicodeBidiRunIterator() argument
349 , fEndOfCurrentRun(utf8) in SkUnicodeBidiRunIterator()
350 , fBegin(utf8) in SkUnicodeBidiRunIterator()
393 SkUnicodeHbScriptRunIterator(SkUnicodeScript, const char* utf8, size_t utf8Bytes) in SkUnicodeHbScriptRunIterator() argument
394 : fCurrent(utf8), fBegin(utf8), fEnd(fCurrent + utf8Bytes) in SkUnicodeHbScriptRunIterator()
658 ShapedRun shape(const char* utf8, size_t utf8Bytes,
671 void shape(const char* utf8, size_t utf8Bytes,
694 virtual void wrap(char const * const utf8, size_t utf8Bytes,
709 void wrap(char const * const utf8, size_t utf8Bytes,
724 void wrap(char const * const utf8, size_t utf8Bytes,
[all …]
DSkShaper.cpp46 SkShaper::MakeBiDiRunIterator(const char* utf8, size_t utf8Bytes, uint8_t bidiLevel) { in MakeBiDiRunIterator() argument
54 utf8, in MakeBiDiRunIterator()
65 SkShaper::MakeScriptRunIterator(const char* utf8, size_t utf8Bytes, SkFourByteTag scriptTag) { in MakeScriptRunIterator() argument
72 SkShaper::MakeSkUnicodeHbScriptRunIterator(unicode.get(), utf8, utf8Bytes); in MakeScriptRunIterator()
91 FontMgrRunIterator(const char* utf8, size_t utf8Bytes, in FontMgrRunIterator() argument
95 : fCurrent(utf8), fBegin(utf8), fEnd(fCurrent + utf8Bytes) in FontMgrRunIterator()
107 FontMgrRunIterator(const char* utf8, size_t utf8Bytes, in FontMgrRunIterator() argument
109 : FontMgrRunIterator(utf8, utf8Bytes, font, std::move(fallbackMgr), in FontMgrRunIterator()
185 SkShaper::MakeFontMgrRunIterator(const char* utf8, size_t utf8Bytes, in MakeFontMgrRunIterator() argument
188 return std::make_unique<FontMgrRunIterator>(utf8, utf8Bytes, font, std::move(fallback)); in MakeFontMgrRunIterator()
[all …]
/third_party/flutter/skia/modules/skshaper/src/
DSkShaper_primitive.cpp20 void shape(const char* utf8, size_t utf8Bytes,
26 void shape(const char* utf8, size_t utf8Bytes,
117 void SkShaperPrimitive::shape(const char* utf8, size_t utf8Bytes, in shape() argument
128 return this->shape(utf8, utf8Bytes, font.currentFont(), (bidi.currentLevel() % 2) == 0, in shape()
132 void SkShaperPrimitive::shape(const char* utf8, size_t utf8Bytes, in shape() argument
139 int glyphCount = font.countText(utf8, utf8Bytes, SkTextEncoding::kUTF8); in shape()
145 font.textToGlyphs(utf8, utf8Bytes, SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in shape()
154 size_t bytesConsumed = linebreak(utf8, utf8 + utf8Bytes, font, width, in shape()
158 size_t numGlyphs = SkUTF::CountUTF8(utf8, bytesVisible); in shape()
162 { font.measureText(utf8, bytesVisible, SkTextEncoding::kUTF8), 0 }, in shape()
[all …]
DSkShaper_harfbuzz.cpp323 IcuBiDiRunIterator(const char* utf8, const char* end, ICUBiDi bidi) in IcuBiDiRunIterator() argument
325 , fEndOfCurrentRun(utf8) in IcuBiDiRunIterator()
326 , fBegin(utf8) in IcuBiDiRunIterator()
368 HbIcuScriptRunIterator(const char* utf8, size_t utf8Bytes) in HbIcuScriptRunIterator() argument
369 : fCurrent(utf8), fBegin(utf8), fEnd(fCurrent + utf8Bytes) in HbIcuScriptRunIterator()
628 ShapedRun shape(const char* utf8, size_t utf8Bytes,
639 void shape(const char* utf8, size_t utf8Bytes,
653 virtual void wrap(char const * const utf8, size_t utf8Bytes,
667 void wrap(char const * const utf8, size_t utf8Bytes,
681 void wrap(char const * const utf8, size_t utf8Bytes,
[all …]
/third_party/skia/modules/skunicode/src/
DSkUnicode_icu.cpp107 …static std::unique_ptr<SkBidiIterator> makeBidiIterator(const char utf8[], int utf8Units, Directio… in makeBidiIterator() argument
115 int utf16Units = SkUTF::UTF8ToUTF16(nullptr, 0, utf8, utf8Units); in makeBidiIterator()
121 SkDEBUGCODE(int dstLen =) SkUTF::UTF8ToUTF16(utf16.get(), utf16Units, utf8, utf8Units); in makeBidiIterator()
129 static std::vector<Region> getBidiRegions(const char utf8[], int utf8Units, Direction dir) { in getBidiRegions() argument
131 auto bidiIterator = makeBidiIterator(utf8, utf8Units, dir); in getBidiRegions()
133 const char* start8 = utf8; in getBidiRegions()
134 const char* end8 = utf8 + utf8Units; in getBidiRegions()
145 auto end = SkTo<Position>(start8 - utf8); in getBidiRegions()
153 auto end = start8 - utf8; in getBidiRegions()
279 static bool extractBidi(const char utf8[], in extractBidi() argument
[all …]
/third_party/skia/src/utils/
DSkUTF.cpp48 int SkUTF::CountUTF8(const char* utf8, size_t byteLength) { in CountUTF8() argument
49 if (!utf8) { in CountUTF8()
53 const char* stop = utf8 + byteLength; in CountUTF8()
54 while (utf8 < stop) { in CountUTF8()
55 int type = utf8_byte_type(*(const uint8_t*)utf8); in CountUTF8()
56 if (!utf8_type_is_valid_leading_byte(type) || utf8 + type > stop) { in CountUTF8()
60 ++utf8; in CountUTF8()
61 if (!utf8_byte_is_continuation(*(const uint8_t*)utf8)) { in CountUTF8()
65 ++utf8; in CountUTF8()
210 size_t SkUTF::ToUTF8(SkUnichar uni, char utf8[SkUTF::kMaxBytesInUTF8Sequence]) { in ToUTF8()
[all …]
DSkShaperJSONWriter.cpp17 SkShaperJSONWriter::SkShaperJSONWriter(SkJSONWriter* JSONWriter, const char* utf8, size_t size) in SkShaperJSONWriter() argument
19 , fUTF8{utf8, size} {}
35 static bool is_one_to_one(const char utf8[], size_t utf8Begin, size_t utf8End, in is_one_to_one() argument
44 if (SkUTF::CountUTF8(&utf8[clusters[clusterIndex]], utf8ClusterSize) != 1) { in is_one_to_one()
86 std::string utf8{&fUTF8[info.utf8Range.begin()], info.utf8Range.size()}; in commitRunBuffer() local
87 fJSONWriter->appendString("UTF8", utf8.c_str()); in commitRunBuffer()
168 void SkShaperJSONWriter::VisualizeClusters(const char* utf8, size_t utf8Begin, size_t utf8End, in VisualizeClusters() argument
186 SkSpan<const char> utf8Span{&utf8[utf8RangeStart], utf8RangeEnd - utf8RangeStart}; in VisualizeClusters()
197 int possibleCount = SkUTF::CountUTF8(&utf8[utf8StartIndex], utf8EndIndex - utf8StartIndex); in VisualizeClusters()
208 SkSpan<const char> utf8Span{&utf8[utf8StartIndex], utf8EndIndex - utf8StartIndex}; in VisualizeClusters()
[all …]
/third_party/flutter/skia/src/utils/
DSkUTF.cpp47 int SkUTF::CountUTF8(const char* utf8, size_t byteLength) { in CountUTF8() argument
48 if (!utf8) { in CountUTF8()
52 const char* stop = utf8 + byteLength; in CountUTF8()
53 while (utf8 < stop) { in CountUTF8()
54 int type = utf8_byte_type(*(const uint8_t*)utf8); in CountUTF8()
55 if (!utf8_type_is_valid_leading_byte(type) || utf8 + type > stop) { in CountUTF8()
59 ++utf8; in CountUTF8()
60 if (!utf8_byte_is_continuation(*(const uint8_t*)utf8)) { in CountUTF8()
64 ++utf8; in CountUTF8()
209 size_t SkUTF::ToUTF8(SkUnichar uni, char utf8[SkUTF::kMaxBytesInUTF8Sequence]) { in ToUTF8()
[all …]
DSkShaperJSONWriter.cpp17 SkShaperJSONWriter::SkShaperJSONWriter(SkJSONWriter* JSONWriter, const char* utf8, size_t size) in SkShaperJSONWriter() argument
19 , fUTF8{utf8, size} {}
35 static bool is_one_to_one(const char utf8[], size_t utf8Begin, size_t utf8End, in is_one_to_one() argument
44 if (SkUTF::CountUTF8(&utf8[clusters[clusterIndex]], utf8ClusterSize) != 1) { in is_one_to_one()
86 std::string utf8{&fUTF8[info.utf8Range.begin()], info.utf8Range.size()}; in commitRunBuffer() local
87 fJSONWriter->appendString("UTF8", utf8.c_str()); in commitRunBuffer()
168 void SkShaperJSONWriter::VisualizeClusters(const char* utf8, size_t utf8Begin, size_t utf8End, in VisualizeClusters() argument
186 SkSpan<const char> utf8Span{&utf8[utf8RangeStart], utf8RangeEnd - utf8RangeStart}; in VisualizeClusters()
197 int possibleCount = SkUTF::CountUTF8(&utf8[utf8StartIndex], utf8EndIndex - utf8StartIndex); in VisualizeClusters()
208 SkSpan<const char> utf8Span{&utf8[utf8StartIndex], utf8EndIndex - utf8StartIndex}; in VisualizeClusters()
[all …]
/third_party/skia/modules/skunicode/include/
DSkUnicode.h115 virtual bool isControl(SkUnichar utf8) = 0;
116 virtual bool isWhitespace(SkUnichar utf8) = 0;
117 virtual bool isSpace(SkUnichar utf8) = 0;
132 … (const char utf8[], int utf8Units, TextDirection dir, std::vector<BidiRegion>* results) = 0;
134 (const char utf8[], int utf8Units, std::vector<LineBreakBefore>* results) = 0;
136 (const char utf8[], int utf8Units, std::vector<Position>* results) = 0;
138 (const char utf8[], int utf8Units, std::vector<Position>* results) = 0;
147 SkAutoTArray<char> utf8(utf8Units); in convertUtf16ToUtf8()
148 …SkDEBUGCODE(int dstLen =) SkUTF::UTF16ToUTF8(utf8.data(), utf8Units, (uint16_t*)utf16, utf16Units); in convertUtf16ToUtf8()
151 return SkString(utf8.data(), utf8Units); in convertUtf16ToUtf8()
[all …]
/third_party/gstreamer/gstplugins_base/gst-libs/gst/tag/
Dtags.c343 gchar *utf8 = NULL; in gst_tag_freeform_string_to_utf8() local
358 utf8 = g_strndup (data, size); in gst_tag_freeform_string_to_utf8()
359 GST_LOG ("String '%s' is valid UTF-8 already", utf8); in gst_tag_freeform_string_to_utf8()
398 if ((utf8 = in gst_tag_freeform_string_to_utf8()
403 g_free (utf8); in gst_tag_freeform_string_to_utf8()
404 utf8 = NULL; in gst_tag_freeform_string_to_utf8()
421 if ((utf8 = in gst_tag_freeform_string_to_utf8()
427 g_free (utf8); in gst_tag_freeform_string_to_utf8()
428 utf8 = NULL; in gst_tag_freeform_string_to_utf8()
440 if ((utf8 = g_locale_to_utf8 (data, size, &bytes_read, NULL, NULL))) { in gst_tag_freeform_string_to_utf8()
[all …]
/third_party/glib/glib/tests/
Dconvert.c140 check_utf8_to_ucs4 (const char *utf8, in check_utf8_to_ucs4() argument
155 result = g_utf8_to_ucs4_fast (utf8, utf8_len, &items_written); in check_utf8_to_ucs4()
166 result = g_utf8_to_ucs4 (utf8, utf8_len, &items_read, &items_written, &error); in check_utf8_to_ucs4()
168 if (utf8_len == strlen (utf8)) in check_utf8_to_ucs4()
172 result2 = g_utf8_to_ucs4 (utf8, -1, &items_read2, &items_written2, &error2); in check_utf8_to_ucs4()
187 result3 = g_utf8_to_ucs4 (utf8, utf8_len, NULL, NULL, &error3); in check_utf8_to_ucs4()
232 const char *utf8, in check_ucs4_to_utf8() argument
282 g_assert_cmpstr (result, ==, utf8); in check_ucs4_to_utf8()
286 g_assert_cmpstr (result3, ==, utf8); in check_ucs4_to_utf8()
294 check_utf8_to_utf16 (const char *utf8, in check_utf8_to_utf16() argument
[all …]
/third_party/glib/tests/
Dunicode-encoding.c94 gchar *utf8, in process() argument
100 gboolean is_valid = g_utf8_validate (utf8, -1, &end); in process()
129 ucs4_result = g_utf8_to_ucs4 (utf8, -1, NULL, NULL, &error); in process()
138 ucs4_result = g_utf8_to_ucs4 (utf8, -1, &items_read, NULL, &error); in process()
140 if (!ucs4_result || items_read == strlen (utf8)) in process()
153 ucs4_result = g_utf8_to_ucs4 (utf8, -1, &items_read, &items_written, &error); in process()
161 items_read != strlen (utf8) || in process()
178 ucs4_result = g_utf8_to_ucs4_fast (utf8, -1, &items_written); in process()
196 if (strcmp (utf8_result, utf8) != 0 || in process()
198 items_written != strlen (utf8)) in process()
[all …]
/third_party/mindspore/third_party/patch/cppjieba/
Dcppjieba.patch00196 cppjieba::Jieba jieba("../dict/jieba.dict.utf8",
97 "../dict/hmm_model.utf8",
98 - "../dict/user.dict.utf8",
99 - "../dict/idf.utf8",
100 - "../dict/stop_words.utf8");
101 + "../dict/user.dict.utf8");
107 cppjieba::Jieba jieba("../dict/jieba.dict.utf8",
108 "../dict/hmm_model.utf8",
109 - "../dict/user.dict.utf8",
110 - "../dict/idf.utf8",
[all …]
/third_party/glib/gio/tests/
Dwin32-appinfo.c67 const gchar *utf8; in test_utf16_strfuncs() member
95 gchar *utf8; in test_utf16_strfuncs() local
115 if (string_cases[i].utf8 == NULL) in test_utf16_strfuncs()
120 utf8 = NULL; in test_utf16_strfuncs()
121 success = g_utf16_to_utf8_and_fold (string_cases[i].utf16, -1, &utf8, NULL); in test_utf16_strfuncs()
123 if (string_cases[i].utf8 != NULL) in test_utf16_strfuncs()
126 g_assert_cmpstr (string_cases[i].utf8, ==, utf8); in test_utf16_strfuncs()
128 g_assert_true (utf8 == g_utf8_find_basename (utf8, len)); in test_utf16_strfuncs()
131 g_free (utf8); in test_utf16_strfuncs()
133 utf8 = NULL; in test_utf16_strfuncs()
[all …]
/third_party/libphonenumber/cpp/test/phonenumbers/
Dunicodestring_test.cc30 string utf8; in operator <<() local
31 s.toUTF8String(utf8); in operator <<()
32 out << utf8; in operator <<()
38 string utf8; in TEST() local
39 s.toUTF8String(utf8); in TEST()
40 EXPECT_EQ("", utf8); in TEST()
45 string utf8; in TEST() local
46 s.toUTF8String(utf8); in TEST()
47 EXPECT_EQ("hello", utf8); in TEST()
52 string utf8; in TEST() local
[all …]
/third_party/node/test/es-module/
Dtest-esm-tla-unfinished.mjs11 { encoding: 'utf8' });
20 { encoding: 'utf8' });
31 { encoding: 'utf8' });
41 { encoding: 'utf8' });
51 { encoding: 'utf8' });
60 { encoding: 'utf8' });
70 { encoding: 'utf8' });
79 { encoding: 'utf8' });
89 { encoding: 'utf8' });
98 { encoding: 'utf8' });
/third_party/skia/docs/examples/
DPaint_textToGlyphs.cpp9 const uint8_t utf8[] = { 0x24, 0xC2, 0xA2, 0xE2, 0x82, 0xAC, 0xC2, 0xA5, 0xC2, 0xA3 };
11 int count = paint.textToGlyphs(utf8, sizeof(utf8), nullptr);
13 (void) paint.textToGlyphs(utf8, sizeof(utf8), &glyphs.front());
/third_party/flutter/skia/docs/examples/
DPaint_textToGlyphs.cpp9 const uint8_t utf8[] = { 0x24, 0xC2, 0xA2, 0xE2, 0x82, 0xAC, 0xC2, 0xA5, 0xC2, 0xA3 };
11 int count = paint.textToGlyphs(utf8, sizeof(utf8), nullptr);
13 (void) paint.textToGlyphs(utf8, sizeof(utf8), &glyphs.front());
/third_party/boost/libs/nowide/test/
Dtest_sets.hpp17 const char* utf8; member
24 const char* utf8; member
97 TEST(roundtrip_tests[i].utf8 == to_narrow(roundtrip_tests[i].wide)); in run_all()
98 TEST(to_wide(roundtrip_tests[i].utf8) == roundtrip_tests[i].wide); in run_all()
104 TEST(to_wide(invalid_utf8_tests[i].utf8) == invalid_utf8_tests[i].wide); in run_all()
110 TEST(to_narrow(invalid_wide_tests[i].wide) == invalid_wide_tests[i].utf8); in run_all()
127 TEST(to_narrow(ptr[i].wide) == ptr[i].utf8); in run_all()
/third_party/skia/modules/skshaper/include/
DSkShaper.h119 MakeFontMgrRunIterator(const char* utf8, size_t utf8Bytes,
122 MakeFontMgrRunIterator(const char* utf8, size_t utf8Bytes,
136 MakeBiDiRunIterator(const char* utf8, size_t utf8Bytes, uint8_t bidiLevel);
139 …MakeSkUnicodeBidiRunIterator(SkUnicode* unicode, const char* utf8, size_t utf8Bytes, uint8_t bidiL…
141 MakeIcuBiDiRunIterator(const char* utf8, size_t utf8Bytes, uint8_t bidiLevel);
153 MakeScriptRunIterator(const char* utf8, size_t utf8Bytes, SkFourByteTag script);
156 MakeSkUnicodeHbScriptRunIterator(SkUnicode* unicode, const char* utf8, size_t utf8Bytes);
158 MakeHbIcuScriptRunIterator(const char* utf8, size_t utf8Bytes);
170 MakeStdLanguageRunIterator(const char* utf8, size_t utf8Bytes);
230 virtual void shape(const char* utf8, size_t utf8Bytes,
[all …]
/third_party/gptfdisk/
Dgptpart.cc92 string utf8 ; in GetDescription() local
123 utf8 += (char) uni ; in GetDescription()
126 utf8 += (char) ( 0xc0 | ( uni >> 6 ) ) ; in GetDescription()
127 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ; in GetDescription()
130 utf8 += (char) ( 0xe0 | ( uni >> 12 ) ) ; in GetDescription()
131 utf8 += (char) ( 0x80 | ( ( uni >> 6 ) & 0x3f ) ) ; in GetDescription()
132 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ; in GetDescription()
135 utf8 += (char) ( 0xf0 | ( uni >> 18 ) ) ; in GetDescription()
136 utf8 += (char) ( 0xe0 | ( ( uni >> 12 ) & 0x3f ) ) ; in GetDescription()
137 utf8 += (char) ( 0x80 | ( ( uni >> 6 ) & 0x3f ) ) ; in GetDescription()
[all …]
/third_party/flutter/flutter/packages/flutter_tools/lib/src/
Dconvert.dart5 // Hide the original utf8 [Codec] so that we can export our own implementation
7 import 'dart:convert' hide utf8;
8 import 'dart:convert' as cnv show utf8, Utf8Decoder;
11 export 'dart:convert' hide utf8, Utf8Codec, Utf8Decoder;
22 Converter<String, List<int>> get encoder => cnv.utf8.encoder;
25 String get name => cnv.utf8.name;
28 Encoding get utf8 => const Utf8Codec();

12345678910>>...29