Home
last modified time | relevance | path

Searched refs:utf (Results 1 – 25 of 38) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/base/
Dutf_helper.cpp132 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 …]
Dutf_helper.h97 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/
Dutf_helper_test.cpp212 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/
Djs_pandafile.cpp56 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()
Dmethod_literal.cpp108 return utf::Mutf8AsCString(sd.data); in GetMethodName()
120 CString desc = utf::Mutf8AsCString(cda.GetDescriptor()); in GetRecordName()
133 return utf::Mutf8AsCString(cda.GetDescriptor()); in GetRecordNameWithSymbol()
Dtype_literal_extractor.cpp109 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()
Ddebug_info_extractor.h111 … CString recordName = JSPandaFile::ParseEntryPoint(utf::Mutf8AsCString(cda.GetDescriptor())); in MatchWithLocation()
/arkcompiler/runtime_core/libpandafile/
Ddebug_info_extractor.cpp27 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()
Dfile_reader.cpp144 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 …]
Dclass_data_accessor.cpp31 size_t size = utf::Mutf8Size(name_.data) + 1; // + 1 for null byte in ClassDataAccessor()
Dfile.cpp643 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()
Dfile.h454 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/
Dutf_test.cpp24 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/
Demitter_test.cpp47 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()
Dassembler_emitter_test.cpp45 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/
Djs_pandafile_executor_test.cpp74 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()
Djs_pandafile_test.cpp129 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()
Dpanda_file_translator_test.cpp66 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/
Dunit_test.cpp117 …auto klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &stora… in BuildGraph()
120 auto method = klass->GetDirectMethod(utf::CStringAsMutf8(method_name)); in BuildGraph()
Dpanda_runner.h135 … ->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descriptor)); in GetMethod()
138 return cls->GetDirectMethod(utf::CStringAsMutf8(method_name.data())); in GetMethod()
Dgraph_test.h68 … auto method_name = std::string(utf::Mutf8AsCString(pfile->GetStringData(mda.GetNameId()).data)); in TestBuildGraphFromFile()
/arkcompiler/runtime_core/bytecode_optimizer/tests/
Dgraph_test.h68 … auto method_name = std::string(utf::Mutf8AsCString(pfile->GetStringData(mda.GetNameId()).data)); in TestBuildGraphFromFile()
/arkcompiler/runtime_core/libpandabase/utils/
Dutf.h25 namespace panda::utf {
/arkcompiler/runtime_core/libpandabase/
DBUILD.gn91 "$ark_root/libpandabase/utils/utf.cpp",
119 "$ark_root/libpandabase/utils/utf.cpp",
/arkcompiler/ets_runtime/ecmascript/tests/
Dtagged_dictionary_test.cpp172 …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()

12