/external/skqp/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 | 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()
|
/external/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()
|
/external/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 | SkFont.cpp | 145 SkGlyphID SkFont::unicharToGlyph(SkUnichar uni) const { in unicharToGlyph() 149 void SkFont::unicharsToGlyphs(const SkUnichar uni[], int count, SkGlyphID glyphs[]) const { in unicharsToGlyphs() 157 const SkUnichar* convert(const void* text, size_t byteLength, SkTextEncoding encoding) { in convert() 158 const SkUnichar* uni; in convert() 177 uni = (const SkUnichar*)text; in convert() 186 SkAutoSTMalloc<256, SkUnichar> fStorage; 208 const SkUnichar* uni = storage.convert(text, byteLength, encoding); in textToGlyphs() 420 SkUnichar text[]) { in GlyphsToUnichars() 427 SkAutoTArray<SkUnichar> unichars(numGlyphsInTypeface); in GlyphsToUnichars()
|
/external/skqp/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(SkTypeface::Encoding enc, in SkUTFN_Next()
|
/external/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()
|
/external/skqp/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()
|
D | PaintTest.cpp | 24 static size_t uni_to_utf8(const SkUnichar src[], void* dst, int count) { in uni_to_utf8() 33 static size_t uni_to_utf16(const SkUnichar src[], void* dst, int count) { in uni_to_utf16() 42 static size_t uni_to_utf32(const SkUnichar src[], void* dst, int count) { in uni_to_utf32() 43 SkUnichar* u32 = (SkUnichar*)dst; in uni_to_utf32() 45 memcpy(u32, src, count * sizeof(SkUnichar)); in uni_to_utf32() 47 return count * sizeof(SkUnichar); in uni_to_utf32() 66 SkUnichar src[NGLYPHS]; in DEF_TEST() 67 SkUnichar dst[NGLYPHS]; // used for utf8, utf16, utf32 storage in DEF_TEST() 70 size_t (*fSeedTextProc)(const SkUnichar[], void* dst, int count); in DEF_TEST()
|
/external/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; 156 SkTHashMap<SkUnichar, SkGlyphID> fCMap;
|
/external/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;
|
/external/skqp/tools/sk_app/ |
D | CommandSet.h | 45 bool onChar(SkUnichar, uint32_t 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;
|
/external/skia/modules/skshaper/src/ |
D | SkUnicode.h | 75 virtual bool getScript(SkUnichar u, ScriptID* script) = 0; 114 virtual bool isControl(SkUnichar utf8) = 0; 115 virtual bool isWhitespace(SkUnichar utf8) = 0; 116 virtual bool isSpace(SkUnichar utf8) = 0; 144 SkUnichar unichar = SkUTF::NextUTF8(¤t, end); in forEachCodepoint()
|
/external/skqp/tools/fonts/ |
D | SkTestTypeface.h | 38 const SkUnichar* fCharCodes; 50 SkGlyphID glyphForUnichar(SkUnichar charCode) const; 53 const SkUnichar* fCharCodes; 74 void getGlyphToUnicodeMap(SkUnichar* glyphToUnicode) const override;
|
D | SkTestTypeface.cpp | 52 SkGlyphID SkTestFont::glyphForUnichar(SkUnichar charCode) const { in glyphForUnichar() 125 void SkTestTypeface::getGlyphToUnicodeMap(SkUnichar* glyphToUnicode) const { in getGlyphToUnicodeMap() 128 glyphToUnicode[gid] = SkTo<SkUnichar>(fTestFont->fCharCodes[gid]); in getGlyphToUnicodeMap() 148 auto utf32 = (const SkUnichar*)chars; in onCharsToGlyphs() 151 SkUnichar ch; in onCharsToGlyphs() 193 uint16_t generateCharToGlyph(SkUnichar uni) override { in generateCharToGlyph()
|
/external/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()
|
/external/skqp/samplecode/ |
D | SampleChineseFling.cpp | 90 SkUnichar glyphs[kWordLength]; in init() 105 void createRandomWord(SkUnichar glyphs[kWordLength]) { in createRandomWord() 131 SkUnichar uni; in onQuery() 210 SkUnichar glyphs[45]; in init() 232 void createRandomLine(SkUnichar glyphs[45], int lineLength) { in createRandomLine()
|
/external/skqp/src/pdf/ |
D | SkPDFMakeToUnicodeCmap.cpp | 64 SkUnichar fUnicode; 70 SkUnichar fUnicode; 152 void SkPDFAppendCmapSections(const SkUnichar* glyphToUnicode, in SkPDFAppendCmapSections() 209 const SkUnichar* glyphToUnicode, in SkPDFMakeToUnicodeCmap()
|
/external/skia/src/pdf/ |
D | SkPDFMakeToUnicodeCmap.cpp | 64 SkUnichar fUnicode; 70 SkUnichar fUnicode; 152 void SkPDFAppendCmapSections(const SkUnichar* glyphToUnicode, in SkPDFAppendCmapSections() 209 const SkUnichar* glyphToUnicode, in SkPDFMakeToUnicodeCmap()
|
/external/skqp/src/ports/ |
D | SkTypeface_win_dw.cpp | 55 static SkUnichar next_utf8(const void** chars) { in next_utf8() 59 static SkUnichar next_utf16(const void** chars) { in next_utf16() 63 static SkUnichar next_utf32(const void** chars) { in next_utf32() 64 const SkUnichar** uniChars = (const SkUnichar**)chars; in next_utf32() 65 SkUnichar uni = **uniChars; in next_utf32() 70 typedef SkUnichar (*EncodingProc)(const void**); 86 const SkUnichar c = next_ucs4_proc(&chars); in onCharsToGlyphs() 443 void DWriteFontTypeface::getGlyphToUnicodeMap(SkUnichar* glyphToUnicode) const { in getGlyphToUnicodeMap() 445 sk_bzero(glyphToUnicode, sizeof(SkUnichar) * glyphCount); in getGlyphToUnicodeMap()
|