Home
last modified time | relevance | path

Searched refs:utf16Len (Results 1 - 3 of 3) sorted by relevance

/commonlibrary/c_utils/base/src/
H A Dunicode_ex.cpp332 int utf16Len = Utf8ToUtf16Length(str8, str8Len); in Char8ToChar16() local
333 if (utf16Len < 0) { in Char8ToChar16()
334 UTILS_LOGE("Get str16 length failed,length is: %{public}d", utf16Len); in Char8ToChar16()
339 utf16Len = utf16Len + 1; in Char8ToChar16()
340 str16 = reinterpret_cast<char16_t*>(calloc(utf16Len, sizeof(char16_t))); in Char8ToChar16()
346 StrncpyStr8ToStr16(str8, str8Len, str16, utf16Len); in Char8ToChar16()
/commonlibrary/ets_utils/js_util_module/util/
H A Djs_textdecoder.cpp58 bool TextDecoder::CanBeCompressed(const uint16_t *utf16Data, uint32_t utf16Len) in CanBeCompressed() argument
61 for (; index + 4 <= utf16Len; index += 4) { // 4: process the data in chunks of 4 elements to improve speed in CanBeCompressed()
71 for (; index < utf16Len; ++index) { in CanBeCompressed()
H A Djs_textdecoder.h134 static bool CanBeCompressed(const uint16_t *utf16Data, uint32_t utf16Len);

Completed in 2 milliseconds