Searched refs:WORD_ITERATOR (Results 1 – 1 of 1) sorted by relevance
655 private static final BreakIterator WORD_ITERATOR = BreakIterator.getWordInstance(); field in TextClassifier.Utils703 synchronized (WORD_ITERATOR) { in getSubString()704 WORD_ITERATOR.setText(text); in getSubString()705 iterStart = WORD_ITERATOR.isBoundary(iterStart) in getSubString()706 ? iterStart : Math.max(0, WORD_ITERATOR.preceding(iterStart)); in getSubString()707 iterEnd = WORD_ITERATOR.isBoundary(iterEnd) in getSubString()708 ? iterEnd : Math.max(iterEnd, WORD_ITERATOR.following(iterEnd)); in getSubString()709 WORD_ITERATOR.setText(""); in getSubString()