Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/method/
DWordIterator.java318 public boolean isAfterPunctuation(int offset) { in isAfterPunctuation() method in WordIterator
364 return isOnPunctuation(offset) && !isAfterPunctuation(offset); in isPunctuationStartBoundary()
368 return !isOnPunctuation(offset) && isAfterPunctuation(offset); in isPunctuationEndBoundary()
/frameworks/base/core/tests/coretests/src/android/text/method/
DWordIteratorTest.java615 assertFalse(wordIterator.isAfterPunctuation(text.indexOf('a'))); in testIsAfterPunctuation()
616 assertFalse(wordIterator.isAfterPunctuation(text.indexOf('!'))); in testIsAfterPunctuation()
617 assertTrue(wordIterator.isAfterPunctuation(text.indexOf('?'))); in testIsAfterPunctuation()
618 assertTrue(wordIterator.isAfterPunctuation(text.indexOf('?') + 1)); in testIsAfterPunctuation()
619 assertFalse(wordIterator.isAfterPunctuation(text.indexOf('d'))); in testIsAfterPunctuation()
621 assertFalse(wordIterator.isAfterPunctuation(BreakIterator.DONE)); in testIsAfterPunctuation()
622 assertFalse(wordIterator.isAfterPunctuation(text.length() + 1)); in testIsAfterPunctuation()
/frameworks/base/core/java/android/widget/
DEditor.java910 if (getWordIteratorWithText().isAfterPunctuation(retOffset)) { in getWordEnd()