Searched refs:isOnPunctuation (Results 1 – 3 of 3) sorted by relevance
516 assertFalse(wordIterator.isOnPunctuation(text.indexOf('a'))); in testIsOnPunctuation()517 assertTrue(wordIterator.isOnPunctuation(text.indexOf('!'))); in testIsOnPunctuation()518 assertTrue(wordIterator.isOnPunctuation(text.indexOf('?'))); in testIsOnPunctuation()519 assertFalse(wordIterator.isOnPunctuation(text.indexOf('?') + 1)); in testIsOnPunctuation()520 assertTrue(wordIterator.isOnPunctuation(text.indexOf(')'))); in testIsOnPunctuation()521 assertFalse(wordIterator.isOnPunctuation(text.indexOf(')') + 1)); in testIsOnPunctuation()522 assertFalse(wordIterator.isOnPunctuation(text.indexOf('d'))); in testIsOnPunctuation()524 assertFalse(wordIterator.isOnPunctuation(BreakIterator.DONE)); in testIsOnPunctuation()525 assertFalse(wordIterator.isOnPunctuation(text.length())); in testIsOnPunctuation()526 assertFalse(wordIterator.isOnPunctuation(text.length() + 1)); in testIsOnPunctuation()
318 public boolean isOnPunctuation(int offset) { in isOnPunctuation() method in WordIterator348 return isOnPunctuation(offset) && !isAfterPunctuation(offset); in isPunctuationStartBoundary()352 return !isOnPunctuation(offset) && isAfterPunctuation(offset); in isPunctuationEndBoundary()
787 if (getWordIteratorWithText().isOnPunctuation(retOffset)) { in getWordStart()