Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/base/
Dutf_helper.cpp60 inline size_t UTF8Length(uint32_t codepoint) in UTF8Length() argument
62 if (codepoint <= UTF8_1B_MAX) { in UTF8Length()
65 if (codepoint <= UTF8_2B_MAX) { in UTF8Length()
68 if (codepoint <= UTF8_3B_MAX) { in UTF8Length()
75 size_t EncodeUTF8(uint32_t codepoint, uint8_t* utf8, size_t len, size_t index) in EncodeUTF8() argument
77 size_t size = UTF8Length(codepoint); in EncodeUTF8()
82 uint8_t cont = ((codepoint | byteMark) & byteMask); in EncodeUTF8()
84 codepoint >>= UTF8_OFFSET; in EncodeUTF8()
86 utf8[index] = codepoint | firstByteMark[size]; in EncodeUTF8()
225 uint32_t codepoint = DecodeUTF16(utf16In, end, &i); in ConvertRegionUtf16ToUtf8() local
[all …]
Dutf_helper.h73 size_t EncodeUTF8(uint32_t codepoint, uint8_t* utf8, size_t len, size_t index);