Home
last modified time | relevance | path

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

/third_party/skia/tests/
DUnicodeTest.cpp17 const char text8[] = "ABCDEFGabcdefg0123456789"; in DEF_TEST() local
18 uint16_t text16[sizeof(text8)]; in DEF_TEST()
19 int32_t text32[sizeof(text8)]; in DEF_TEST()
20 size_t len8 = strlen(text8); in DEF_TEST()
26 text32[i] = text16[i] = text8[i]; in DEF_TEST()
29 uint16_t glyphs8[sizeof(text8)]; in DEF_TEST()
30 uint16_t glyphs16[sizeof(text8)]; in DEF_TEST()
31 uint16_t glyphs32[sizeof(text8)]; in DEF_TEST()
35 …int count8 = font.textToGlyphs(text8, len8, SkTextEncoding::kUTF8, glyphs8, SK_ARRAY_COUNT(gl… in DEF_TEST()
/third_party/flutter/skia/tests/
DUnicodeTest.cpp17 const char text8[] = "ABCDEFGabcdefg0123456789"; in DEF_TEST() local
18 uint16_t text16[sizeof(text8)]; in DEF_TEST()
19 int32_t text32[sizeof(text8)]; in DEF_TEST()
20 size_t len8 = strlen(text8); in DEF_TEST()
26 text32[i] = text16[i] = text8[i]; in DEF_TEST()
29 uint16_t glyphs8[sizeof(text8)]; in DEF_TEST()
30 uint16_t glyphs16[sizeof(text8)]; in DEF_TEST()
31 uint16_t glyphs32[sizeof(text8)]; in DEF_TEST()
35 …int count8 = font.textToGlyphs(text8, len8, SkTextEncoding::kUTF8, glyphs8, SK_ARRAY_COUNT(gl… in DEF_TEST()
/third_party/boost/libs/regex/test/regress/
Dtest_icu.cpp332 std::vector<unsigned char> expression8, text8; in test_icu() local
337 text8.assign(u8_conv(search_text.begin()), u8_conv(search_text.end())); in test_icu()
341 text8.clear(); in test_icu()
342 … std::copy(u8_conv(search_text.begin()), u8_conv(search_text.end()), std::back_inserter(text8)); in test_icu()
345 …st_cast<const std::vector<unsigned char>&>(text8).begin(), const_cast<const std::vector<unsigned c… in test_icu()
358 if(std::find(text8.begin(), text8.end(), 0) == text8.end()) in test_icu()
360 text8.push_back(0); in test_icu()
361 if(boost::u32regex_search((const unsigned char*)&*text8.begin(), what8c, r, opts)) in test_icu()
637 std::vector<char> expression8, text8, format8, result8, found8; in test_icu() local
640 text8.assign(u8_conv(search_text.begin()), u8_conv(search_text.end())); in test_icu()
[all …]
/third_party/skia/experimental/sktext/src/
DText.cpp230 auto text8 = SkUnicode::convertUtf16ToUtf8(std::u16string(text16.data(), text16.size())); in shape() local
234 UTF16FromUTF8.push_back_n(text8.size() + 1, utf16Index); in shape()
236 unicodeText->getUnicode()->forEachCodepoint(text8.c_str(), text8.size(), in shape()
247 UTF16FromUTF8[text8.size()] = text16.size(); in shape()
248 UTF8FromUTF16[text16.size()] = text8.size(); in shape()
259 formattingMarks.emplace_back(text8.size()/* UTF8FromUTF16[text16.size() */); in shape()
264 TextRange text8(UTF8FromUTF16[fb.textRange.fStart], UTF8FromUTF16[fb.textRange.fEnd]); in shape() local
265 fontBlocks8.emplace_back(text8, fb.typeface, fb.size, fb.style); in shape()
269 FormattingFontIterator fontIter(text8.size(), in shape()
272 SkShaper::TrivialLanguageRunIterator langIter(text8.c_str(), text8.size()); in shape()
[all …]
/third_party/re2/
Ducs2.diff423 - // Rewrites *sp from being a pointer into text8 (UTF-8)
425 - static void AdjustUTF8ToUCS2(const StringPiece& text8, const StringPiece& text16,
427 - if (sp->begin() == NULL && text8.begin() != NULL)
433 - const char* p = text8.begin();
434 - const char* ep = text8.end();
450 - << CEscape(text8) << " "
451 - << (int)(sp->begin() - text8.begin()) << " "
452 - << (int)(sp->end() - text8.begin());
458 - // to being a pointer into text8 (equivalent text but in UTF-8).
459 - static void AdjustUCS2ToUTF8(const StringPiece& text16, const StringPiece& text8,
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dutxttest.cpp1521 const char *text8 = in Ticket12130() local
1530 UnicodeString str(text8); in Ticket12130()
Dregextst.cpp5842 StringPiece text8(u8"¿Qué es Unicode? Unicode proporciona un número único para cada" in TestBug12884() local
5846 LocalUTextPointer ut(utext_openUTF8(NULL, text8.data(), text8.length(), &status)); in TestBug12884()
/third_party/skia/third_party/externals/expat/expat/tests/
Druntests.c3412 const char *text8 = "<doc>]"; in START_TEST() local
3415 int text8_len = (int)strlen(text8); in START_TEST()
3420 if (_XML_Parse_SINGLE_BYTES(g_parser, text8, text8_len, XML_TRUE) in START_TEST()
/third_party/expat/tests/
Druntests.c3412 const char *text8 = "<doc>]"; in START_TEST() local
3415 int text8_len = (int)strlen(text8); in START_TEST()
3420 if (_XML_Parse_SINGLE_BYTES(g_parser, text8, text8_len, XML_TRUE) in START_TEST()