Lines Matching refs:chars
1628 static jstring NewString(JNIEnv* env, const jchar* chars, jsize char_count) {
1633 if (UNLIKELY(chars == nullptr && char_count > 0)) {
1634 JavaVmExtFromEnv(env)->JniAbortF("NewString", "chars == null && char_count > 0");
1638 mirror::String* result = mirror::String::AllocFromUtf16(soa.Self(), char_count, chars);
1672 const jchar* chars = s->GetValue();
1673 memcpy(buf, chars + start, length * sizeof(jchar));
1686 const jchar* chars = s->GetValue();
1687 size_t bytes = CountUtf8Bytes(chars + start, length);
1688 ConvertUtf16ToModifiedUtf8(buf, bytes, chars + start, length);
1698 jchar* chars = new jchar[s->GetLength()];
1699 memcpy(chars, s->GetValue(), sizeof(jchar) * s->GetLength());
1703 return chars;
1711 static void ReleaseStringChars(JNIEnv* env, jstring java_string, const jchar* chars) {
1715 if (chars != s->GetValue()) {
1716 delete[] chars;
1744 const jchar* chars ATTRIBUTE_UNUSED) {
1770 const uint16_t* chars = s->GetValue();
1771 ConvertUtf16ToModifiedUtf8(bytes, byte_count, chars, s->GetLength());
1776 static void ReleaseStringUTFChars(JNIEnv*, jstring, const char* chars) {
1777 delete[] chars;