/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | typed_text.cpp | 62 uint32_t unicode = 0; in GetUTF8Next() local 71 unicode = text[j]; in GetUTF8Next() 74 unicode = static_cast<uint32_t>(text[j] & 0x1F) << UTF8_TO_UNICODE_SHIFT1; in GetUTF8Next() 79 unicode += (text[j] & 0x3F); in GetUTF8Next() 82 unicode = static_cast<uint32_t>(text[j] & 0x0F) << UTF8_TO_UNICODE_SHIFT2; in GetUTF8Next() 83 unicode += static_cast<uint32_t>(text[++j] & 0x3F) << UTF8_TO_UNICODE_SHIFT1; in GetUTF8Next() 84 unicode += (text[++j] & 0x3F); in GetUTF8Next() 87 unicode = static_cast<uint32_t>(text[j] & 0x07) << UTF8_TO_UNICODE_SHIFT3; in GetUTF8Next() 88 unicode += static_cast<uint32_t>(text[++j] & 0x3F) << UTF8_TO_UNICODE_SHIFT2; in GetUTF8Next() 90 unicode += text[++j] & 0x3F; in GetUTF8Next() [all …]
|
H A D | symbol_span_model_ng.cpp | 43 void SymbolSpanModelNG::Create(const uint32_t& unicode) in Create() argument 51 ACE_UPDATE_SYMBOL_SPAN_PROPERTY(Content, unicode, PropertyInfo::NONE); in Create() 121 void SymbolSpanModelNG::InitialSymbol(FrameNode* frameNode, const std::uint32_t& unicode) in InitialSymbol() argument 124 ACE_UPDATE_NODE_SYMBOL_SPAN_PROPERTY(Content, unicode, PropertyInfo::NONE, frameNode); in InitialSymbol()
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/font/ |
H A D | ui_font_bitmap.cpp | 133 return GetWidthInFontId(unicode, fontId); in GetWidth() 138 return SearchInFont(unicode, glyphNode, fontId); in GetBitmap() 159 int8_t ret = GetGlyphNode(unicode, glyphNode, fontId); in GetMultiGlyphNode() 232 return dynamicFont_.GetBitmap(unicode, bufInfo, fontId); in GetDynamicFontBitmap() 248 return dynamicFont_.GetFontWidth(unicode, fontId); in GetDynamicFontWidth() 258 if (!UIFontAdaptor::IsSameTTFId(fontId, unicode)) { in SearchInFont() 262 int8_t ret = GetGlyphNode(unicode, glyphNode, fontId); in SearchInFont() 280 ret = dynamicFont_.GetBitmap(unicode, bufInfo, fontId); in SearchInFont() 290 if (!UIFontAdaptor::IsSameTTFId(fontId, unicode)) { in GetWidthInFontId() 294 return GetDynamicFontWidth(unicode, fontId); in GetWidthInFontId() [all …]
|
H A D | ui_line_break.cpp | 151 uint32_t unicode = TypedText::GetUTF8Next(text, preIndex, byteIdx); in GetNextLineAndWidth() local 152 if (unicode == 0) { in GetNextLineAndWidth() 156 isEliminateSpace = eliminateTrailingSpaces && unicode == ' '; in GetNextLineAndWidth() 161 IsBreakPos(unicode, fontId, fontSize, state); in GetNextLineAndWidth() 188 if (unicode != ' ' && eliminateTrailingSpaces) { in GetNextLineAndWidth() 202 int16_t UILineBreakEngine::GetLetterWidth(uint32_t unicode, in GetLetterWidth() argument 218 return fontEngine->GetWidth(unicode, fontId, fontSize, 0); in GetLetterWidth() 224 if (TypedText::IsEmoji(unicode)) { in IsBreakPos() 234 if (unicode <= TypedText::MAX_UINT16_LOW_SCOPE) { in IsBreakPos() 235 utf16 = (unicode & TypedText::MAX_UINT16_LOW_SCOPE); in IsBreakPos() [all …]
|
H A D | ui_font_vector.cpp | 633 node->node.unicode = unicode; in SaveGlyphNode() 662 SaveGlyphNode(unicode, fontKey, f); in GetGlyphNode() 700 SaveGlyphNode(unicode, fontKey, f); in GetBitmap() 785 if (IsGlyphFont(unicode) != 0) { in LoadGlyphIntoFace() 815 SetFace(faceInfo, unicode); in LoadGlyphIntoFace() 824 if (IsGlyphFont(unicode) != 0) { in LoadGlyphIntoFace() 825 if (fontId != GetFontId(unicode)) { in LoadGlyphIntoFace() 828 unicode = unicode & (0xFFFFFF); // Whether 0 ~24 bit storage is unicode in LoadGlyphIntoFace() 860 uint16_t unicodeFontId = GetFontId(unicode); in IsGlyphFont() 886 SaveGlyphNode(unicode, faceInfo.key, f); in SetFace() [all …]
|
H A D | ui_multi_font_manager.cpp | 170 uint32_t unicode = TypedText::GetUTF8Next(text, i, i); in IsNeedShaping() local 171 if (IsShapingLetter(unicode, ttfId)) { in IsNeedShaping() 214 int8_t UIMultiFontManager::IsShapingLetter(uint32_t unicode, uint8_t &ttfId) in IsShapingLetter() argument 217 if ((unicode <= 0x06FF) && (unicode >= 0x0600)) { in IsShapingLetter() 222 if ((unicode <= 0x0E7F) && (unicode >= 0x0E00)) { in IsShapingLetter() 227 if ((unicode <= 0x097F) && (unicode >= 0x0900)) { in IsShapingLetter() 232 if ((unicode <= 0x05FF) && (unicode >= 0x0590)) { in IsShapingLetter() 237 if ((unicode <= 0x109F) && (unicode >= 0x1000)) { in IsShapingLetter() 242 if ((unicode <= 0x9FF) && (unicode >= 0x980)) { in IsShapingLetter()
|
H A D | glyphs_manager.cpp | 83 const GlyphNode* GlyphsManager::GetGlyphNodeFromFiles(uint32_t unicode, uint16_t fontId) in GetGlyphNodeFromFiles() argument 88 ret = glyphsFiles_[i]->GetNodeFromFile(unicode, fontId, nodeInfo); in GetGlyphNodeFromFiles() 99 … GlyphCacheNode* cacheNode = UIFontCacheManager::GetInstance()->GetNodeCacheSpace(unicode, fontId); in GetGlyphNodeFromFiles() 109 const GlyphNode* GlyphsManager::GetGlyphNode(uint32_t unicode, uint16_t fontId) in GetGlyphNode() argument 112 …UIFontCacheManager::GetInstance()->GetNodeFromCache(unicode, fontId, GlyphCacheType::CACHE_TYPE_NO… in GetGlyphNode() 117 const GlyphNode* node = const_cast<GlyphNode*>(GetGlyphNodeFromFiles(unicode, fontId)); in GetGlyphNode() 136 int16_t GlyphsManager::GetFontWidth(uint32_t unicode, uint16_t fontId) in GetFontWidth() argument 138 const GlyphNode* node = GetGlyphNode(unicode, fontId); in GetFontWidth() 145 int8_t GlyphsManager::GetBitmap(uint32_t unicode, BufferInfo& bufInfo, uint16_t fontId) in GetBitmap() argument 147 …GlyphCacheNode* cacheNode = UIFontCacheManager::GetInstance()->GetNodeFromCache(unicode, fontId, f… in GetBitmap() [all …]
|
H A D | glyphs_cache.cpp | 68 GlyphCacheNode* GlyphsCache::GetNodeFromCache(uint32_t unicode, uint16_t fontKey, uint16_t cacheTyp… in GetNodeFromCache() argument 76 uint8_t font = (fontKey ^ unicode) & FONT_HASH_MASK; in GetNodeFromCache() 77 uint8_t uc = unicode & UNICODE_HASH_MASK; in GetNodeFromCache() 80 if ((p->node.unicode == unicode) && (p->node.fontId == fontKey)) { in GetNodeFromCache() 90 GlyphCacheNode* GlyphsCache::GetNodeCacheSpace(uint32_t unicode, uint16_t fontKey) in GetNodeCacheSpace() argument 96 uint8_t font = (fontKey ^ unicode) & FONT_HASH_MASK; in GetNodeCacheSpace() 97 uint8_t uc = unicode & UNICODE_HASH_MASK; in GetNodeCacheSpace()
|
H A D | ui_font_cache_manager.cpp | 48 GlyphCacheNode* UIFontCacheManager::GetNodeFromCache(uint32_t unicode, uint16_t fontKey, uint16_t c… in GetNodeFromCache() argument 50 return glyphsCache_.GetNodeFromCache(unicode, fontKey, cacheType); in GetNodeFromCache() 53 GlyphCacheNode* UIFontCacheManager::GetNodeCacheSpace(uint32_t unicode, uint16_t fontKey) in GetNodeCacheSpace() argument 55 return glyphsCache_.GetNodeCacheSpace(unicode, fontKey); in GetNodeCacheSpace() 89 uint8_t* UIFontCacheManager::GetSpace(uint16_t fontKey, uint32_t unicode, uint32_t size, TextStyle … in GetSpace() argument 92 return bitmapCache_->GetSpace(fontKey, unicode, size, textStyle); in GetSpace() 106 uint8_t* UIFontCacheManager::GetBitmap(uint16_t fontKey, uint32_t unicode, TextStyle textStyle) in GetBitmap() argument 109 return bitmapCache_->GetBitmap(fontKey, unicode, textStyle); in GetBitmap()
|
H A D | ui_font_cache.cpp | 49 uint8_t* UIFontCache::GetSpace(uint16_t fontId, uint32_t unicode, uint32_t size, TextStyle textStyl… in GetSpace() argument 71 ListAdd(&bitmap->hashHead, hashTable_ + unicode % FONT_CACHE_HASH_NR); in GetSpace() 75 bitmap->unicode = unicode; in GetSpace() 96 uint8_t* UIFontCache::GetBitmap(uint16_t fontKey, uint32_t unicode, TextStyle textStyle) in GetBitmap() argument 99 ListHead* head = hashTable_ + unicode % FONT_CACHE_HASH_NR; in GetBitmap() 106 (bitmap->unicode == unicode)) { in GetBitmap()
|
H A D | ui_font.cpp | 174 uint8_t* UIFont::GetBitmap(uint32_t unicode, GlyphNode& glyphNode, uint16_t fontId, uint8_t fontSiz… in GetBitmap() argument 181 bitmap = instance_->GetBitmap(unicode, glyphNode, shapingFont, fontSize); in GetBitmap() 187 bitmap = instance_->GetBitmap(unicode, glyphNode, fontId, fontSize); in GetBitmap() 199 bitmap = instance_->GetBitmap(unicode, glyphNode, searchLists[currentIndex], fontSize); in GetBitmap() 210 int8_t UIFont::GetGlyphNode(uint32_t unicode, GlyphNode& glyphNode, uint16_t fontId, uint8_t fontSi… in GetGlyphNode() argument 212 int8_t result = instance_->GetGlyphNode(unicode, glyphNode, fontId, fontSize); in GetGlyphNode() 225 result = instance_->GetGlyphNode(unicode, glyphNode, searchLists[currentIndex], fontSize); in GetGlyphNode() 235 uint16_t UIFont::GetWidth(uint32_t unicode, uint16_t fontId, uint8_t fontSize, uint8_t shapingId) in GetWidth() argument 240 result = instance_->GetWidth(unicode, shapingId, fontSize); in GetWidth() 246 result = instance_->GetWidth(unicode, fontId, fontSize); in GetWidth() [all …]
|
H A D | glyphs_manager.h | 39 int16_t GetFontWidth(uint32_t unicode, uint16_t fontId); 43 const GlyphNode* GetGlyphNode(uint32_t unicode, uint16_t fontId); 45 const GlyphNode* GetGlyphNodeFromFiles(uint32_t unicode, uint16_t fontId); 47 int8_t GetBitmap(uint32_t unicode, BufferInfo& bufInfo, uint16_t fontId);
|
H A D | ui_font_cache_manager.h | 30 GlyphCacheNode* GetNodeFromCache(uint32_t unicode, uint16_t fontKey, uint16_t cacheType); 31 GlyphCacheNode* GetNodeCacheSpace(uint32_t unicode, uint16_t fontKey); 36 uint8_t* GetSpace(uint16_t fontKey, uint32_t unicode, uint32_t size, TextStyle textStyle); 38 uint8_t* GetBitmap(uint16_t fontKey, uint32_t unicode, TextStyle textStyle);
|
H A D | ui_font_cache.h | 56 uint32_t unicode; member 70 uint8_t* GetSpace(uint16_t fontKey, uint32_t unicode, uint32_t size, TextStyle textStyle); 72 uint8_t* GetBitmap(uint16_t fontKey, uint32_t unicode, TextStyle textStyle);
|
H A D | ui_text_shaping.cpp | 26 bool UITextShaping::IsSameTTFId(uint16_t fontId, uint32_t unicode) in IsSameTTFId() argument 32 void UITextShaping::ClearTtfHeader(uint16_t fontId, uint32_t unicode) in ClearTtfHeader() argument
|
/ohos5.0/foundation/arkui/ui_lite/interfaces/innerkits/font/ |
H A D | ui_font_bitmap.h | 37 int16_t GetWidth(uint32_t unicode, uint16_t fontId, uint8_t fontSize = 0) override; 38 …uint8_t* GetBitmap(uint32_t unicode, GlyphNode& glyphNode, uint16_t fontId, uint8_t fontSize = 0) … 40 …int8_t GetGlyphNode(uint32_t unicode, GlyphNode& glyphNode, uint16_t fontId, uint8_t fontSize = 0)… 41 int8_t GetGlyphNodeFromFile(uint32_t unicode, GlyphNode& glyphNode, uint16_t fontId); 54 int8_t GetDynamicFontBitmap(uint32_t unicode, BufferInfo& bufInfo, uint16_t fontId); 55 uint8_t* GetCacheBitmap(uint16_t fontId, uint32_t unicode); 57 int16_t GetDynamicFontWidth(uint32_t unicode, uint16_t fontId); 62 uint8_t* SearchInFont(uint32_t unicode, GlyphNode& glyphNode, uint16_t fontId); 63 int16_t GetWidthInFontId(uint32_t unicode, uint16_t fontId); 65 int8_t GetMultiGlyphNode(uint32_t unicode, GlyphNode& glyphNode, uint16_t fontId);
|
H A D | ui_font_vector.h | 38 int16_t GetWidth(uint32_t unicode, uint16_t fontId, uint8_t fontSize) override; 39 …uint8_t* GetBitmap(uint32_t unicode, GlyphNode& glyphNode, uint16_t fontId, uint8_t fontSize) over… 41 …int8_t GetGlyphNode(uint32_t unicode, GlyphNode& glyphNode, uint16_t fontId, uint8_t fontSize) ove… 84 void SetFace(FaceInfo& faceInfo, uint32_t unicode); 85 void SetFace(FaceInfo& faceInfo, uint32_t unicode, TextStyle textStyle); 86 uint16_t GetFontId(uint32_t unicode) const; 88 …int8_t LoadGlyphIntoFace(uint16_t& fontId, uint8_t fontSize, uint32_t unicode, GlyphNode& glyphNod… 90 int8_t LoadGlyphIntoFace(uint16_t& fontId, uint32_t unicode, FT_Face face, TextStyle textStyle); 92 void SaveGlyphNode(uint32_t unicode, uint16_t fontKey, Metric* metric); 93 uint8_t IsGlyphFont(uint32_t unicode);
|
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | unicode_ex.cpp | 239 uint32_t unicode = 0; in Utf8ToUtf32CodePoint() local 245 unicode = src[UTF8_FIRST_BYTE_INDEX] & 0x1f; in Utf8ToUtf32CodePoint() 246 Utf8ShiftAndMask(&unicode, src[UTF8_SECOND_BYTE_INDEX]); in Utf8ToUtf32CodePoint() 247 return unicode; in Utf8ToUtf32CodePoint() 249 unicode = src[UTF8_FIRST_BYTE_INDEX] & 0x0f; in Utf8ToUtf32CodePoint() 251 Utf8ShiftAndMask(&unicode, src[UTF8_THIRD_BYTE_INDEX]); in Utf8ToUtf32CodePoint() 252 return unicode; in Utf8ToUtf32CodePoint() 254 unicode = src[UTF8_FIRST_BYTE_INDEX] & 0x07; in Utf8ToUtf32CodePoint() 256 Utf8ShiftAndMask(&unicode, src[UTF8_THIRD_BYTE_INDEX]); in Utf8ToUtf32CodePoint() 257 Utf8ShiftAndMask(&unicode, src[UTF8_FORTH_BYTE_INDEX]); in Utf8ToUtf32CodePoint() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/common/ |
H A D | typed_text.cpp | 309 uint32_t unicode = 0; in GetUTF8Next() local 318 unicode = text[j]; in GetUTF8Next() 326 unicode += (text[j] & 0x3F); in GetUTF8Next() 331 unicode += (text[++j] & 0x3F); in GetUTF8Next() 337 unicode += text[++j] & 0x3F; in GetUTF8Next() 343 return unicode; in GetUTF8Next() 387 uint32_t unicode = GetUTF8Next(utf8Str, i, i); in Utf8ToUtf16() local 389 if (unicode <= MAX_UINT16_LOW_SCOPE) { in Utf8ToUtf16() 471 uint32_t unicode = GetUTF8Next(utf8Str, i, i); in GetUtf16Cnt() local 472 if (unicode <= MAX_UINT16_LOW_SCOPE) { in GetUtf16Cnt() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/text/ |
H A D | font.cpp | 184 scalar Font::MeasureSingleCharacter(int32_t unicode) const in MeasureSingleCharacter() 187 uint16_t glyph = UnicharToGlyph(unicode); in MeasureSingleCharacter() 191 std::shared_ptr<Font> fallbackFont = GetFallbackFont(unicode); in MeasureSingleCharacter() 193 uint16_t fallbackGlyph = fallbackFont->UnicharToGlyph(unicode); in MeasureSingleCharacter() 200 std::shared_ptr<Font> Font::GetFallbackFont(int32_t unicode) const in GetFallbackFont() 211 currentTypeface->GetFontStyle(), nullptr, 0, unicode < 0 ? 0xFFFD : unicode)); in GetFallbackFont() 215 … ? defaultTypeface->GetFontStyle() : FontStyle(), nullptr, 0, unicode < 0 ? 0xFFFD : unicode)); in GetFallbackFont()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-universal-events-key.md | 74 …unicode<sup>14+</sup> | number | 按键… 120 该示例通过key事件获取到所按按键的unicode码值。 142 if (event.unicode == 97) { 144 } else if (event.unicode == 65) { 149 …this.text = 'KeyType:' + this.eventType + '\nUnicode:' + event.unicode + '\nkeyCode:' + event.keyC…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/symbol/ |
H A D | symbol_source_info.h | 32 explicit SymbolSourceInfo(std::uint32_t unicode); 39 return unicode; in GetUnicode() 46 std::uint32_t unicode;
|
H A D | symbol_model_ng.cpp | 24 void SymbolModelNG::Create(const std::uint32_t& unicode) in Create() argument 33 ACE_UPDATE_LAYOUT_PROPERTY(TextLayoutProperty, SymbolSourceInfo, SymbolSourceInfo{unicode}); in Create() 114 void SymbolModelNG::InitialSymbol(FrameNode* frameNode, const std::uint32_t& unicode) in InitialSymbol() argument 116 …ACE_UPDATE_NODE_LAYOUT_PROPERTY(TextLayoutProperty, SymbolSourceInfo, SymbolSourceInfo{unicode}, f… in InitialSymbol()
|
H A D | symbol_source_info.cpp | 22 unicode = codeId; in SymbolSourceInfo() 27 return unicode == info.GetUnicode(); in operator ==()
|
/ohos5.0/docs/zh-cn/application-dev/reference/native-lib/ |
H A D | icu4c.md | 6 [ICU4C](https://unicode-org.github.io/icu/userguide/icu4c/)是ICU 库的C语言版本,部分接口已开放,支持如下能力: 23 如果开发者需要使用ICU4C相关功能,请按需要添加对应的头文件。本模块头文件需要添加unicode目录前缀,例如: 25 #include <unicode/uloc.h>
|