Lines Matching refs:chars
229 jsize GetUncompressedStringUTFLength(const uint16_t* chars, size_t length) { in GetUncompressedStringUTFLength() argument
232 chars, length, [&]([[maybe_unused]] char c) { ++byte_count; }); in GetUncompressedStringUTFLength()
236 char* GetUncompressedStringUTFChars(const uint16_t* chars, size_t length, char* dest) { in GetUncompressedStringUTFChars() argument
238 chars, length, [&](char c) { *dest++ = c; }); in GetUncompressedStringUTFChars()
1975 static jstring NewString(JNIEnv* env, const jchar* chars, jsize char_count) { in NewString() argument
1980 if (UNLIKELY(chars == nullptr && char_count > 0)) { in NewString()
1985 ObjPtr<mirror::String> result = mirror::String::AllocFromUtf16(soa.Self(), char_count, chars); in NewString()
2092 const jchar* chars = static_cast<jchar*>(s->GetValue()); in GetStringRegion() local
2093 memcpy(buf, chars + start, length * sizeof(jchar)); in GetStringRegion()
2130 jchar* chars = new jchar[s->GetLength()]; in GetStringChars() local
2135 chars[i] = static_cast<jchar>(src[i]); in GetStringChars()
2138 memcpy(chars, s->GetValue(), sizeof(jchar) * s->GetLength()); in GetStringChars()
2143 return chars; in GetStringChars()
2151 static void ReleaseStringChars(JNIEnv* env, jstring java_string, const jchar* chars) { in ReleaseStringChars() argument
2155 if (s->IsCompressed() || (s->IsCompressed() == false && chars != s->GetValue())) { in ReleaseStringChars()
2156 delete[] chars; in ReleaseStringChars()
2171 jchar* chars = new jchar[length]; in GetStringCritical() local
2173 chars[i] = static_cast<jchar>(src[i]); in GetStringCritical()
2175 return chars; in GetStringCritical()
2200 const jchar* chars) { in ReleaseStringCritical() argument
2214 if (s->IsCompressed() || (!s->IsCompressed() && s->GetValue() != chars)) { in ReleaseStringCritical()
2215 delete[] chars; in ReleaseStringCritical()
2247 static void ReleaseStringUTFChars(JNIEnv*, jstring, const char* chars) { in ReleaseStringUTFChars() argument
2248 delete[] chars; in ReleaseStringUTFChars()