Home
last modified time | relevance | path

Searched refs:SkUnichar (Results 1 – 25 of 83) sorted by relevance

1234

/external/skia/src/core/
DSkUtils.h52 SkUnichar SkUTF8_ToUnichar(const char utf8[]);
53 SkUnichar SkUTF8_NextUnichar(const char**);
54 SkUnichar SkUTF8_PrevUnichar(const char**);
60 size_t SkUTF8_FromUnichar(SkUnichar uni, char utf8[] = NULL);
70 SkUnichar SkUTF16_NextUnichar(const uint16_t**);
72 SkUnichar SkUTF16_PrevUnichar(const uint16_t**);
73 size_t SkUTF16_FromUnichar(SkUnichar uni, uint16_t utf16[] = NULL);
78 inline bool SkUnichar_IsVariationSelector(SkUnichar uni) { in SkUnichar_IsVariationSelector()
DSkUtils.cpp66 SkUnichar SkUTF8_ToUnichar(const char utf8[]) { in SkUTF8_ToUnichar()
87 SkUnichar SkUTF8_NextUnichar(const char** ptr) { in SkUTF8_NextUnichar()
109 SkUnichar SkUTF8_PrevUnichar(const char** ptr) { in SkUTF8_PrevUnichar()
124 size_t SkUTF8_FromUnichar(SkUnichar uni, char utf8[]) { in SkUTF8_FromUnichar()
141 SkDEBUGCODE(SkUnichar orig = uni;) in SkUTF8_FromUnichar()
198 SkUnichar SkUTF16_NextUnichar(const uint16_t** srcPtr) { in SkUTF16_NextUnichar()
202 SkUnichar c = *src++; in SkUTF16_NextUnichar()
217 SkUnichar SkUTF16_PrevUnichar(const uint16_t** srcPtr) { in SkUTF16_PrevUnichar()
221 SkUnichar c = *--src; in SkUTF16_PrevUnichar()
233 size_t SkUTF16_FromUnichar(SkUnichar uni, uint16_t dst[]) { in SkUTF16_FromUnichar()
DSkGlyphCache.h40 const SkGlyph& getUnicharAdvance(SkUnichar);
49 const SkGlyph& getUnicharMetrics(SkUnichar);
56 const SkGlyph& getUnicharMetrics(SkUnichar, SkFixed x, SkFixed y);
62 uint16_t unicharToGlyph(SkUnichar);
66 SkUnichar glyphToUnichar(uint16_t);
226 SkGlyph* lookupByChar(SkUnichar id, MetricsType type, SkFixed x = 0, SkFixed y = 0);
DSkScalerContext.h211 uint16_t charToGlyphID(SkUnichar uni) { in charToGlyphID()
218 SkUnichar glyphIDToChar(uint16_t glyphID) { in glyphIDToChar()
292 virtual uint16_t generateCharToGlyph(SkUnichar unichar) = 0;
298 virtual SkUnichar generateGlyphToChar(uint16_t glyphId);
324 SkScalerContext* getContextFromChar(SkUnichar uni, uint16_t* glyphID);
DSkGlyphCache.cpp88 uint16_t SkGlyphCache::unicharToGlyph(SkUnichar charCode) { in unicharToGlyph()
100 SkUnichar SkGlyphCache::glyphToUnichar(uint16_t glyphID) { in glyphToUnichar()
114 const SkGlyph& SkGlyphCache::getUnicharAdvance(SkUnichar charCode) { in getUnicharAdvance()
127 const SkGlyph& SkGlyphCache::getUnicharMetrics(SkUnichar charCode) { in getUnicharMetrics()
132 const SkGlyph& SkGlyphCache::getUnicharMetrics(SkUnichar charCode, SkFixed x, SkFixed y) { in getUnicharMetrics()
149 SkGlyph* SkGlyphCache::lookupByChar(SkUnichar charCode, MetricsType type, SkFixed x, SkFixed y) { in lookupByChar()
/external/skia/include/views/
DSkOSMenu.h65 void setKeyEquivalent(SkUnichar key) { fKey = key; } in setKeyEquivalent()
66 SkUnichar getKeyEquivalent() const { return fKey; } in getKeyEquivalent()
89 SkUnichar fKey;
103 void assignKeyEquivalentToItem(int itemID, SkUnichar key);
112 bool handleKeyEquivalent(SkUnichar key);
DSkWindow.h60 bool handleChar(SkUnichar);
82 virtual bool onHandleChar(SkUnichar);
/external/skia/src/ports/
DSkTypeface_win_dw.cpp51 static SkUnichar next_utf8(const void** chars) { in next_utf8()
55 static SkUnichar next_utf16(const void** chars) { in next_utf16()
59 static SkUnichar next_utf32(const void** chars) { in next_utf32()
60 const SkUnichar** uniChars = (const SkUnichar**)chars; in next_utf32()
61 SkUnichar uni = **uniChars; in next_utf32()
66 typedef SkUnichar (*EncodingProc)(const void**);
82 const SkUnichar c = next_ucs4_proc(&chars); in onCharsToGlyphs()
295 SkTDArray<SkUnichar>* glyphToUnicode) { in populate_glyph_to_unicode()
297 SkAutoTMalloc<SkUnichar> glyphToUni(glyphCount); in populate_glyph_to_unicode()
313 SkTDArray<SkUnichar>(glyphToUni, maxGlyph + 1).swap(*glyphToUnicode); in populate_glyph_to_unicode()
DSkFontHost_FreeType.cpp193 uint16_t generateCharToGlyph(SkUnichar uni) override;
199 SkUnichar generateGlyphToChar(uint16_t glyph) override;
446 static void populate_glyph_to_unicode(FT_Face& face, SkTDArray<SkUnichar>* glyphToUnicode) { in populate_glyph_to_unicode()
451 SkUnichar charCode = FT_Get_First_Char(face, &glyphIndex); in populate_glyph_to_unicode()
987 uint16_t SkScalerContext_FreeType::generateCharToGlyph(SkUnichar uni) { in generateCharToGlyph()
992 SkUnichar SkScalerContext_FreeType::generateGlyphToChar(uint16_t glyph) { in generateGlyphToChar()
996 SkUnichar charCode = FT_Get_First_Char( fFace, &glyphIndex ); in generateGlyphToChar()
1456 static SkUnichar next_utf8(const void** chars) { in next_utf8()
1460 static SkUnichar next_utf16(const void** chars) { in next_utf16()
1464 static SkUnichar next_utf32(const void** chars) { in next_utf32()
[all …]
/external/skia/tests/
DPaintTest.cpp21 static size_t uni_to_utf8(const SkUnichar src[], void* dst, int count) { in uni_to_utf8()
30 static size_t uni_to_utf16(const SkUnichar src[], void* dst, int count) { in uni_to_utf16()
39 static size_t uni_to_utf32(const SkUnichar src[], void* dst, int count) { in uni_to_utf32()
40 SkUnichar* u32 = (SkUnichar*)dst; in uni_to_utf32()
42 memcpy(u32, src, count * sizeof(SkUnichar)); in uni_to_utf32()
44 return count * sizeof(SkUnichar); in uni_to_utf32()
69 SkUnichar src[NGLYPHS]; in DEF_TEST()
70 SkUnichar dst[NGLYPHS]; // used for utf8, utf16, utf32 storage in DEF_TEST()
73 size_t (*fSeedTextProc)(const SkUnichar[], void* dst, int count); in DEF_TEST()
DUtilsTest.cpp168 static const SkUnichar gUni[] = { in test_utf16()
180 SkUnichar c = SkUTF16_NextUnichar(&ptr); in test_utf16()
189 SkUnichar fUni; in DEF_TEST()
207 SkUnichar u0 = SkUTF8_ToUnichar(gTest[i].fUtf8); in DEF_TEST()
208 SkUnichar u1 = SkUTF8_NextUnichar(&p); in DEF_TEST()
DUnicodeTest.cpp20 static bool isUVS(SkUnichar uni) { in isUVS()
28 static const SkUnichar gRanges[] = { in test_uvs()
33 for (SkUnichar uni = gRanges[i] - 8; uni <= gRanges[i+1] + 8; ++uni) { in test_uvs()
DPDFGlyphsToUnicodeTest.cpp26 void append_cmap_sections(const SkTDArray<SkUnichar>& glyphToUnicode,
34 SkTDArray<SkUnichar> glyphToUnicode; in DEF_TEST()
152 for (SkUnichar i = 0; i < 100; ++i) { in DEF_TEST()
/external/skia/tools/debugger/
DSkObjectParser.cpp382 const SkUnichar* begin = (const SkUnichar*)text; in TextToString()
383 const SkUnichar* end = (const SkUnichar*)((const char*)text + byteLength); in TextToString()
384 for (const SkUnichar* unichar = begin; unichar < end; ++unichar) { in TextToString()
/external/skia/src/fonts/
DSkGScalerContext.cpp20 uint16_t generateCharToGlyph(SkUnichar) override;
72 uint16_t SkGScalerContext::generateCharToGlyph(SkUnichar uni) { in generateCharToGlyph()
233 int unicharToGlyph(SkUnichar) const;
249 SkUnichar fUni;
DSkTestScalerContext.cpp50 int SkTestFont::codeToIndex(SkUnichar charCode) const { in codeToIndex()
164 SkUnichar ch = ((SkUnichar*) chars)[index]; in onCharsToGlyphs()
200 uint16_t generateCharToGlyph(SkUnichar uni) override { in generateCharToGlyph()
DSkTestScalerContext.h37 int codeToIndex(SkUnichar charCode) const;
41 mutable SkUnichar fDebugOverage[8];
/external/skia/include/ports/
DSkFontMgr.h87 SkUnichar character) const;
188 SkUnichar character) const = 0;
/external/skia/include/core/
DSkString.h194 void insertUnichar(size_t offset, SkUnichar);
205 void appendUnichar(SkUnichar uni) { this->insertUnichar((size_t)-1, uni); } in appendUnichar()
216 void prependUnichar(SkUnichar uni) { this->insertUnichar(0, uni); } in prependUnichar()
/external/skia/tools/VisualBench/
DVisualModule.h28 virtual bool onHandleChar(SkUnichar unichar) = 0;
DVisualInteractiveModule.h23 bool onHandleChar(SkUnichar c) override;
DVisualDebugModule.h21 bool onHandleChar(SkUnichar unichar) override;
DVisualLightweightBenchModule.h27 bool onHandleChar(SkUnichar c) override;
DVisualBench.h50 bool onHandleChar(SkUnichar unichar) override;
/external/skia/src/sfnt/
DSkOTTable_name.cpp16 static SkUnichar SkUTF16BE_NextUnichar(const uint16_t** srcPtr) { in SkUTF16BE_NextUnichar()
20 SkUnichar c = SkEndian_SwapBE16(*src++); in SkUTF16BE_NextUnichar()

1234