Searched refs:isOnPunctuation (Results 1 – 3 of 3) sorted by relevance
446 assertFalse(wordIterator.isOnPunctuation(text.indexOf('a'))); in testIsOnPunctuation()447 assertTrue(wordIterator.isOnPunctuation(text.indexOf('!'))); in testIsOnPunctuation()448 assertTrue(wordIterator.isOnPunctuation(text.indexOf('?'))); in testIsOnPunctuation()449 assertFalse(wordIterator.isOnPunctuation(text.indexOf('?') + 1)); in testIsOnPunctuation()450 assertTrue(wordIterator.isOnPunctuation(text.indexOf(')'))); in testIsOnPunctuation()451 assertFalse(wordIterator.isOnPunctuation(text.indexOf(')') + 1)); in testIsOnPunctuation()452 assertFalse(wordIterator.isOnPunctuation(text.indexOf('d'))); in testIsOnPunctuation()454 assertFalse(wordIterator.isOnPunctuation(BreakIterator.DONE)); in testIsOnPunctuation()455 assertFalse(wordIterator.isOnPunctuation(text.length())); in testIsOnPunctuation()456 assertFalse(wordIterator.isOnPunctuation(text.length() + 1)); in testIsOnPunctuation()
334 public boolean isOnPunctuation(int offset) { in isOnPunctuation() method in WordIterator344 return isOnPunctuation(offset) && !isAfterPunctuation(offset); in isPunctuationStartBoundary()348 return !isOnPunctuation(offset) && isAfterPunctuation(offset); in isPunctuationEndBoundary()
764 if (getWordIteratorWithText().isOnPunctuation(retOffset)) { in getWordStart()