Home
last modified time | relevance | path

Searched refs:offsetByCodePoints (Results 1 – 8 of 8) 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.java384 int result = Character.offsetByCodePoints("a\uD800\uDC00b", 0, 2); in test_offsetByCodePointsLjava_lang_CharSequenceII()
387 result = Character.offsetByCodePoints("abcd", 3, -1); in test_offsetByCodePointsLjava_lang_CharSequenceII()
390 result = Character.offsetByCodePoints("a\uD800\uDC00b", 0, 3); in test_offsetByCodePointsLjava_lang_CharSequenceII()
393 result = Character.offsetByCodePoints("a\uD800\uDC00b", 3, -1); in test_offsetByCodePointsLjava_lang_CharSequenceII()
396 result = Character.offsetByCodePoints("a\uD800\uDC00b", 3, 0); in test_offsetByCodePointsLjava_lang_CharSequenceII()
399 result = Character.offsetByCodePoints("\uD800\uDC00bc", 3, 0); in test_offsetByCodePointsLjava_lang_CharSequenceII()
402 result = Character.offsetByCodePoints("a\uDC00bc", 3, -1); in test_offsetByCodePointsLjava_lang_CharSequenceII()
405 result = Character.offsetByCodePoints("a\uD800bc", 3, -1); in test_offsetByCodePointsLjava_lang_CharSequenceII()
409 Character.offsetByCodePoints(null, 0, 1); in test_offsetByCodePointsLjava_lang_CharSequenceII()
415 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/main/java/java/lang/
DStringBuffer.java234 public synchronized int offsetByCodePoints(int index, int codePointOffset) { in offsetByCodePoints() method in StringBuffer
235 return super.offsetByCodePoints(index, codePointOffset); in offsetByCodePoints()
DString.java691 public int offsetByCodePoints(int index, int codePointOffset) { in offsetByCodePoints() method in String
695 return Character.offsetByCodePoints(this, index, codePointOffset); in offsetByCodePoints()
DAbstractStringBuilder.java345 public int offsetByCodePoints(int index, int codePointOffset) { in offsetByCodePoints() method in AbstractStringBuilder
DCharacter.java5306 public static int offsetByCodePoints(CharSequence seq, int index, in offsetByCodePoints() method in Character
5373 public static int offsetByCodePoints(char[] a, int start, int count, in offsetByCodePoints() method in Character