Home
last modified time | relevance | path

Searched refs:codePointBefore (Results 1 – 14 of 14) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStringTest.java460 assertEquals('a', s.codePointBefore(1)); in test_codePointBeforeI()
461 assertEquals('b', s.codePointBefore(2)); in test_codePointBeforeI()
462 assertEquals('c', s.codePointBefore(3)); in test_codePointBeforeI()
465 assertEquals('a', s.codePointBefore(1)); in test_codePointBeforeI()
466 assertEquals('b', s.codePointBefore(2)); in test_codePointBeforeI()
467 assertEquals('c', s.codePointBefore(3)); in test_codePointBeforeI()
470 assertEquals(0x10000, s.codePointBefore(2)); in test_codePointBeforeI()
471 assertEquals('\uD800', s.codePointBefore(1)); in test_codePointBeforeI()
474 assertEquals(0x10000, s.codePointBefore(2)); in test_codePointBeforeI()
475 assertEquals('\uD800', s.codePointBefore(1)); in test_codePointBeforeI()
[all …]
DCharacterTest.java203 assertEquals('a', Character.codePointBefore("abc", 1)); in test_codePointBeforeLjava_lang_CharSequenceI()
204 assertEquals('b', Character.codePointBefore("abc", 2)); in test_codePointBeforeLjava_lang_CharSequenceI()
205 assertEquals('c', Character.codePointBefore("abc", 3)); in test_codePointBeforeLjava_lang_CharSequenceI()
206 assertEquals(0x10000, Character.codePointBefore("\uD800\uDC00", 2)); in test_codePointBeforeLjava_lang_CharSequenceI()
207 assertEquals('\uD800', Character.codePointBefore("\uD800\uDC00", 1)); in test_codePointBeforeLjava_lang_CharSequenceI()
210 Character.codePointBefore((CharSequence) null, 0); in test_codePointBeforeLjava_lang_CharSequenceI()
216 Character.codePointBefore("abc", 0); in test_codePointBeforeLjava_lang_CharSequenceI()
222 Character.codePointBefore("abc", 4); in test_codePointBeforeLjava_lang_CharSequenceI()
229 assertEquals('a', Character.codePointBefore("abc".toCharArray(), 1)); in test_codePointBefore$CI()
230 assertEquals('b', Character.codePointBefore("abc".toCharArray(), 2)); in test_codePointBefore$CI()
[all …]
DStringBufferTest.java388 assertEquals('a', sb.codePointBefore(1)); in test_codePointBeforeI()
389 assertEquals('b', sb.codePointBefore(2)); in test_codePointBeforeI()
390 assertEquals('c', sb.codePointBefore(3)); in test_codePointBeforeI()
393 assertEquals(0x10000, sb.codePointBefore(2)); in test_codePointBeforeI()
394 assertEquals('\uD800', sb.codePointBefore(1)); in test_codePointBeforeI()
397 sb.codePointBefore(0); in test_codePointBeforeI()
404 sb.codePointBefore(-1); in test_codePointBeforeI()
411 sb.codePointBefore(sb.length() + 1); in test_codePointBeforeI()
DStringBuilderTest.java464 assertEquals('a', sb.codePointBefore(1)); in test_codePointBeforeI()
465 assertEquals('b', sb.codePointBefore(2)); in test_codePointBeforeI()
466 assertEquals('c', sb.codePointBefore(3)); in test_codePointBeforeI()
469 assertEquals(0x10000, sb.codePointBefore(2)); in test_codePointBeforeI()
470 assertEquals('\uD800', sb.codePointBefore(1)); in test_codePointBeforeI()
476 sb.codePointBefore(0); in test_codePointBeforeI()
483 sb.codePointBefore(-1); in test_codePointBeforeI()
490 sb.codePointBefore(sb.length() + 1); in test_codePointBeforeI()
/libcore/ojluni/src/main/java/java/lang/
DStringBuffer.java218 public synchronized int codePointBefore(int index) { in codePointBefore() method in StringBuffer
219 return super.codePointBefore(index); in codePointBefore()
DString.java673 public int codePointBefore(int index) { in codePointBefore() method in String
679 return Character.codePointBefore(this, index); in codePointBefore()
DAbstractStringBuilder.java290 public int codePointBefore(int index) { in codePointBefore() method in AbstractStringBuilder
/libcore/ojluni/annotations/hiddenapi/java/lang/
DAbstractStringBuilder.java81 public int codePointBefore(int index) { in codePointBefore() method in AbstractStringBuilder
DCharacter.java119 public static int codePointBefore(java.lang.CharSequence seq, int index) { in codePointBefore() method in Character
123 public static int codePointBefore(char[] a, int index) { in codePointBefore() method in Character
127 public static int codePointBefore(char[] a, int index, int start) { in codePointBefore() method in Character
DString.java121 public int codePointBefore(int index) { in codePointBefore() method in String
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DStringBuffer.annotated.java55 public synchronized int codePointBefore(int index) { throw new RuntimeException("Stub!"); } in codePointBefore() method in StringBuffer
DStringBuilder.annotated.java134 public int codePointBefore(int index) { throw new RuntimeException("Stub!"); } in codePointBefore() method in StringBuilder
DCharacter.annotated.java75 public static int codePointBefore(@libcore.util.NonNull java.lang.CharSequence seq, int index) { th… in codePointBefore() method in Character
77 public static int codePointBefore(char[] a, int index) { throw new RuntimeException("Stub!"); } in codePointBefore() method in Character
79 public static int codePointBefore(char[] a, int index, int start) { throw new RuntimeException("Stu… in codePointBefore() method in Character
DString.annotated.java80 public int codePointBefore(int index) { throw new RuntimeException("Stub!"); } in codePointBefore() method in String