Searched refs:isOnPunctuation (Results 1 – 3 of 3) sorted by relevance
631 assertFalse(wordIterator.isOnPunctuation(text.indexOf('a'))); in testIsOnPunctuation()632 assertTrue(wordIterator.isOnPunctuation(text.indexOf('!'))); in testIsOnPunctuation()633 assertTrue(wordIterator.isOnPunctuation(text.indexOf('?'))); in testIsOnPunctuation()634 assertFalse(wordIterator.isOnPunctuation(text.indexOf('?') + 1)); in testIsOnPunctuation()635 assertTrue(wordIterator.isOnPunctuation(text.indexOf(')'))); in testIsOnPunctuation()636 assertFalse(wordIterator.isOnPunctuation(text.indexOf(')') + 1)); in testIsOnPunctuation()637 assertFalse(wordIterator.isOnPunctuation(text.indexOf('d'))); in testIsOnPunctuation()639 assertFalse(wordIterator.isOnPunctuation(BreakIterator.DONE)); in testIsOnPunctuation()640 assertFalse(wordIterator.isOnPunctuation(text.length())); in testIsOnPunctuation()641 assertFalse(wordIterator.isOnPunctuation(text.length() + 1)); in testIsOnPunctuation()
334 public boolean isOnPunctuation(int offset) { in isOnPunctuation() method in WordIterator364 return isOnPunctuation(offset) && !isAfterPunctuation(offset); in isPunctuationStartBoundary()368 return !isOnPunctuation(offset) && isAfterPunctuation(offset); in isPunctuationEndBoundary()
895 if (getWordIteratorWithText().isOnPunctuation(retOffset)) { in getWordStart()