Home
last modified time | relevance | path

Searched refs:cesu8 (Results 1 - 7 of 7) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/mem/
H A Dc_string.cpp97 CString ConvertToString(const EcmaString *s, StringConvertedUsage usage, bool cesu8) in ConvertToString() argument
102 return EcmaStringAccessor(const_cast<EcmaString *>(s)).ToCString(usage, cesu8); in ConvertToString()
H A Dc_string.h59 // cesu8 means non-BMP1 codepoints should encode as 1 utf8 string
61 StringConvertedUsage usage = StringConvertedUsage::PRINT, bool cesu8 = false);
/arkcompiler/ets_runtime/ecmascript/base/
H A Dutf_helper.cpp47 uint32_t DecodeUTF16(uint16_t const *utf16, size_t len, size_t *index, bool cesu8) in DecodeUTF16() argument
54 if (!IsUTF16LowSurrogate(low) || cesu8) { in DecodeUTF16()
224 size_t Utf16ToUtf8Size(const uint16_t *utf16, uint32_t length, bool modify, bool isGetBufferSize, bool cesu8) in Utf16ToUtf8Size() argument
250 if (!cesu8 && i < length - 1 && in Utf16ToUtf8Size()
264 size_t start, bool modify, bool isWriteBuffer, bool cesu8) in ConvertRegionUtf16ToUtf8()
272 uint32_t codepoint = DecodeUTF16(utf16In, end, &i, cesu8); in ConvertRegionUtf16ToUtf8()
263 ConvertRegionUtf16ToUtf8(const uint16_t *utf16In, uint8_t *utf8Out, size_t utf16Len, size_t utf8Len, size_t start, bool modify, bool isWriteBuffer, bool cesu8) ConvertRegionUtf16ToUtf8() argument
H A Dutf_helper.h103 uint32_t DecodeUTF16(uint16_t const *utf16, size_t len, size_t *index, bool cesu8 = false);
114 bool isGetBufferSize = false, bool cesu8 = false);
/arkcompiler/ets_runtime/ecmascript/
H A Decma_string.h548 Span<const uint8_t> ToUtf8Span(CVector<uint8_t> &buf, bool modify = true, bool cesu8 = false)
555 ASSERT(base::utf_helper::Utf16ToUtf8Size(data, strLen, modify, false, cesu8) > 0);
556 size_t len = base::utf_helper::Utf16ToUtf8Size(data, strLen, modify, false, cesu8) - 1;
558 len = base::utf_helper::ConvertRegionUtf16ToUtf8(data, buf.data(), strLen, len, 0, modify, false, cesu8);
1253 CString ToCString(StringConvertedUsage usage = StringConvertedUsage::LOGICOPERATION, bool cesu8 = false);
H A Decma_string.cpp1598 CString EcmaStringAccessor::ToCString(StringConvertedUsage usage, bool cesu8) in ToCString() argument
1605 Span<const uint8_t> sp = string_->ToUtf8Span(buf, modify, cesu8); in ToCString()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_regexp.cpp2364 bool cesu8 = !(RegExpParser::FLAG_UTF16 & flagsBits); in RegExpInitialize() local
2365 CString patternStdStr = ConvertToString(*patternStrHandle, StringConvertedUsage::LOGICOPERATION, cesu8); in RegExpInitialize()

Completed in 14 milliseconds