/arkcompiler/ets_runtime/ecmascript/base/ |
D | utf_helper.cpp | 132 if (d1 == 0 && d0 >= utf::HI_SURROGATE_MIN && d0 <= utf::LO_SURROGATE_MAX) { in ConvertUtf16ToUtf8() 134 …atic_cast<uint8_t>(UTF8_3B_SECOND | (static_cast<uint8_t>(d0 >> UtfOffset::SIX) & utf::MASK_6BIT)); in ConvertUtf16ToUtf8() 135 auto ch2 = static_cast<uint8_t>(UTF8_3B_THIRD | (d0 & utf::MASK_6BIT)); in ConvertUtf16ToUtf8() 155 auto ch1 = static_cast<uint8_t>(UTF8_2B_SECOND | (d0 & utf::MASK_6BIT)); in ConvertUtf16ToUtf8() 158 if (d0 < utf::HI_SURROGATE_MIN || d0 > utf::HI_SURROGATE_MAX) { in ConvertUtf16ToUtf8() 160 …atic_cast<uint8_t>(UTF8_3B_SECOND | (static_cast<uint8_t>(d0 >> UtfOffset::SIX) & utf::MASK_6BIT)); in ConvertUtf16ToUtf8() 161 auto ch2 = static_cast<uint8_t>(UTF8_3B_THIRD | (d0 & utf::MASK_6BIT)); in ConvertUtf16ToUtf8() 164 if (d1 < utf::LO_SURROGATE_MIN || d1 > utf::LO_SURROGATE_MAX) { in ConvertUtf16ToUtf8() 173 … auto ch1 = static_cast<uint8_t>(((codePoint >> UtfOffset::TWELVE) & utf::MASK_6BIT) | utf::MASK1); in ConvertUtf16ToUtf8() 174 auto ch2 = static_cast<uint8_t>(((codePoint >> UtfOffset::SIX) & utf::MASK_6BIT) | utf::MASK1); in ConvertUtf16ToUtf8() [all …]
|
D | utf_helper.h | 97 uint32_t codePoint = d0 - utf::HI_SURROGATE_MIN; in CombineTwoU16() 99 codePoint |= d1 - utf::LO_SURROGATE_MIN; in CombineTwoU16() 100 codePoint += utf::LO_SUPPLEMENTS_MIN; in CombineTwoU16()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | utf_helper_test.cpp | 212 UTF8_3B_SECOND | (static_cast<uint8_t>(0xD800 >> 6) & utf::MASK_6BIT), in HWTEST_F_L0() 213 UTF8_3B_THIRD | (static_cast<uint8_t>(0xD800) & utf::MASK_6BIT)}}; in HWTEST_F_L0() 219 UTF8_3B_SECOND | (static_cast<uint8_t>(0xDFFF >> 6) & utf::MASK_6BIT), in HWTEST_F_L0() 220 UTF8_3B_THIRD | (static_cast<uint8_t>(0xDFFF) & utf::MASK_6BIT)}}; in HWTEST_F_L0() 233 … UTF8_3B_SECOND | (static_cast<uint8_t>(0x800 >> 6) & utf::MASK_6BIT), in HWTEST_F_L0() 234 UTF8_3B_THIRD | (static_cast<uint8_t>(0x800) & utf::MASK_6BIT)}}; in HWTEST_F_L0() 240 UTF8_3B_SECOND | (static_cast<uint8_t>(0xD7FF >> 6) & utf::MASK_6BIT), in HWTEST_F_L0() 241 UTF8_3B_THIRD | (static_cast<uint8_t>(0xD7FF) & utf::MASK_6BIT)}}; in HWTEST_F_L0() 247 UTF8_3B_SECOND | (static_cast<uint8_t>(0xE000 >> 6)& utf::MASK_6BIT), in HWTEST_F_L0() 248 UTF8_3B_THIRD | (static_cast<uint8_t>(0xE000) & utf::MASK_6BIT)}}; in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | js_pandafile.cpp | 56 const char *fieldName = utf::Mutf8AsCString(sd.data); in CheckIsBundlePack() 139 const char *desc = utf::Mutf8AsCString(cda.GetDescriptor()); in InitializeUnMergedPF() 144 CString fieldName = utf::Mutf8AsCString(sd.data); in InitializeUnMergedPF() 177 const char *fieldName = utf::Mutf8AsCString(sd.data); in InitializeMergedPF() 197 CString desc = utf::Mutf8AsCString(cda.GetDescriptor()); in InitializeMergedPF() 239 return utf::Mutf8AsCString(sd.data); in GetJsonStringId() 261 CString desc = utf::Mutf8AsCString(cda.GetDescriptor()); in GetNpmEntries() 266 CString fieldName = utf::Mutf8AsCString(sd.data); in GetNpmEntries()
|
D | method_literal.cpp | 108 return utf::Mutf8AsCString(sd.data); in GetMethodName() 120 CString desc = utf::Mutf8AsCString(cda.GetDescriptor()); in GetRecordName() 133 return utf::Mutf8AsCString(cda.GetDescriptor()); in GetRecordNameWithSymbol()
|
D | type_literal_extractor.cpp | 109 CString stringValue = utf::Mutf8AsCString(sd.data); in ProcessTypeLiteral() 210 CString stringValue = utf::Mutf8AsCString(sd.data); in ProcessTypeSummary() 356 exportVars_.emplace_back(utf::Mutf8AsCString(sd.data)); in ProcessExportTable()
|
D | debug_info_extractor.h | 111 … CString recordName = JSPandaFile::ParseEntryPoint(utf::Mutf8AsCString(cda.GetDescriptor())); in MatchWithLocation()
|
/arkcompiler/runtime_core/libpandafile/ |
D | debug_info_extractor.cpp | 27 return utf::Mutf8AsCString(pf.GetStringData(File::EntityId(offset)).data); in GetStringFromConstantPool() 212 const char *class_name = utf::Mutf8AsCString(pf->GetStringData(cda.GetClassId()).data); in Extract() 216 info.name = utf::Mutf8AsCString(pf->GetStringData(param_id).data); in Extract() 225 info.signature = utf::Mutf8AsCString(pf->GetStringData(ref_type).data); in Extract() 243 const char *source_file = utf::Mutf8AsCString(handler.GetFile()); in Extract() 244 const char *source_code = utf::Mutf8AsCString(handler.GetSourceCode()); in Extract()
|
D | file_reader.cpp | 144 std::string item_str(utf::Mutf8AsCString(data.data)); in CreateLiteralArrayItem() 155 std::string item_str(utf::Mutf8AsCString(data.data)); in CreateLiteralArrayItem() 253 std::string item_str(utf::Mutf8AsCString(data.data)); in CreateAnnotationItem() 421 std::string item_str(utf::Mutf8AsCString(data.data)); in CreateAnnotationItem() 506 std::string annot_name_str(utf::Mutf8AsCString(file_->GetStringData(name_id).data)); in CreateAnnotationItem() 593 std::string item_str(utf::Mutf8AsCString(data.data)); in CreateDebugInfoItem() 610 std::string method_name(utf::Mutf8AsCString(data.data)); in CreateMethodItem() 727 std::string string_name(utf::Mutf8AsCString(data.data)); in CreateFieldItem() 810 std::string method_name(utf::Mutf8AsCString(data.data)); in CreateForeignMethodItem() 855 std::string string_name(utf::Mutf8AsCString(data.data)); in CreateForeignFieldItem() [all …]
|
D | class_data_accessor.cpp | 31 size_t size = utf::Mutf8Size(name_.data) + 1; // + 1 for null byte in ClassDataAccessor()
|
D | file.cpp | 643 mutf8_name, utf::Mutf8Less()); in GetClassId() 648 if (utf::CompareMUtf8ToMUtf8(mutf8_name, *it) == 0) { in GetClassId() 681 if (entity_id.IsValid() && utf::CompareMUtf8ToMUtf8(descriptor, mutf8_name) == 0) { in GetClassIdFromClassHashTable()
|
D | file.h | 454 return utf::IsEqual(string_data1.data, string_data2.data); 465 return utf::CompareMUtf8ToMUtf8(string_data1.data, string_data2.data) < 0;
|
/arkcompiler/runtime_core/libpandabase/tests/ |
D | utf_test.cpp | 24 namespace panda::utf::test { namespace 33 ConvertMUtf8ToUtf16(in.data(), utf::Mutf8Size(in.data()), out.data()); 42 ConvertMUtf8ToUtf16(in.data(), utf::Mutf8Size(in.data()), out.data()); 51 ConvertMUtf8ToUtf16(in.data(), utf::Mutf8Size(in.data()), out.data()); 60 ConvertMUtf8ToUtf16(in.data(), utf::Mutf8Size(in.data()), out.data()); 69 ConvertMUtf8ToUtf16(in.data(), utf::Mutf8Size(in.data()), out.data()); 77 ConvertMUtf8ToUtf16(in.data(), utf::Mutf8Size(in.data()), out.data()); 85 ConvertMUtf8ToUtf16(in.data(), utf::Mutf8Size(in.data()), out.data());
|
/arkcompiler/runtime_core/assembler/tests/ |
D | emitter_test.cpp | 47 return utf::CStringAsMutf8(storage->c_str()); in GetTypeDescriptor() 98 …ASSERT_EQ(utf::CompareMUtf8ToMUtf8(pf->GetStringData(mda.GetNameId()).data, utf::CStringAsMutf8("m… in TEST() 165 ASSERT_EQ(utf::CompareMUtf8ToMUtf8(pf->GetStringData(fda.GetNameId()).data, in TEST() 166 utf::CStringAsMutf8(fields[i].name.c_str())), in TEST() 477 auto *name = utf::Mutf8AsCString(pf->GetStringData(mda.GetNameId()).data); in TEST() 503 auto *name = utf::Mutf8AsCString(pf->GetStringData(mda.GetNameId()).data); in TEST() 572 ASSERT_EQ(utf::CompareMUtf8ToMUtf8(pf->GetStringData(fda.GetNameId()).data, in TEST() 573 utf::CStringAsMutf8(field_data.name.c_str())), in TEST() 660 …ASSERT_EQ(utf::CompareMUtf8ToMUtf8(pf->GetStringData(string_id).data, utf::CStringAsMutf8(val.c_st… in TEST() 802 …ASSERT_EQ(std::string(utf::Mutf8AsCString(pf->GetStringData(method_accessor.GetNameId()).data)), "… in TEST()
|
D | assembler_emitter_test.cpp | 45 return utf::CStringAsMutf8(storage->c_str()); in GetTypeDescriptor() 83 auto *name = utf::Mutf8AsCString(pf->GetStringData(mda.GetNameId()).data); in __anon654af7a10102() 138 …EXPECT_EQ(utf::CompareMUtf8ToMUtf8(pf->GetStringData(mda.GetNameId()).data, utf::CStringAsMutf8("m… in __anon654af7a10402() 197 EXPECT_EQ(utf::CompareMUtf8ToMUtf8(pf->GetStringData(fda.GetNameId()).data, in __anon654af7a10602() 198 utf::CStringAsMutf8(fields[i].name.c_str())), in __anon654af7a10602() 549 auto *name = utf::Mutf8AsCString(pf->GetStringData(mda.GetNameId()).data); in __anon654af7a10e02() 575 auto *name = utf::Mutf8AsCString(pf->GetStringData(mda.GetNameId()).data); in __anon654af7a10f02() 656 EXPECT_EQ(utf::CompareMUtf8ToMUtf8(pf->GetStringData(fda.GetNameId()).data, in __anon654af7a11002() 657 utf::CStringAsMutf8(field_data.name.c_str())), in __anon654af7a11002() 742 …EXPECT_EQ(utf::CompareMUtf8ToMUtf8(pf->GetStringData(string_id).data, utf::CStringAsMutf8(val.c_st… in __anon654af7a11002()
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/ |
D | js_pandafile_executor_test.cpp | 74 const uint8_t *typeDesc = utf::CStringAsMutf8("L_GLOBAL;"); in HWTEST_F_L0() 110 const uint8_t *typeDesc = utf::CStringAsMutf8("L_GLOBAL;"); in HWTEST_F_L0() 148 const uint8_t *typeDesc = utf::CStringAsMutf8("L_GLOBAL;"); in HWTEST_F_L0()
|
D | js_pandafile_test.cpp | 129 const uint8_t *typeDesc = utf::CStringAsMutf8("L_GLOBAL;"); in HWTEST_F_L0() 163 const uint8_t *typeDesc = utf::CStringAsMutf8("L_GLOBAL;"); in HWTEST_F_L0() 213 const uint8_t *typeDesc = utf::CStringAsMutf8("L_GLOBAL;"); in HWTEST_F_L0() 246 const uint8_t *typeDesc = utf::CStringAsMutf8("L_GLOBAL;"); in HWTEST_F_L0()
|
D | panda_file_translator_test.cpp | 66 const uint8_t *typeDesc = utf::CStringAsMutf8("L_GLOBAL;"); in HWTEST_F_L0() 107 const uint8_t *typeDesc = utf::CStringAsMutf8("L_GLOBAL;"); in HWTEST_F_L0()
|
/arkcompiler/runtime_core/compiler/tests/ |
D | unit_test.cpp | 117 …auto klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &stora… in BuildGraph() 120 auto method = klass->GetDirectMethod(utf::CStringAsMutf8(method_name)); in BuildGraph()
|
D | panda_runner.h | 135 … ->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descriptor)); in GetMethod() 138 return cls->GetDirectMethod(utf::CStringAsMutf8(method_name.data())); in GetMethod()
|
D | graph_test.h | 68 … auto method_name = std::string(utf::Mutf8AsCString(pfile->GetStringData(mda.GetNameId()).data)); in TestBuildGraphFromFile()
|
/arkcompiler/runtime_core/bytecode_optimizer/tests/ |
D | graph_test.h | 68 … auto method_name = std::string(utf::Mutf8AsCString(pfile->GetStringData(mda.GetNameId()).data)); in TestBuildGraphFromFile()
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | utf.h | 25 namespace panda::utf {
|
/arkcompiler/runtime_core/libpandabase/ |
D | BUILD.gn | 91 "$ark_root/libpandabase/utils/utf.cpp", 119 "$ark_root/libpandabase/utils/utf.cpp",
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | tagged_dictionary_test.cpp | 172 …JSHandle<JSTaggedValue> key(thread, stringTable->GetOrInternString(keyArray, utf::Mutf8Size(keyArr… in HWTEST_F_L0() 183 … stringTable->GetOrInternString(keyArray, utf::Mutf8Size(keyArray), true)); in HWTEST_F_L0()
|