/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | utf_helper.h | 111 Utf8Char ConvertUtf16ToUtf8(uint16_t d0, uint16_t d1, bool modify, bool isWriteBuffer = false); 113 size_t Utf16ToUtf8Size(const uint16_t *utf16, uint32_t length, bool modify = true, 117 size_t utf8Len, size_t start, bool modify = true, 121 size_t start, bool modify = true, bool isWriteBuffer = false);
|
H A D | utf_helper.cpp | 173 Utf8Char ConvertUtf16ToUtf8(uint16_t d0, uint16_t d1, bool modify, bool isWriteBuffer) in ConvertUtf16ToUtf8() argument 188 if (modify) { in ConvertUtf16ToUtf8() 224 size_t Utf16ToUtf8Size(const uint16_t *utf16, uint32_t length, bool modify, bool isGetBufferSize, bool cesu8) in Utf16ToUtf8Size() argument 239 } else if (modify) { in Utf16ToUtf8Size() 264 size_t start, bool modify, bool isWriteBuffer, bool cesu8) in ConvertRegionUtf16ToUtf8() 278 if (modify) { in ConvertRegionUtf16ToUtf8() 291 size_t start, bool modify, bool isWriteBuffer) in DebuggerConvertRegionUtf16ToUtf8() 305 if (modify) { in DebuggerConvertRegionUtf16ToUtf8() 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 290 DebuggerConvertRegionUtf16ToUtf8(const uint16_t *utf16In, uint8_t *utf8Out, size_t utf16Len, size_t utf8Len, size_t start, bool modify, bool isWriteBuffer) DebuggerConvertRegionUtf16ToUtf8() argument
|
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | utf.h | 132 PANDA_PUBLIC_API Utf8Char ConvertUtf16ToUtf8(uint16_t d0, uint16_t d1, bool modify); 134 PANDA_PUBLIC_API size_t Utf16ToUtf8Size(const uint16_t *utf16, uint32_t length, bool modify = true); 137 size_t utf8Len, size_t start, bool modify = true);
|
H A D | utf.cpp | 415 Utf8Char ConvertUtf16ToUtf8(uint16_t d0, uint16_t d1, bool modify) in ConvertUtf16ToUtf8() argument 427 if (modify) { in ConvertUtf16ToUtf8() 463 size_t Utf16ToUtf8Size(const uint16_t *utf16, uint32_t length, bool modify) in Utf16ToUtf8Size() argument 476 if (modify) { in Utf16ToUtf8Size() 506 size_t start, bool modify) in ConvertRegionUtf16ToUtf8() 520 Utf8Char ch = ConvertUtf16ToUtf8(utf16In[i], next16Code, modify); in ConvertRegionUtf16ToUtf8() 505 ConvertRegionUtf16ToUtf8(const uint16_t *utf16In, uint8_t *utf8Out, size_t utf16Len, size_t utf8Len, size_t start, bool modify) ConvertRegionUtf16ToUtf8() argument
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_string.h | 211 inline size_t GetUtf8Length(bool modify = true, bool isGetBufferSize = false) const; 390 inline size_t CopyDataUtf8(uint8_t *buf, size_t maxLength, bool modify = true) const 402 return CopyDataRegionUtf8(buf, 0, length, maxLength, modify) + 1; // add place for zero in the end 482 bool modify = true, bool isWriteBuffer = false) const 504 modify, isWriteBuffer); 507 modify, isWriteBuffer); 548 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, fals [all...] |
H A D | ecma_string.cpp | 1552 bool modify = (usage != StringConvertedUsage::PRINT); in ToStdString() local 1554 Span<const uint8_t> sp = string_->ToUtf8Span(buf, modify); in ToStdString() 1587 bool modify = (usage != StringConvertedUsage::PRINT); in DebuggerToStdString() local 1589 Span<const uint8_t> sp = string_->DebuggerToUtf8Span(buf, modify); in DebuggerToStdString() 1603 bool modify = (usage != StringConvertedUsage::PRINT); in ToCString() local 1605 Span<const uint8_t> sp = string_->ToUtf8Span(buf, modify, cesu8); in ToCString()
|
H A D | ecma_string-inl.h | 315 inline size_t EcmaString::GetUtf8Length(bool modify, bool isGetBufferSize) const in GetUtf8Length() argument 322 return base::utf_helper::Utf16ToUtf8Size(data, GetLength(), modify, isGetBufferSize); in GetUtf8Length()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
H A D | utf_helper_test.cpp | 153 * and returns the sequence and the byte length of the sequence. The parameter "modify" 287 * sequences. "length" indicates the length of the input UTF16 sequence, and "modify" indicates whether 504 bool modify = false; in ConvertRegionUtf16ToUtf8Test() local 516 utf8Pos = DebuggerConvertRegionUtf16ToUtf8(utf16ValuePtr, utf8Out, utf16Len, utf8Len, start, modify); in ConvertRegionUtf16ToUtf8Test() 518 utf8Pos = ConvertRegionUtf16ToUtf8(utf16ValuePtr, utf8Out, utf16Len, utf8Len, start, modify); in ConvertRegionUtf16ToUtf8Test() 523 modify = true; in ConvertRegionUtf16ToUtf8Test() 525 utf8Pos = DebuggerConvertRegionUtf16ToUtf8(utf16ValuePtr, utf8Out, utf16Len, utf8Len, start, modify); in ConvertRegionUtf16ToUtf8Test() 527 utf8Pos = ConvertRegionUtf16ToUtf8(utf16ValuePtr, utf8Out, utf16Len, utf8Len, start, modify); in ConvertRegionUtf16ToUtf8Test() 537 * start position of the conversion. Whether to perform special processing for O in the "modify" parameter.
|