Home
last modified time | relevance | path

Searched refs:utf16_length (Results 1 – 13 of 13) sorted by relevance

/art/libdexfile/dex/
Dutf.cc177 int32_t ComputeUtf16HashFromModifiedUtf8(const char* utf8, size_t utf16_length) { in ComputeUtf16HashFromModifiedUtf8() argument
179 while (utf16_length != 0u) { in ComputeUtf16HashFromModifiedUtf8()
183 --utf16_length; in ComputeUtf16HashFromModifiedUtf8()
187 DCHECK_NE(utf16_length, 0u); in ComputeUtf16HashFromModifiedUtf8()
188 --utf16_length; in ComputeUtf16HashFromModifiedUtf8()
204 size_t utf16_length) { in CompareModifiedUtf8ToUtf16AsCodePointValues() argument
207 return (utf16_length == 0) ? 0 : -1; in CompareModifiedUtf8ToUtf16AsCodePointValues()
208 } else if (utf16_length == 0) { in CompareModifiedUtf8ToUtf16AsCodePointValues()
217 --utf16_length; in CompareModifiedUtf8ToUtf16AsCodePointValues()
226 if (utf16_length == 0) { in CompareModifiedUtf8ToUtf16AsCodePointValues()
[all …]
Ddex_file-inl.h34 inline std::string_view StringViewFromUtf16Length(const char* utf8_data, size_t utf16_length) { in StringViewFromUtf16Length() argument
35 size_t utf8_length = LIKELY(utf8_data[utf16_length] == 0) // Is ASCII? in StringViewFromUtf16Length()
36 ? utf16_length in StringViewFromUtf16Length()
37 : utf16_length + strlen(utf8_data + utf16_length); in StringViewFromUtf16Length()
47 uint32_t* utf16_length) const { in GetStringDataAndUtf16Length() argument
48 DCHECK(utf16_length != nullptr) << GetLocation(); in GetStringDataAndUtf16Length()
50 *utf16_length = DecodeUnsignedLeb128(&ptr); in GetStringDataAndUtf16Length()
60 uint32_t* utf16_length) const { in StringDataAndUtf16LengthByIdx() argument
62 *utf16_length = 0; in StringDataAndUtf16LengthByIdx()
66 return GetStringDataAndUtf16Length(string_id, utf16_length); in StringDataAndUtf16LengthByIdx()
Dutf.h65 size_t utf16_length);
88 int32_t ComputeUtf16HashFromModifiedUtf8(const char* utf8, size_t utf16_length);
Ddex_file.h257 uint32_t* utf16_length) const;
262 const char* StringDataAndUtf16LengthByIdx(dex::StringIndex idx, uint32_t* utf16_length) const;
/art/runtime/mirror/
Dstring.cc162 int32_t utf16_length, in AllocFromUtf16() argument
164 CHECK(utf16_data_in != nullptr || utf16_length == 0); in AllocFromUtf16()
167 String::AllASCII<uint16_t>(utf16_data_in, utf16_length); in AllocFromUtf16()
168 int32_t length_with_flag = String::GetFlaggedCount(utf16_length, compressible); in AllocFromUtf16()
175 for (int i = 0; i < utf16_length; ++i) { in AllocFromUtf16()
180 memcpy(array, utf16_data_in, utf16_length * sizeof(uint16_t)); in AllocFromUtf16()
193 int32_t utf16_length, in AllocFromModifiedUtf8() argument
195 return AllocFromModifiedUtf8(self, utf16_length, utf8_data_in, strlen(utf8_data_in)); in AllocFromModifiedUtf8()
199 int32_t utf16_length, in AllocFromModifiedUtf8() argument
203 const bool compressible = kUseStringCompression && (utf16_length == utf8_length); in AllocFromModifiedUtf8()
[all …]
Dstring.h153 int32_t utf16_length,
161 int32_t utf16_length,
167 int32_t utf16_length,
/art/runtime/
Dintern_table.cc103 uint32_t utf16_length, in LookupStrong() argument
105 DCHECK_EQ(utf16_length, CountModifiedUtf8Chars(utf8_data)); in LookupStrong()
106 Utf8String string(utf16_length, in LookupStrong()
108 ComputeUtf16HashFromModifiedUtf8(utf8_data, utf16_length)); in LookupStrong()
256 ObjPtr<mirror::String> InternTable::InternStrong(int32_t utf16_length, const char* utf8_data) { in InternStrong() argument
260 ObjPtr<mirror::String> s = LookupStrong(self, utf16_length, utf8_data); in InternStrong()
265 self, utf16_length, utf8_data)); in InternStrong()
Dintern_table.h65 Utf8String(uint32_t utf16_length, const char* utf8_data, int32_t hash) in Utf8String() argument
66 : hash_(hash), utf16_length_(utf16_length), utf8_data_(utf8_data) { } in Utf8String()
113 ObjPtr<mirror::String> InternStrong(int32_t utf16_length, const char* utf8_data)
145 ObjPtr<mirror::String> LookupStrong(Thread* self, uint32_t utf16_length, const char* utf8_data)
Dclass_linker.cc8403 uint32_t utf16_length; in DoResolveString() local
8404 const char* utf8_data = dex_file.StringDataAndUtf16LengthByIdx(string_idx, &utf16_length); in DoResolveString()
8405 ObjPtr<mirror::String> string = intern_table_->InternStrong(utf16_length, utf8_data); in DoResolveString()
8416 uint32_t utf16_length; in DoLookupString() local
8417 const char* utf8_data = dex_file.StringDataAndUtf16LengthByIdx(string_idx, &utf16_length); in DoLookupString()
8419 intern_table_->LookupStrong(Thread::Current(), utf16_length, utf8_data); in DoLookupString()
/art/compiler/optimizing/
Dinstruction_simplifier.cc2395 uint32_t utf16_length; in SimplifyStringIndexOf() local
2397 dex_file.StringDataAndUtf16LengthByIdx(load_string->GetStringIndex(), &utf16_length); in SimplifyStringIndexOf()
2398 if (utf16_length == 0) { in SimplifyStringIndexOf()
2404 if (utf16_length == 1 && invoke->GetIntrinsic() == Intrinsics::kStringIndexOf) { in SimplifyStringIndexOf()
Dintrinsics_arm_vixl.cc1452 static const char* GetConstString(HInstruction* candidate, uint32_t* utf16_length) { in GetConstString() argument
1456 return dex_file.StringDataAndUtf16LengthByIdx(load_string->GetStringIndex(), utf16_length); in GetConstString()
Dintrinsics_arm64.cc1391 static const char* GetConstString(HInstruction* candidate, uint32_t* utf16_length) { in GetConstString() argument
1395 return dex_file.StringDataAndUtf16LengthByIdx(load_string->GetStringIndex(), utf16_length); in GetConstString()
/art/dex2oat/linker/
Dimage_writer.cc2351 uint32_t utf16_length; in CalculateNewObjectOffsets() local
2353 &utf16_length); in CalculateNewObjectOffsets()
2354 mirror::String* string = intern_table->LookupStrong(self, utf16_length, utf8_data).Ptr(); in CalculateNewObjectOffsets()