Home
last modified time | relevance | path

Searched refs:utf8Bytes (Results 1 – 13 of 13) sorted by relevance

/third_party/skia/modules/skshaper/include/
DSkShaper.h108 TrivialRunIterator(size_t utf8Bytes) : fEnd(utf8Bytes), fAtEnd(fEnd == 0) {} in TrivialRunIterator() argument
119 MakeFontMgrRunIterator(const char* utf8, size_t utf8Bytes,
122 MakeFontMgrRunIterator(const char* utf8, size_t utf8Bytes,
128 TrivialFontRunIterator(const SkFont& font, size_t utf8Bytes) in TrivialFontRunIterator() argument
129 : TrivialRunIterator(utf8Bytes), fFont(font) {} in TrivialFontRunIterator()
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);
145 TrivialBiDiRunIterator(uint8_t bidiLevel, size_t utf8Bytes) in TrivialBiDiRunIterator() argument
146 : TrivialRunIterator(utf8Bytes), fBidiLevel(bidiLevel) {} in TrivialBiDiRunIterator()
[all …]
/third_party/flutter/skia/modules/skshaper/include/
DSkShaper.h59 TrivialRunIterator(size_t utf8Bytes) : fEnd(utf8Bytes), fAtEnd(false) {} in TrivialRunIterator() argument
74 MakeFontMgrRunIterator(const char* utf8, size_t utf8Bytes,
78 TrivialFontRunIterator(const SkFont& font, size_t utf8Bytes) in TrivialFontRunIterator() argument
79 : TrivialRunIterator(utf8Bytes), fFont(font) {} in TrivialFontRunIterator()
92 MakeIcuBiDiRunIterator(const char* utf8, size_t utf8Bytes, uint8_t bidiLevel);
96 TrivialBiDiRunIterator(uint8_t bidiLevel, size_t utf8Bytes) in TrivialBiDiRunIterator() argument
97 : TrivialRunIterator(utf8Bytes), fBidiLevel(bidiLevel) {} in TrivialBiDiRunIterator()
110 MakeHbIcuScriptRunIterator(const char* utf8, size_t utf8Bytes);
114 TrivialScriptRunIterator(SkFourByteTag script, size_t utf8Bytes) in TrivialScriptRunIterator() argument
115 : TrivialRunIterator(utf8Bytes), fScript(script) {} in TrivialScriptRunIterator()
[all …]
/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.cpp46 SkShaper::MakeBiDiRunIterator(const char* utf8, size_t utf8Bytes, uint8_t bidiLevel) { in MakeBiDiRunIterator() argument
55 utf8Bytes, in MakeBiDiRunIterator()
61 return std::make_unique<SkShaper::TrivialBiDiRunIterator>(bidiLevel, utf8Bytes); 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()
77 return std::make_unique<SkShaper::TrivialScriptRunIterator>(scriptTag, 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()
[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()
199 void SkShaper_CoreText::shape(const char* utf8, size_t utf8Bytes, in shape() argument
205 CFStringCreateWithBytes(kCFAllocatorDefault, (const uint8_t*)utf8, utf8Bytes, in shape()
209 if (!utf8IndicesMap.setUTF8(utf8, utf8Bytes)) { in shape()
DSkShaper_harfbuzz.cpp393 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,
739 void wrap(char const * const utf8, size_t utf8Bytes,
789 void ShaperHarfBuzz::shape(const char* utf8, size_t utf8Bytes, in shape() argument
798 utf8Bytes, in shape()
[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()
152 while (0 < utf8Bytes) { in shape()
154 size_t bytesConsumed = linebreak(utf8, utf8 + utf8Bytes, font, width, in shape()
182 SkUTF::NextUTF8(&txtPtr, utf8 + utf8Bytes); in shape()
[all …]
DSkShaper_harfbuzz.cpp368 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,
695 void wrap(char const * const utf8, size_t utf8Bytes,
752 void ShaperHarfBuzz::shape(const char* utf8, size_t utf8Bytes, in shape() argument
761 std::unique_ptr<BiDiRunIterator> bidi(MakeIcuBiDiRunIterator(utf8, utf8Bytes, defaultLevel)); in shape()
[all …]
DSkShaper.cpp46 FontMgrRunIterator(const char* utf8, size_t utf8Bytes, const SkFont& font, in FontMgrRunIterator() argument
48 : fCurrent(utf8), fBegin(utf8), fEnd(fCurrent + utf8Bytes) in FontMgrRunIterator()
121 SkShaper::MakeFontMgrRunIterator(const char* utf8, size_t utf8Bytes, in MakeFontMgrRunIterator() argument
124 return skstd::make_unique<FontMgrRunIterator>(utf8, utf8Bytes, font, std::move(fallback)); in MakeFontMgrRunIterator()
128 SkShaper::MakeStdLanguageRunIterator(const char* utf8, size_t utf8Bytes) { in MakeStdLanguageRunIterator() argument
129 return skstd::make_unique<TrivialLanguageRunIterator>(std::locale().name().c_str(), utf8Bytes); in MakeStdLanguageRunIterator()
/third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/jvmTest/kotlin/com/google/flatbuffers/kotlin/
DUtf8Test.kt29 …val utf8Bytes = utf8Lines.map { s -> ByteArray(Utf8.encodedLength(s)).also { Utf8.encodeUtf8Array(… in <lambda>() constant
30 utf8Bytes.indices.forEach { in <lambda>()
31 assertArrayEquals(utf8Lines[it].encodeToByteArray(), utf8Bytes[it]) in <lambda>()
32 assertEquals(utf8Lines[it], Utf8.decodeUtf8Array(utf8Bytes[it])) in <lambda>()
/third_party/skia/samplecode/
DSampleTextBox.cpp66 size_t utf8Bytes = sizeof(gText) - 1; in drawTest() local
69 SkShaper::MakeBiDiRunIterator(utf8, utf8Bytes, 0xfe)); in drawTest()
75 SkShaper::MakeStdLanguageRunIterator(utf8, utf8Bytes)); in drawTest()
82 SkShaper::MakeScriptRunIterator(utf8, utf8Bytes, undeterminedScript)); in drawTest()
88 SkShaper::MakeFontMgrRunIterator(utf8, utf8Bytes, srcFont, SkFontMgr::RefDefault(), in drawTest()
94 fShaper->shape(utf8, utf8Bytes, *font, *bidi, *script, *language, w - margin, &builder); in drawTest()
/third_party/flutter/engine/flutter/shell/platform/fuchsia/dart-pkg/zircon/test/
Dsocket_test.dart14 ByteData utf8Bytes(final String text) {
49 final ByteData data = utf8Bytes('Hello, world');
63 final ByteData data = utf8Bytes('Hello, world');
87 System.socketWrite(pair.first, utf8Bytes('Hello, '), 0);
90 System.socketWrite(pair.first, utf8Bytes('world'), 0);
109 System.socketWrite(pair.second, utf8Bytes('Hi'), 0);
Dchannel_test.dart14 ByteData utf8Bytes(final String text) {
45 final ByteData data = utf8Bytes('Hello, world');
60 final ByteData data = utf8Bytes('');
85 System.channelWrite(pair.second, utf8Bytes('Hi'), <Handle>[]);