| /arkcompiler/ets_runtime/ecmascript/tests/ |
| H A D | ecma_string_table_test.cpp | 54 uint8_t utf8Data[] = {0x68, 0x65, 0x6c, 0x6c, 0x6f}; // " hello " in HWTEST_F_L0() local
|
| H A D | ecma_string_equals_test.cpp | 25 static bool IsUtf8EqualsUtf16UT(const uint8_t *utf8Data, size_t utf8Len, in IsUtf8EqualsUtf16UT() argument
|
| /arkcompiler/runtime_core/static_core/runtime/ |
| H A D | string_table.cpp | 92 coretypes::String *StringTable::Table::GetString(const uint8_t *utf8Data, uint32_t utf16Length, bool canBeCompressed, in GetString() argument
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/ |
| H A D | ets_string_test.cpp | 134 auto *utf8Data = reinterpret_cast<const char *>(data.data()); in TEST_F() local
|
| /arkcompiler/ets_runtime/ecmascript/ |
| H A D | ecma_string-inl.h | 39 inline EcmaString *EcmaString::CreateFromUtf8(const EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, in CreateFromUtf8() argument 79 auto *utf8Data = string->GetDataUtf8() + offset; in CreateFromUtf8CompressedSubString() local 85 inline EcmaString *EcmaString::CreateUtf16StringFromUtf8(const EcmaVM *vm, const uint8_t *utf8Data, uint32_ argument 192 CreateConstantString(const EcmaVM *vm, const uint8_t *utf8Data, size_t length, bool compressed, MemSpaceType type, uint32_t idOffset) CreateConstantString() argument [all...] |
| H A D | ecma_string_table.cpp | 94 std::pair<EcmaString *, uint32_t> EcmaStringTable::GetStringThreadUnsafe(const uint8_t *utf8Data, uint32_t utf8Len, in GetStringThreadUnsafe() argument 217 EcmaString *EcmaStringTable::GetOrInternString(EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, in GetOrInternString() argument 229 EcmaString *EcmaStringTable::GetOrInternStringWithoutLock(EcmaVM *vm, const uint8_t *utf8Data, in GetOrInternStringWithoutLock() argument 252 auto *utf8Data in GetOrInternCompressedSubString() local 278 CreateAndInternStringNonMovable(EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len) CreateAndInternStringNonMovable() argument 301 CreateAndInternStringReadOnly(EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, bool canBeCompress) CreateAndInternStringReadOnly() argument 434 GetOrInternStringWithSpaceType(EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, bool canBeCompress, MemSpaceType type, bool isConstantString, uint32_t idOffset) GetOrInternStringWithSpaceType() argument 464 GetOrInternStringWithSpaceType(EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf16Len, MemSpaceType type) GetOrInternStringWithSpaceType() argument 488 GetOrInternStringWithSpaceTypeWithoutJSHandle(EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf16Len, MemSpaceType type) GetOrInternStringWithSpaceTypeWithoutJSHandle() argument [all...] |
| H A D | ecma_string.h | 1090 static EcmaString *CreateFromUtf8(const EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, bool canBeCompress, in CreateFromUtf8() argument 1104 static EcmaString *CreateConstantString(const EcmaVM *vm, const uint8_t *utf8Data, size_ argument 1110 CreateUtf16StringFromUtf8(const EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, MemSpaceType type = MemSpaceType::SHARED_OLD_SPACE) CreateUtf16StringFromUtf8() argument 1339 ComputeHashcodeUtf8(const uint8_t *utf8Data, size_t utf8Len, bool canBeCompress) ComputeHashcodeUtf8() argument 1420 CanBeCompressed(const uint8_t *utf8Data, uint32_t utf8Len) CanBeCompressed() argument [all...] |
| H A D | ecma_string.cpp | 638 bool EcmaString::CanBeCompressed(const uint8_t *utf8Data, uint32_t utf8Len) in CanBeCompressed() argument 945 uint32_t EcmaString::ComputeHashcodeUtf8(const uint8_t *utf8Data, size_t utf8Len, bool canBeCompress) in ComputeHashcodeUtf8() argument 1003 IsUtf8EqualsUtf16(const uint8_t *utf8Data, size_t utf8Len, const uint16_t *utf16Data, uint32_t utf16Len) IsUtf8EqualsUtf16() argument [all...] |
| H A D | object_factory.cpp | 3188 JSHandle<EcmaString> ObjectFactory::GetStringFromStringTable(const uint8_t *utf8Data, uint32_t utf8Len, in GetStringFromStringTable() argument 3210 JSHandle<EcmaString> ObjectFactory::GetStringFromStringTableNonMovable(const uint8_t *utf8Data, uint32_t utf8Len) const in GetStringFromStringTableNonMovable() argument 3220 JSHandle<EcmaString> ObjectFactory::GetStringFromStringTableReadOnly(const uint8_t *utf8Data, uint32_t utf8Len, in GetStringFromStringTableReadOnly() argument 4068 auto utf8Data = reinterpret_cast<const uint8_t *>(data.data()); in NewFromASCII() local 4076 auto utf8Data in NewFromASCIISkippingStringTable() local 4084 auto utf8Data = reinterpret_cast<const uint8_t *>(data.data()); NewFromASCIINonMovable() local 4091 auto utf8Data = reinterpret_cast<const uint8_t *>(data.data()); NewFromASCIIReadOnly() local 4098 auto utf8Data = reinterpret_cast<const uint8_t *>(data.data()); NewFromUtf8WithoutStringTable() local 4114 auto utf8Data = reinterpret_cast<const uint8_t *>(data.data()); NewFromUtf8() local 4121 auto utf8Data = reinterpret_cast<const uint8_t *>(data.data()); NewFromUtf8() local 4128 auto utf8Data = reinterpret_cast<const uint8_t *>(data.data()); NewFromUtf8ReadOnly() local 4159 auto utf8Data = reinterpret_cast<const uint8_t *>(data.c_str()); NewFromStdString() local 4164 NewFromUtf8WithoutStringTable(const uint8_t *utf8Data, uint32_t utf8Len) NewFromUtf8WithoutStringTable() argument 4178 NewFromUtf8(const uint8_t *utf8Data, uint32_t utf8Len) NewFromUtf8() argument 4216 NewFromUtf8Literal(const uint8_t *utf8Data, uint32_t utf8Len) NewFromUtf8Literal() argument 4223 NewFromUtf8LiteralCompress(const uint8_t *utf8Data, uint32_t utf8Len) NewFromUtf8LiteralCompress() argument 4239 NewCompressedUtf8(const uint8_t *utf8Data, uint32_t utf8Len) NewCompressedUtf8() argument [all...] |
| /arkcompiler/ets_runtime/ecmascript/base/ |
| H A D | string_helper.h | 88 static inline std::string Utf8ToString(const uint8_t *utf8Data, uint32_t dataLen) in Utf8ToString() argument 95 static inline std::u16string Utf8ToU16String(const uint8_t *utf8Data, uint32_t dataLen) in Utf8ToU16String() argument
|
| /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 714 bool String::IsMutf8EqualsUtf16(const uint8_t *utf8Data, uint32_t utf8DataLength, const uint16_t *utf16Data, in IsMutf8EqualsUtf16() argument 731 bool String::IsMutf8EqualsUtf16(const uint8_t *utf8Data, const uint16_t *utf16Data, uint32_t utf16DataLength) in IsMutf8EqualsUtf16() argument [all...] |