Searched refs:utf8Length (Results 1 - 3 of 3) sorted by relevance
/arkcompiler/runtime_core/static_core/runtime/coretypes/ |
H A D | string.cpp | 131 String *String::CreateFromUtf8(const uint8_t *utf8Data, uint32_t utf8Length, const LanguageContext &ctx, PandaVM *vm, in CreateFromUtf8() argument 135 auto utf16Length = utf::Utf8ToUtf16Size(utf8Data, utf8Length); in CreateFromUtf8() 136 if (CanBeCompressedMUtf8(utf8Data, utf8Length)) { in CreateFromUtf8() 138 s = coretypes::String::CreateFromMUtf8(utf8Data, utf8Length, utf16Length, true, ctx, vm, movable, pinned); in CreateFromUtf8() 142 utf::ConvertRegionUtf8ToUtf16(utf8Data, tmpBuffer.data(), utf8Length, utf16Length, 0); in CreateFromUtf8()
|
/arkcompiler/ets_frontend/es2panda/util/ |
H A D | helpers.cpp | 902 const int utf8Length = static_cast<int>(utf8.length()); in Utf8ToUtf16() local 904 const int utf16Length = MultiByteToWideChar(CP_UTF8, kFlags, utf8.data(), utf8Length, nullptr, 0); in Utf8ToUtf16() 911 MultiByteToWideChar(CP_UTF8, kFlags, utf8.data(), utf8Length, &utf16[0], utf16Length); in Utf8ToUtf16()
|
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/ |
H A D | string.h | 57 PANDA_PUBLIC_API static String *CreateFromUtf8(const uint8_t *utf8Data, uint32_t utf8Length,
|
Completed in 5 milliseconds