Home
last modified time | relevance | path

Searched refs:newString (Results 1 – 9 of 9) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStringTest.java47 private static String newString(int start, int len, char[] data) throws Exception { in newString() method in StringTest
229 s = newString(1, 3, "_abc_".toCharArray()); in test_contentEqualsLjava_lang_CharSequence()
248 s = newString(1, 3, "_abc_".toCharArray()); in test_boolean_contentEquals_StringBuffer()
268 s = newString(1, 26, "_abcdefghijklmnopqrstuvwxyz_".toCharArray()); in test_containsLjava_lang_CharSequence()
305 result = newString(2, 4, "__a\uD800\uDC00b__".toCharArray()) in test_offsetByCodePoints_II()
309 result = newString(2, 4, "__abcd__".toCharArray()).offsetByCodePoints( in test_offsetByCodePoints_II()
313 result = newString(2, 4, "__a\uD800\uDC00b__".toCharArray()) in test_offsetByCodePoints_II()
317 result = newString(2, 4, "__a\uD800\uDC00b__".toCharArray()) in test_offsetByCodePoints_II()
321 result = newString(2, 4, "__a\uD800\uDC00b__".toCharArray()) in test_offsetByCodePoints_II()
325 result = newString(2, 4, "__\uD800\uDC00bc__".toCharArray()) in test_offsetByCodePoints_II()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DStringLatin1.java561 newString(value, st, len - st) : null; in trim()
596 return ((left > 0) || (right < value.length)) ? newString(value, left, right - left) : null; in strip()
604 return (left != 0) ? newString(value, left, value.length - left) : null; in stripLeading()
612 return (right != value.length) ? newString(value, 0, right) : null; in stripTrailing()
657 return newString(value, start, end - start); in next()
734 public static String newString(byte[] val, int index, int len) { in newString() method in StringLatin1
DStringBuilder.java474 return isLatin1() ? StringLatin1.newString(value, 0, count) in toString()
475 : StringUTF16.newString(value, 0, count); in toString()
DStringBuffer.java723 isLatin1() ? StringLatin1.newString(value, 0, count) in toString()
724 : StringUTF16.newString(value, 0, count); in toString()
DStringUTF16.java975 return ((left > 0) || (right < length)) ? newString(value, left, right - left) : null;
990 return (left != 0) ? newString(value, left, length - left) : null;
1005 return (right != length) ? newString(value, 0, right) : null;
1066 return newString(value, start, end - start);
1129 public static String newString(byte[] val, int index, int len) {
1157 public static String newString(String val, int index, int len) {
DAbstractStringBuilder.java1024 return StringLatin1.newString(value, start, end - start); in substring()
1026 return StringUTF16.newString(value, start, end - start); in substring()
/libcore/ojluni/src/test/java/text/AttributedString/
DTestAttributedStringCtor.java52 AttributedString newString = new AttributedString(iter); in main() local
/libcore/benchmarks/src/benchmarks/
DBigIntegerBenchmark.java114 String newString = newRes.toString(); in repeatToString() local
115 if (!newString.equals(refString)) { in repeatToString()
116 System.out.println(newString + " != " + refString); in repeatToString()
/libcore/luni/src/main/native/
Dorg_apache_harmony_xml_ExpatParser.cpp283 ScopedLocalRef<jstring> newString(env, env->NewStringUTF(bytes)); in newInternedString() local
290 reinterpret_cast<jstring>(env->CallObjectMethod(newString.get(), internMethod))); in newInternedString()