Home
last modified time | relevance | path

Searched refs:offsetByCodePoints (Results 1 – 23 of 23) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStringTest.java281 int result = new String("a\uD800\uDC00b").offsetByCodePoints(0, 2); in test_offsetByCodePoints_II()
284 result = new String("abcd").offsetByCodePoints(3, -1); in test_offsetByCodePoints_II()
287 result = new String("a\uD800\uDC00b").offsetByCodePoints(0, 3); in test_offsetByCodePoints_II()
290 result = new String("a\uD800\uDC00b").offsetByCodePoints(3, -1); in test_offsetByCodePoints_II()
293 result = new String("a\uD800\uDC00b").offsetByCodePoints(3, 0); in test_offsetByCodePoints_II()
296 result = new String("\uD800\uDC00bc").offsetByCodePoints(3, 0); in test_offsetByCodePoints_II()
299 result = new String("a\uDC00bc").offsetByCodePoints(3, -1); in test_offsetByCodePoints_II()
302 result = new String("a\uD800bc").offsetByCodePoints(3, -1); in test_offsetByCodePoints_II()
306 .offsetByCodePoints(0, 2); in test_offsetByCodePoints_II()
309 result = newString(2, 4, "__abcd__".toCharArray()).offsetByCodePoints( in test_offsetByCodePoints_II()
[all …]
DStringBufferTest.java470 int result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(0, 2); in test_offsetByCodePointsII()
473 result = new StringBuffer("abcd").offsetByCodePoints(3, -1); in test_offsetByCodePointsII()
476 result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(0, 3); in test_offsetByCodePointsII()
479 result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(3, -1); in test_offsetByCodePointsII()
482 result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(3, 0); in test_offsetByCodePointsII()
485 result = new StringBuffer("\uD800\uDC00bc").offsetByCodePoints(3, 0); in test_offsetByCodePointsII()
488 result = new StringBuffer("a\uDC00bc").offsetByCodePoints(3, -1); in test_offsetByCodePointsII()
491 result = new StringBuffer("a\uD800bc").offsetByCodePoints(3, -1); in test_offsetByCodePointsII()
496 sb.offsetByCodePoints(-1, 1); in test_offsetByCodePointsII()
503 sb.offsetByCodePoints(0, 4); in test_offsetByCodePointsII()
[all …]
DCharacterTest.java385 int result = Character.offsetByCodePoints("a\uD800\uDC00b", 0, 2); in test_offsetByCodePointsLjava_lang_CharSequenceII()
388 result = Character.offsetByCodePoints("abcd", 3, -1); in test_offsetByCodePointsLjava_lang_CharSequenceII()
391 result = Character.offsetByCodePoints("a\uD800\uDC00b", 0, 3); in test_offsetByCodePointsLjava_lang_CharSequenceII()
394 result = Character.offsetByCodePoints("a\uD800\uDC00b", 3, -1); in test_offsetByCodePointsLjava_lang_CharSequenceII()
397 result = Character.offsetByCodePoints("a\uD800\uDC00b", 3, 0); in test_offsetByCodePointsLjava_lang_CharSequenceII()
400 result = Character.offsetByCodePoints("\uD800\uDC00bc", 3, 0); in test_offsetByCodePointsLjava_lang_CharSequenceII()
403 result = Character.offsetByCodePoints("a\uDC00bc", 3, -1); in test_offsetByCodePointsLjava_lang_CharSequenceII()
406 result = Character.offsetByCodePoints("a\uD800bc", 3, -1); in test_offsetByCodePointsLjava_lang_CharSequenceII()
410 Character.offsetByCodePoints(null, 0, 1); in test_offsetByCodePointsLjava_lang_CharSequenceII()
416 Character.offsetByCodePoints("abc", -1, 1); in test_offsetByCodePointsLjava_lang_CharSequenceII()
[all …]
DStringBuilderTest.java1440 int result = new StringBuilder("a\uD800\uDC00b").offsetByCodePoints(0, 2); in test_offsetByCodePointsII()
1443 result = new StringBuilder("abcd").offsetByCodePoints(3, -1); in test_offsetByCodePointsII()
1446 result = new StringBuilder("a\uD800\uDC00b").offsetByCodePoints(0, 3); in test_offsetByCodePointsII()
1449 result = new StringBuilder("a\uD800\uDC00b").offsetByCodePoints(3, -1); in test_offsetByCodePointsII()
1452 result = new StringBuilder("a\uD800\uDC00b").offsetByCodePoints(3, 0); in test_offsetByCodePointsII()
1455 result = new StringBuilder("\uD800\uDC00bc").offsetByCodePoints(3, 0); in test_offsetByCodePointsII()
1458 result = new StringBuilder("a\uDC00bc").offsetByCodePoints(3, -1); in test_offsetByCodePointsII()
1461 result = new StringBuilder("a\uD800bc").offsetByCodePoints(3, -1); in test_offsetByCodePointsII()
1467 sb.offsetByCodePoints(-1, 1); in test_offsetByCodePointsII()
1474 sb.offsetByCodePoints(0, 4); in test_offsetByCodePointsII()
[all …]
/libcore/ojluni/src/test/java/lang/StringBuilder/
DCompactStringBuilder.java247 assertEquals(new StringBuilder(ORIGIN).offsetByCodePoints(1, 1), 2); in testCompactStringForSupplementaryCodePoint()
248 assertEquals(new StringBuilder(ORIGIN).offsetByCodePoints(0, 1), 2); in testCompactStringForSupplementaryCodePoint()
284 assertEquals(new StringBuilder(ORIGIN).offsetByCodePoints(0, 1), 1); in testCompactStringForSupplementaryCodePointMixed1()
285 assertEquals(new StringBuilder(ORIGIN).offsetByCodePoints(1, 1), 3); in testCompactStringForSupplementaryCodePointMixed1()
316 assertEquals(new StringBuilder(ORIGIN).offsetByCodePoints(1, 1), 2); in testCompactStringForSupplementaryCodePointMixed2()
317 assertEquals(new StringBuilder(ORIGIN).offsetByCodePoints(0, 1), 2); in testCompactStringForSupplementaryCodePointMixed2()
318 assertEquals(new StringBuilder(ORIGIN).offsetByCodePoints(2, 1), 3); in testCompactStringForSupplementaryCodePointMixed2()
343 assertEquals(new StringBuilder(ORIGIN).offsetByCodePoints(0, 1), 1); in testCompactStringForSupplementaryCodePointMixed3()
344 assertEquals(new StringBuilder(ORIGIN).offsetByCodePoints(1, 1), 2); in testCompactStringForSupplementaryCodePointMixed3()
345 assertEquals(new StringBuilder(ORIGIN).offsetByCodePoints(2, 1), 3); in testCompactStringForSupplementaryCodePointMixed3()
[all …]
DSupplementary.java271 int result = sb.offsetByCodePoints(j, nCodePoints); in test6()
275 result = sb.offsetByCodePoints(length, -nCodePoints); in test6()
289 int result = sb.offsetByCodePoints(0, nCodePoints); in test6()
300 result = sb.offsetByCodePoints(j, -nCodePoints); in test6()
383 int n = sb.offsetByCodePoints(index, offset); in testOffsetByCodePoints()
/libcore/ojluni/src/test/java/lang/StringBuffer/
DCompactStringBuffer.java246 assertEquals(new StringBuffer(ORIGIN).offsetByCodePoints(1, 1), 2); in testCompactStringForSupplementaryCodePoint()
247 assertEquals(new StringBuffer(ORIGIN).offsetByCodePoints(0, 1), 2); in testCompactStringForSupplementaryCodePoint()
282 assertEquals(new StringBuffer(ORIGIN).offsetByCodePoints(0, 1), 1); in testCompactStringForSupplementaryCodePointMixed1()
283 assertEquals(new StringBuffer(ORIGIN).offsetByCodePoints(1, 1), 3); in testCompactStringForSupplementaryCodePointMixed1()
314 assertEquals(new StringBuffer(ORIGIN).offsetByCodePoints(1, 1), 2); in testCompactStringForSupplementaryCodePointMixed2()
315 assertEquals(new StringBuffer(ORIGIN).offsetByCodePoints(0, 1), 2); in testCompactStringForSupplementaryCodePointMixed2()
316 assertEquals(new StringBuffer(ORIGIN).offsetByCodePoints(2, 1), 3); in testCompactStringForSupplementaryCodePointMixed2()
341 assertEquals(new StringBuffer(ORIGIN).offsetByCodePoints(0, 1), 1); in testCompactStringForSupplementaryCodePointMixed3()
342 assertEquals(new StringBuffer(ORIGIN).offsetByCodePoints(1, 1), 2); in testCompactStringForSupplementaryCodePointMixed3()
343 assertEquals(new StringBuffer(ORIGIN).offsetByCodePoints(2, 1), 3); in testCompactStringForSupplementaryCodePointMixed3()
[all …]
DSupplementary.java269 int result = sb.offsetByCodePoints(j, nCodePoints); in test6()
273 result = sb.offsetByCodePoints(length, -nCodePoints); in test6()
287 int result = sb.offsetByCodePoints(0, nCodePoints); in test6()
298 result = sb.offsetByCodePoints(j, -nCodePoints); in test6()
368 int n = sb.offsetByCodePoints(index, offset); in testOffsetByCodePoints()
/libcore/ojluni/src/test/java/lang/Character/
DSupplementary.java415 index = Character.offsetByCodePoints(str, i, nCodePoints); in test05()
424 index = Character.offsetByCodePoints(str, length, -nCodePoints); in test05()
431 index = Character.offsetByCodePoints(a, start, limit - start, in test05()
435 index = Character.offsetByCodePoints(a, start, length - start, in test05()
439 index = Character.offsetByCodePoints(a, start, limit - start, in test05()
443 index = Character.offsetByCodePoints(a, i, limit - i, in test05()
451 int index = Character.offsetByCodePoints(str, 0, 0); in test05()
453 index = Character.offsetByCodePoints(str, length, 0); in test05()
455 index = Character.offsetByCodePoints(a, 0, 0, 0, 0); in test05()
457 index = Character.offsetByCodePoints(a, 0, length, 0, 0); in test05()
[all …]
/libcore/ojluni/src/test/java/lang/String/CompactString/
DOffsetByCodePoints.java63 data.offsetByCodePoints(index, in testOffsetByCodePoints()
/libcore/ojluni/src/main/java/java/lang/
DStringBuffer.java281 public synchronized int offsetByCodePoints(int index, int codePointOffset) { in offsetByCodePoints() method in StringBuffer
282 return super.offsetByCodePoints(index, codePointOffset); in offsetByCodePoints()
DAbstractStringBuilder.java431 public int offsetByCodePoints(int index, int codePointOffset) { in offsetByCodePoints() method in AbstractStringBuilder
435 return Character.offsetByCodePoints(this, in offsetByCodePoints()
DString.java989 public int offsetByCodePoints(int index, int codePointOffset) { in offsetByCodePoints() method in String
993 return Character.offsetByCodePoints(this, index, codePointOffset); in offsetByCodePoints()
DCharacter.java9380 public static int offsetByCodePoints(CharSequence seq, int index, in offsetByCodePoints() method in Character
9447 public static int offsetByCodePoints(char[] a, int start, int count, in offsetByCodePoints() method in Character
/libcore/ojluni/annotations/hiddenapi/java/lang/
DAbstractStringBuilder.java89 public int offsetByCodePoints(int index, int codePointOffset) { in offsetByCodePoints() method in AbstractStringBuilder
DString.java129 public int offsetByCodePoints(int index, int codePointOffset) { in offsetByCodePoints() method in String
DCharacter.java167 public static int offsetByCodePoints( in offsetByCodePoints() method in Character
172 public static int offsetByCodePoints( in offsetByCodePoints() method in Character
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DStringBuffer.annotated.java59 public synchronized int offsetByCodePoints(int index, int codePointOffset) { throw new RuntimeExcep… in offsetByCodePoints() method in StringBuffer
DStringBuilder.annotated.java140 public int offsetByCodePoints(int index, int codePointOffset) { throw new RuntimeException("Stub!")… in offsetByCodePoints() method in StringBuilder
DString.annotated.java86 public int offsetByCodePoints(int index, int codePointOffset) { throw new RuntimeException("Stub!")… in offsetByCodePoints() method in String
DCharacter.annotated.java93 public static int offsetByCodePoints(@libcore.util.NonNull java.lang.CharSequence seq, int index, i… in offsetByCodePoints() method in Character
95 public static int offsetByCodePoints(char[] a, int start, int count, int index, int codePointOffset… in offsetByCodePoints() method in Character
/libcore/ojluni/annotations/flagged_api/java/lang/
DCharacter.annotated.java94 public static int offsetByCodePoints(java.lang.CharSequence seq, int index, int codePointOffset) { … in offsetByCodePoints() method in Character
96 public static int offsetByCodePoints(char[] a, int start, int count, int index, int codePointOffset… in offsetByCodePoints() method in Character
/libcore/api/
Dcurrent.txt2502 method public static int offsetByCodePoints(@NonNull CharSequence, int, int);
2503 method public static int offsetByCodePoints(char[], int, int, int, int);
4159 method public int offsetByCodePoints(int, int);
4247 method public int offsetByCodePoints(int, int);
4307 method public int offsetByCodePoints(int, int);