Home
last modified time | relevance | path

Searched refs:getPunctuationEnd (Results 1 – 3 of 3) sorted by relevance

/aosp12/frameworks/base/core/tests/coretests/src/android/text/method/
H A DWordIteratorTest.java584 wordIterator.getPunctuationEnd(BreakIterator.DONE); in testGetPunctuationEnd()
589 wordIterator.getPunctuationEnd(-2); in testGetPunctuationEnd()
594 wordIterator.getPunctuationEnd(text.length() + 1); in testGetPunctuationEnd()
600 assertEquals(text.indexOf('?') + 1, wordIterator.getPunctuationEnd(text.indexOf('a'))); in testGetPunctuationEnd()
601 assertEquals(text.indexOf('?') + 1, wordIterator.getPunctuationEnd(text.indexOf('?') + 1)); in testGetPunctuationEnd()
602 assertEquals(text.indexOf('(') + 1, wordIterator.getPunctuationEnd(text.indexOf('('))); in testGetPunctuationEnd()
603 assertEquals(text.indexOf(')') + 1, wordIterator.getPunctuationEnd(text.indexOf('(') + 2)); in testGetPunctuationEnd()
604 assertEquals(text.indexOf(')') + 1, wordIterator.getPunctuationEnd(text.indexOf(')') + 1)); in testGetPunctuationEnd()
605 assertEquals(BreakIterator.DONE, wordIterator.getPunctuationEnd(text.indexOf('d'))); in testGetPunctuationEnd()
606 assertEquals(BreakIterator.DONE, wordIterator.getPunctuationEnd(text.length())); in testGetPunctuationEnd()
/aosp12/frameworks/base/core/java/android/text/method/
H A DWordIterator.java302 public int getPunctuationEnd(int offset) { in getPunctuationEnd() method in WordIterator
/aosp12/frameworks/base/core/java/android/widget/
H A DEditor.java1121 retOffset = getWordIteratorWithText().getPunctuationEnd(offset); in getWordEnd()