Home
last modified time | relevance | path

Searched refs:utf8_length (Results 1 – 6 of 6) sorted by relevance

/art/runtime/native/
Dlibcore_util_CharsetUtils.cc111 size_t utf8_length = 0; in CharsetUtils_toUtf8Bytes() local
113 utf8_length = length; in CharsetUtils_toUtf8Bytes()
116 auto count_length = [&utf8_length](jbyte c ATTRIBUTE_UNUSED) ALWAYS_INLINE { ++utf8_length; }; in CharsetUtils_toUtf8Bytes()
122 mirror::ByteArray::Alloc(soa.Self(), dchecked_integral_cast<int32_t>(utf8_length)); in CharsetUtils_toUtf8Bytes()
/art/runtime/mirror/
Dstring.cc239 int32_t utf8_length) { in AllocFromModifiedUtf8() argument
241 const bool compressible = kUseStringCompression && (utf16_length == utf8_length); in AllocFromModifiedUtf8()
252 ConvertModifiedUtf8ToUtf16(utf16_data_out, utf16_length, utf8_data_in, utf8_length); in AllocFromModifiedUtf8()
Dstring.h190 int32_t utf8_length)
/art/runtime/
Dintern_table.cc269 int32_t utf8_length = utf16_length + (LIKELY(is_ascii) ? 0 : strlen(utf8_data + utf16_length)); in InternStrong() local
270 DCHECK_EQ(static_cast<size_t>(utf8_length), strlen(utf8_data)); in InternStrong()
271 s = mirror::String::AllocFromModifiedUtf8(self, utf16_length, utf8_data, utf8_length); in InternStrong()
/art/libdexfile/dex/
Ddex_file-inl.h36 size_t utf8_length = LIKELY(utf8_data[utf16_length] == 0) // Is ASCII? in StringViewFromUtf16Length() local
39 return std::string_view(utf8_data, utf8_length); in StringViewFromUtf16Length()
/art/runtime/jni/
Djni_internal.cc162 NewStringUTFVisitor(const char* utf, size_t utf8_length, int32_t count, bool has_bad_char) in NewStringUTFVisitor() argument
163 : utf_(utf), utf8_length_(utf8_length), count_(count), has_bad_char_(has_bad_char) {} in NewStringUTFVisitor()
1997 size_t utf8_length = strlen(utf); in NewStringUTF() local
2002 utf8_length, in NewStringUTF()
2050 NewStringUTFVisitor visitor(utf, utf8_length, length_with_flag, has_bad_char); in NewStringUTF()