Home
last modified time | relevance | path

Searched refs:codePointBefore (Results 1 – 25 of 25) 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.java204 assertEquals('a', Character.codePointBefore("abc", 1)); in test_codePointBeforeLjava_lang_CharSequenceI()
205 assertEquals('b', Character.codePointBefore("abc", 2)); in test_codePointBeforeLjava_lang_CharSequenceI()
206 assertEquals('c', Character.codePointBefore("abc", 3)); in test_codePointBeforeLjava_lang_CharSequenceI()
207 assertEquals(0x10000, Character.codePointBefore("\uD800\uDC00", 2)); in test_codePointBeforeLjava_lang_CharSequenceI()
208 assertEquals('\uD800', Character.codePointBefore("\uD800\uDC00", 1)); in test_codePointBeforeLjava_lang_CharSequenceI()
211 Character.codePointBefore((CharSequence) null, 0); in test_codePointBeforeLjava_lang_CharSequenceI()
217 Character.codePointBefore("abc", 0); in test_codePointBeforeLjava_lang_CharSequenceI()
223 Character.codePointBefore("abc", 4); in test_codePointBeforeLjava_lang_CharSequenceI()
230 assertEquals('a', Character.codePointBefore("abc".toCharArray(), 1)); in test_codePointBefore$CI()
231 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/test/java/lang/StringBuilder/
DCompactStringBuilder.java224 assertEquals(new StringBuilder(ORIGIN).codePointBefore(2), in testCompactStringForSupplementaryCodePoint()
269 assertEquals(new StringBuilder(ORIGIN).codePointBefore(3), in testCompactStringForSupplementaryCodePointMixed1()
271 assertEquals(new StringBuilder(ORIGIN).codePointBefore(2), '\uD801'); in testCompactStringForSupplementaryCodePointMixed1()
272 assertEquals(new StringBuilder(ORIGIN).codePointBefore(1), 'A'); in testCompactStringForSupplementaryCodePointMixed1()
300 assertEquals(new StringBuilder(ORIGIN).codePointBefore(3), in testCompactStringForSupplementaryCodePointMixed2()
302 assertEquals(new StringBuilder(ORIGIN).codePointBefore(2), in testCompactStringForSupplementaryCodePointMixed2()
304 assertEquals(new StringBuilder(ORIGIN).codePointBefore(1), '\uD801'); in testCompactStringForSupplementaryCodePointMixed2()
331 assertEquals(new StringBuilder(ORIGIN).codePointBefore(1), '\uD801'); in testCompactStringForSupplementaryCodePointMixed3()
332 assertEquals(new StringBuilder(ORIGIN).codePointBefore(2), 'A'); in testCompactStringForSupplementaryCodePointMixed3()
333 assertEquals(new StringBuilder(ORIGIN).codePointBefore(3), '\uDC00'); in testCompactStringForSupplementaryCodePointMixed3()
[all …]
DSupplementary.java278 int cp = sb.codePointBefore(j+1); in test6()
333 int c = isAt ? sb.codePointAt(index) : sb.codePointBefore(index); in testCodePoint()
344 int c = isAt ? sb.codePointAt(index) : sb.codePointBefore(index); in testCodePoint()
/libcore/ojluni/src/test/java/lang/StringBuffer/
DCompactStringBuffer.java223 assertEquals(new StringBuffer(ORIGIN).codePointBefore(2), in testCompactStringForSupplementaryCodePoint()
268 assertEquals(new StringBuffer(ORIGIN).codePointBefore(3), in testCompactStringForSupplementaryCodePointMixed1()
270 assertEquals(new StringBuffer(ORIGIN).codePointBefore(2), '\uD801'); in testCompactStringForSupplementaryCodePointMixed1()
271 assertEquals(new StringBuffer(ORIGIN).codePointBefore(1), 'A'); in testCompactStringForSupplementaryCodePointMixed1()
298 assertEquals(new StringBuffer(ORIGIN).codePointBefore(3), in testCompactStringForSupplementaryCodePointMixed2()
300 assertEquals(new StringBuffer(ORIGIN).codePointBefore(2), in testCompactStringForSupplementaryCodePointMixed2()
302 assertEquals(new StringBuffer(ORIGIN).codePointBefore(1), '\uD801'); in testCompactStringForSupplementaryCodePointMixed2()
329 assertEquals(new StringBuffer(ORIGIN).codePointBefore(1), '\uD801'); in testCompactStringForSupplementaryCodePointMixed3()
330 assertEquals(new StringBuffer(ORIGIN).codePointBefore(2), 'A'); in testCompactStringForSupplementaryCodePointMixed3()
331 assertEquals(new StringBuffer(ORIGIN).codePointBefore(3), '\uDC00'); in testCompactStringForSupplementaryCodePointMixed3()
[all …]
DSupplementary.java276 int cp = sb.codePointBefore(j+1); in test6()
318 int c = isAt ? sb.codePointAt(index) : sb.codePointBefore(index); in testCodePoint()
329 int c = isAt ? sb.codePointAt(index) : sb.codePointBefore(index); in testCodePoint()
/libcore/ojluni/src/test/java/lang/Character/
DSupplementary.java274 ch = Character.codePointBefore(cs, i); in test02()
319 ch = Character.codePointBefore(a, i); in test03()
325 int x = Character.codePointBefore(a, i, i-1); in test03()
419 int cp = Character.codePointBefore(a, i + 1); in test05()
536 c = Character.codePointBefore(str, i); in testCodePoint()
567 c = Character.codePointBefore(a, i); in testCodePoint()
778 : Character.codePointBefore(cs, index); in callCodePoint()
793 : Character.codePointBefore(a, index); in callCodePoint()
808 : Character.codePointBefore(a, index, limit); in callCodePoint()
/libcore/ojluni/src/test/java/lang/String/CompactString/
DCodePointBefore.java71 str.codePointBefore(i + 1), in testCodePointBefore()
/libcore/ojluni/src/main/java/java/lang/
DStringBuffer.java263 public synchronized int codePointBefore(int index) { in codePointBefore() method in StringBuffer
264 return super.codePointBefore(index); in codePointBefore()
DStringUTF16.java123 private static int codePointBefore(byte[] value, int index, boolean checked) {
142 public static int codePointBefore(byte[] value, int index) {
143 return codePointBefore(value, index, false /* unchecked */);
952 int codepoint = value.codePointBefore(right);
1539 return codePointBefore(val, index, true /* checked */);
DString.java923 public int codePointBefore(int index) { in codePointBefore() method in String
935 return Character.codePointBefore(this, index); in codePointBefore()
DStringLatin1.java62 public static int codePointBefore(byte[] value, int index) { in codePointBefore() method in StringLatin1
DAbstractStringBuilder.java376 public int codePointBefore(int index) { in codePointBefore() method in AbstractStringBuilder
DCharacter.java9476 public static int codePointBefore(CharSequence seq, int index) { in codePointBefore() method in Character
9508 public static int codePointBefore(char[] a, int index) { in codePointBefore() method in Character
9539 public static int codePointBefore(char[] a, int index, int start) { in codePointBefore() method in Character
/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.java82 public int codePointBefore(int index) { throw new RuntimeException("Stub!"); } in codePointBefore() method in String
/libcore/ojluni/annotations/flagged_api/java/lang/
DCharacter.annotated.java45 public static int codePointBefore(char[] a, int index) { throw new RuntimeException("Stub!"); } in codePointBefore() method in Character
47 public static int codePointBefore(char[] a, int index, int start) { throw new RuntimeException("Stu… in codePointBefore() method in Character
49 public static int codePointBefore(java.lang.CharSequence seq, int index) { throw new RuntimeExcepti… in codePointBefore() method in Character
/libcore/api/
Dcurrent.txt2529 method public static int codePointBefore(@NonNull CharSequence, int);
2530 method public static int codePointBefore(char[], int);
2531 method public static int codePointBefore(char[], int, int);
4255 method public int codePointBefore(int);
4356 method public int codePointBefore(int);
4416 method public int codePointBefore(int);