Home
last modified time | relevance | path

Searched refs:codepoint (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/texgine/src/opentype_parser/
H A Dranges.cpp33 int32_t Ranges::GetGlyphId(uint32_t codepoint) const in GetGlyphId()
35 if (const auto &it = singles_.find(codepoint); it != singles_.end()) { in GetGlyphId()
40 if (codepoint >= start && codepoint < end) { in GetGlyphId()
41 return codepoint + gid; in GetGlyphId()
58 for (const auto &[codepoint, gid] : singles_) { in Dump()
60 << std::setw(4) << std::setfill('0') << codepoint // 4 means output width in Dump()
62 << (codepoint + gid) % (1 << 16); // 16 means offset; 1 << 16 means residual multiple in Dump()
H A Dcmap_parser.cpp138 int32_t CmapParser::GetGlyphId(int32_t codepoint) const in GetGlyphId()
140 return ranges_.GetGlyphId(codepoint); in GetGlyphId()
H A Dranges.h44 int32_t GetGlyphId(uint32_t codepoint) const;
H A Dcmap_parser.h42 int32_t GetGlyphId(int32_t codepoint) const;
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/util/
H A Dutf8_decode.h66 uint32_t codepoint = 0U; in GetCharUtf8() local
69 decode(&state, &codepoint, static_cast<unsigned char>(**buf)); in GetCharUtf8()
73 return codepoint; in GetCharUtf8()
89 uint32_t codepoint = 0U; in CountGlyphsUtf8() local
95 if (!decode(&state, &codepoint, static_cast<unsigned char>(*s))) { in CountGlyphsUtf8()
/ohos5.0/commonlibrary/c_utils/base/src/
H A Dunicode_ex.cpp275 uint32_t codepoint = Utf8ToUtf32CodePoint(str8, u8charlen); in Utf8ToUtf16Length() local
276 if (codepoint > 0xFFFF) { in Utf8ToUtf16Length()
300 uint32_t codepoint = Utf8ToUtf32CodePoint(u8cur, len); in Utf8ToUtf16() local
302 if (codepoint <= 0xFFFF) { in Utf8ToUtf16()
304 *u16cur++ = static_cast<char16_t>(codepoint); in Utf8ToUtf16()
307 codepoint = codepoint - 0x10000; in Utf8ToUtf16()
308 *u16cur++ = static_cast<char16_t>((codepoint >> UTF16_SHIFT_WIDTH) + 0xD800); in Utf8ToUtf16()
313 *u16cur++ = static_cast<char16_t>((codepoint & 0x3FF) + 0xDC00); in Utf8ToUtf16()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/glfw_render_context/export/
H A Dglfw_render_context.h30 using OnCharFunc = std::function<void(unsigned int codepoint)>;
70 static void OnChar(GLFWwindow *window, unsigned int codepoint);
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/json/
H A Djson.h1032 int codepoint(BASE_NS::string_view str) in CORE_BEGIN_NAMESPACE()
1071 int code = codepoint(str.substr(i + 1, 4U)); in CORE_BEGIN_NAMESPACE()
1081 int low = codepoint(next); in CORE_BEGIN_NAMESPACE()
1192 const auto codepoint = BASE_NS::to_hex(code); in CORE_BEGIN_NAMESPACE() local
1193 if (codepoint.size() < 4U) { in CORE_BEGIN_NAMESPACE()
1194 escaped.append(4U - codepoint.size(), '0'); in CORE_BEGIN_NAMESPACE()
1196 escaped += codepoint; in CORE_BEGIN_NAMESPACE()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/glfw_render_context/src/
H A Dglfw_render_context.cpp236 void GlfwRenderContext::OnChar(GLFWwindow *window, unsigned int codepoint) in OnChar() argument
240 that->onChar_(codepoint); in OnChar()