/third_party/flutter/skia/src/utils/ |
D | SkUTF.h | 9 typedef int32_t SkUnichar; typedef 34 SkUnichar NextUTF8(const char** ptr, const char* end); 41 SkUnichar NextUTF16(const uint16_t** ptr, const uint16_t* end); 48 SkUnichar NextUTF32(const int32_t** ptr, const int32_t* end); 57 size_t ToUTF8(SkUnichar uni, char utf8[kMaxBytesInUTF8Sequence] = nullptr); 64 size_t ToUTF16(SkUnichar uni, uint16_t utf16[2] = nullptr);
|
D | SkCharToGlyphCache.cpp | 39 static int find_simple(const SkUnichar base[], int count, SkUnichar value) { in find_simple() 52 static int find_with_slope(const SkUnichar base[], int count, SkUnichar value, double denom) { in find_with_slope() 96 int SkCharToGlyphCache::findGlyphIndex(SkUnichar unichar) const { in findGlyphIndex() 110 void SkCharToGlyphCache::insertCharAndGlyph(int index, SkUnichar unichar, SkGlyphID glyph) { in insertCharAndGlyph()
|
D | SkUTF.cpp | 113 static SkUnichar next_fail(const T** ptr, const T* end) { in next_fail() 118 SkUnichar SkUTF::NextUTF8(const char** ptr, const char* end) { in NextUTF8() 154 SkUnichar SkUTF::NextUTF16(const uint16_t** ptr, const uint16_t* end) { in NextUTF16() 163 SkUnichar result = c; in NextUTF16() 186 result = (result << 10) + (SkUnichar)low - ((0xD800 << 10) + 0xDC00 - 0x10000); in NextUTF16() 192 SkUnichar SkUTF::NextUTF32(const int32_t** ptr, const int32_t* end) { in NextUTF32() 209 size_t SkUTF::ToUTF8(SkUnichar uni, char utf8[SkUTF::kMaxBytesInUTF8Sequence]) { in ToUTF8() 238 size_t SkUTF::ToUTF16(SkUnichar uni, uint16_t utf16[2]) { in ToUTF16()
|
D | SkCharToGlyphCache.h | 38 int findGlyphIndex(SkUnichar c) const; 44 void insertCharAndGlyph(int index, SkUnichar, SkGlyphID); 47 void addCharAndGlyph(SkUnichar unichar, SkGlyphID glyph) { in addCharAndGlyph()
|
/third_party/skia/src/utils/ |
D | SkUTF.h | 11 typedef int32_t SkUnichar; typedef 36 SK_SPI SkUnichar NextUTF8(const char** ptr, const char* end); 43 SK_SPI SkUnichar NextUTF16(const uint16_t** ptr, const uint16_t* end); 50 SK_SPI SkUnichar NextUTF32(const int32_t** ptr, const int32_t* end); 59 SK_SPI size_t ToUTF8(SkUnichar uni, char utf8[kMaxBytesInUTF8Sequence] = nullptr); 66 SK_SPI size_t ToUTF16(SkUnichar uni, uint16_t utf16[2] = nullptr);
|
D | SkUTF.cpp | 114 static SkUnichar next_fail(const T** ptr, const T* end) { in next_fail() 119 SkUnichar SkUTF::NextUTF8(const char** ptr, const char* end) { in NextUTF8() 155 SkUnichar SkUTF::NextUTF16(const uint16_t** ptr, const uint16_t* end) { in NextUTF16() 164 SkUnichar result = c; in NextUTF16() 187 result = (result << 10) + (SkUnichar)low - ((0xD800 << 10) + 0xDC00 - 0x10000); in NextUTF16() 193 SkUnichar SkUTF::NextUTF32(const int32_t** ptr, const int32_t* end) { in NextUTF32() 210 size_t SkUTF::ToUTF8(SkUnichar uni, char utf8[SkUTF::kMaxBytesInUTF8Sequence]) { in ToUTF8() 239 size_t SkUTF::ToUTF16(SkUnichar uni, uint16_t utf16[2]) { in ToUTF16() 264 SkUnichar uni = NextUTF8(&src, endSrc); in UTF8ToUTF16() 296 SkUnichar uni = NextUTF16(&src, endSrc); in UTF16ToUTF8()
|
D | SkCharToGlyphCache.cpp | 39 static int find_simple(const SkUnichar base[], int count, SkUnichar value) { in find_simple() 52 static int find_with_slope(const SkUnichar base[], int count, SkUnichar value, double denom) { in find_with_slope() 96 int SkCharToGlyphCache::findGlyphIndex(SkUnichar unichar) const { in findGlyphIndex() 110 void SkCharToGlyphCache::insertCharAndGlyph(int index, SkUnichar unichar, SkGlyphID glyph) { in insertCharAndGlyph()
|
D | SkCharToGlyphCache.h | 38 int findGlyphIndex(SkUnichar c) const; 44 void insertCharAndGlyph(int index, SkUnichar, SkGlyphID); 47 void addCharAndGlyph(SkUnichar unichar, SkGlyphID glyph) { in addCharAndGlyph()
|
/third_party/flutter/skia/src/core/ |
D | SkUtils.cpp | 11 static SkUnichar next(const T** srcPtr, unsigned N, SkUnichar (*fn)(const T**, const T*)) { in next() 14 SkUnichar c = fn(&ptr, ptr + N); in next() 23 SkUnichar SkUTF8_NextUnichar(const char** p) { in SkUTF8_NextUnichar() 26 SkUnichar SkUTF16_NextUnichar(const uint16_t** p) { in SkUTF16_NextUnichar()
|
D | SkUtils.h | 34 SkUnichar SkUTF8_NextUnichar(const char**); 35 SkUnichar SkUTF16_NextUnichar(const uint16_t**); 54 static inline SkUnichar SkUTFN_Next(SkTextEncoding enc, const void** ptr, const void* stop) { in SkUTFN_Next()
|
/third_party/flutter/skia/tests/ |
D | SkUTFTest.cpp | 9 static const SkUnichar gUni[] = { in DEF_TEST() 12 for (SkUnichar uni : gUni) { in DEF_TEST() 19 SkUnichar c = SkUTF::NextUTF16(&ptr, buf + SK_ARRAY_COUNT(buf)); in DEF_TEST() 28 SkUnichar fUni; in DEF_TEST() 46 SkUnichar u1 = SkUTF::NextUTF8(&p, stop); in DEF_TEST() 98 SkUnichar expected; in DEF_TEST() 110 SkUnichar uni = SkUTF::NextUTF8(&str, str + strlen(str)); in DEF_TEST()
|
/third_party/skia/tests/ |
D | SkUTFTest.cpp | 9 static const SkUnichar gUni[] = { in DEF_TEST() 12 for (SkUnichar uni : gUni) { in DEF_TEST() 19 SkUnichar c = SkUTF::NextUTF16(&ptr, buf + SK_ARRAY_COUNT(buf)); in DEF_TEST() 28 SkUnichar fUni; in DEF_TEST() 46 SkUnichar u1 = SkUTF::NextUTF8(&p, stop); in DEF_TEST() 98 SkUnichar expected; in DEF_TEST() 110 SkUnichar uni = SkUTF::NextUTF8(&str, str + strlen(str)); in DEF_TEST()
|
/third_party/skia/tools/fonts/ |
D | TestTypeface.h | 39 const SkUnichar* fCharCodes; 51 SkGlyphID glyphForUnichar(SkUnichar charCode) const; 55 const SkUnichar* fCharCodes; 76 void getGlyphToUnicodeMap(SkUnichar* glyphToUnicode) const override; 87 void onCharsToGlyphs(const SkUnichar* chars, int count, SkGlyphID glyphs[]) const override;
|
D | TestSVGTypeface.h | 49 SkUnichar fUnicode; // TODO: this limits to 1:1 88 void getGlyphToUnicodeMap(SkUnichar*) const override; 99 void onCharsToGlyphs(const SkUnichar* chars, int count, SkGlyphID glyphs[]) const override; 160 SkTHashMap<SkUnichar, SkGlyphID> fCMap;
|
/third_party/flutter/skia/tools/fonts/ |
D | TestTypeface.h | 39 const SkUnichar* fCharCodes; 51 SkGlyphID glyphForUnichar(SkUnichar charCode) const; 55 const SkUnichar* fCharCodes; 76 void getGlyphToUnicodeMap(SkUnichar* glyphToUnicode) const override; 87 void onCharsToGlyphs(const SkUnichar* chars, int count, SkGlyphID glyphs[]) const override;
|
D | TestSVGTypeface.h | 47 SkUnichar fUnicode; // TODO: this limits to 1:1 86 void getGlyphToUnicodeMap(SkUnichar*) const override; 97 void onCharsToGlyphs(const SkUnichar* chars, int count, SkGlyphID glyphs[]) const override; 155 SkTHashMap<SkUnichar, SkGlyphID> fCMap;
|
/third_party/flutter/skia/tools/sk_app/ |
D | CommandSet.h | 45 bool onChar(SkUnichar, ModifierKey modifiers); 48 void addCommand(SkUnichar c, const char* group, const char* description, 64 Command(SkUnichar c, const char* group, const char* description, in Command() 85 SkUnichar fChar;
|
/third_party/skia/tools/sk_app/ |
D | CommandSet.h | 45 bool onChar(SkUnichar, skui::ModifierKey modifiers); 48 void addCommand(SkUnichar c, const char* group, const char* description, 64 Command(SkUnichar c, const char* group, const char* description, in Command() 85 SkUnichar fChar;
|
/third_party/flutter/skia/src/ports/ |
D | SkFontMgr_ohos.h | 291 SkUnichar character); 297 SkUnichar character); 317 const SkString& langTag, SkUnichar character); 323 SkUnichar character) const override; 341 const SkString& langTag, SkUnichar character); 346 const SkString& langTag, SkUnichar character); 349 const SkString& langTag, SkUnichar character); 353 const SkString& langTag, SkUnichar character);
|
D | SkFontMgr_ohos.cpp | 105 const SkString& langTag, SkUnichar character) in find_family_style_character() 133 const SkString& langTag, SkUnichar character) in find_family_style_character_ohos() 169 SkUnichar character) { in find_family_style_character_hwfont() 204 const SkString& langTag, SkUnichar character) in findFromCache() 243 const SkString& langTag, SkUnichar character) in findFromHwFontCache() 282 …lyName[], const SkFontStyle& style, const char* bcp47[], int bcp47Count, SkUnichar character) const in onMatchFamilyStyleCharacter() 310 …r familyName[], const SkFontStyle& style, const char* bcp47[], int bcp47Count, SkUnichar character) in onMatchFamilyStyleCharacterOHOS() 336 …r familyName[], const SkFontStyle& style, const char* bcp47[], int bcp47Count, SkUnichar character) in onMatchFamilyStyleCharacterHwFont()
|
/third_party/skia/src/core/ |
D | SkTypeface.cpp | 55 void onCharsToGlyphs(const SkUnichar* chars, int count, SkGlyphID glyphs[]) const override { in onCharsToGlyphs() 60 void getGlyphToUnicodeMap(SkUnichar*) const override {} in getGlyphToUnicodeMap() 300 void SkTypeface::unicharsToGlyphs(const SkUnichar uni[], int count, SkGlyphID glyphs[]) const { in unicharsToGlyphs() 306 SkGlyphID SkTypeface::unicharToGlyph(SkUnichar uni) const { in unicharToGlyph() 317 const SkUnichar* convert(const void* text, size_t byteLength, SkTextEncoding encoding) { in convert() 318 const SkUnichar* uni; in convert() 337 uni = (const SkUnichar*)text; in convert() 346 SkAutoSTMalloc<256, SkUnichar> fStorage; 369 const SkUnichar* uni = storage.convert(text, byteLength, encoding); in textToGlyphs() 411 void SkTypeface::getGlyphToUnicodeMap(SkUnichar* dst) const { in getGlyphToUnicodeMap() [all …]
|
/third_party/flutter/skia/samplecode/ |
D | SampleChineseFling.cpp | 80 SkUnichar glyphs[kWordLength]; in onOnceBeforeDraw() 98 void createRandomWord(SkUnichar glyphs[kWordLength]) { in createRandomWord() 119 bool onChar(SkUnichar uni) override { in onChar() 188 SkUnichar glyphs[45]; in onOnceBeforeDraw() 212 void createRandomLine(SkUnichar glyphs[45], int lineLength) { in createRandomLine()
|
/third_party/skia/samplecode/ |
D | SampleChineseFling.cpp | 80 SkUnichar glyphs[kWordLength]; in onOnceBeforeDraw() 98 void createRandomWord(SkUnichar glyphs[kWordLength]) { in createRandomWord() 119 bool onChar(SkUnichar uni) override { in onChar() 192 SkUnichar glyphs[45]; in onOnceBeforeDraw() 216 void createRandomLine(SkUnichar glyphs[45], int lineLength) { in createRandomLine()
|
/third_party/skia/modules/skunicode/include/ |
D | SkUnicode.h | 76 virtual bool getScript(SkUnichar u, ScriptID* script) = 0; 115 virtual bool isControl(SkUnichar utf8) = 0; 116 virtual bool isWhitespace(SkUnichar utf8) = 0; 117 virtual bool isSpace(SkUnichar utf8) = 0; 183 SkUnichar unichar = SkUTF::NextUTF8(¤t, end); in forEachCodepoint() 198 … SkUnichar unichar = SkUTF::NextUTF16((const uint16_t**)¤t, (const uint16_t*)end); in forEachCodepoint() 223 SkUnichar u = SkUTF::NextUTF16(&start16, end16); in forEachBidiRegion()
|
/third_party/flutter/skia/modules/skparagraph/src/ |
D | FontResolver.h | 55 SkUnichar firstUnresolved(); 68 SkTArray<SkUnichar> fCodepoints; 71 SkTArray<SkUnichar> fUnresolvedCodepoints;
|