Home
last modified time | relevance | path

Searched refs:char_count (Results 1 – 10 of 10) sorted by relevance

/art/runtime/
Dutf.cc68 void ConvertUtf16ToModifiedUtf8(char* utf8_out, const uint16_t* utf16_in, size_t char_count) { in ConvertUtf16ToModifiedUtf8() argument
69 while (char_count--) { in ConvertUtf16ToModifiedUtf8()
78 if ((ch >= 0xd800 && ch <= 0xdbff) && (char_count > 0)) { in ConvertUtf16ToModifiedUtf8()
86 char_count--; in ConvertUtf16ToModifiedUtf8()
110 int32_t ComputeUtf16Hash(const uint16_t* chars, size_t char_count) { in ComputeUtf16Hash() argument
112 while (char_count--) { in ComputeUtf16Hash()
162 size_t CountUtf8Bytes(const uint16_t* chars, size_t char_count) { in CountUtf8Bytes() argument
164 while (char_count--) { in CountUtf8Bytes()
169 if (char_count > 0) { in CountUtf8Bytes()
176 char_count--; in CountUtf8Bytes()
Dutf.h48 size_t CountUtf8Bytes(const uint16_t* chars, size_t char_count);
74 void ConvertUtf16ToModifiedUtf8(char* utf8_out, const uint16_t* utf16_in, size_t char_count);
79 int32_t ComputeUtf16Hash(mirror::CharArray* chars, int32_t offset, size_t char_count)
81 int32_t ComputeUtf16Hash(const uint16_t* chars, size_t char_count);
Dutils.cc503 size_t char_count = CountModifiedUtf8Chars(p); in PrintableString() local
504 for (size_t i = 0; i < char_count; ++i) { in PrintableString()
537 size_t char_count = CountModifiedUtf8Chars(s.c_str()); in MangleForJni() local
539 for (size_t i = 0; i < char_count; ++i) { in MangleForJni()
Djni_internal.cc1633 static jstring NewString(JNIEnv* env, const jchar* chars, jsize char_count) { in NewString() argument
1634 if (UNLIKELY(char_count < 0)) { in NewString()
1635 JavaVmExtFromEnv(env)->JniAbortF("NewString", "char_count < 0: %d", char_count); in NewString()
1638 if (UNLIKELY(chars == nullptr && char_count > 0)) { in NewString()
1643 mirror::String* result = mirror::String::AllocFromUtf16(soa.Self(), char_count, chars); in NewString()
Ddebugger.cc4321 size_t char_count = (name.Get() != nullptr) ? name->GetLength() : 0; in DdmSendThreadNotification() local
4326 JDWP::AppendUtf16BE(bytes, chars, char_count); in DdmSendThreadNotification()
4327 CHECK_EQ(bytes.size(), char_count*2 + sizeof(uint32_t)*2); in DdmSendThreadNotification()
/art/runtime/jdwp/
Djdwp_bits.h62 … inline void AppendUtf16BE(std::vector<uint8_t>& bytes, const uint16_t* chars, size_t char_count) { in AppendUtf16BE() argument
63 Append4BE(bytes, char_count); in AppendUtf16BE()
64 for (size_t i = 0; i < char_count; ++i) { in AppendUtf16BE()
/art/runtime/native/
Djava_lang_StringFactory.cc54 jint char_count, jcharArray java_data) { in StringFactory_newStringFromChars() argument
59 mirror::String* result = mirror::String::AllocFromCharArray<true>(soa.Self(), char_count, in StringFactory_newStringFromChars()
/art/runtime/mirror/
Dstring.cc111 size_t char_count = CountModifiedUtf8Chars(utf); in AllocFromModifiedUtf8() local
112 return AllocFromModifiedUtf8(self, char_count, utf); in AllocFromModifiedUtf8()
/art/runtime/entrypoints/quick/
Dquick_alloc_entrypoints.cc168 int32_t offset, int32_t char_count, mirror::CharArray* char_array, Thread* self) \
172 return mirror::String::AllocFromCharArray<instrumented_bool>(self, char_count, handle_array, \
/art/runtime/interpreter/
Dunstarted_runtime.cc798 jint char_count = shadow_frame->GetVReg(arg_offset + 1); in UnstartedStringFactoryNewStringFromChars() local
799 DCHECK_GE(char_count, 0); in UnstartedStringFactoryNewStringFromChars()
805 …result->SetL(mirror::String::AllocFromCharArray<true>(self, char_count, h_char_array, offset, allo… in UnstartedStringFactoryNewStringFromChars()