Searched refs:WORD_ITERATOR (Results 1 – 1 of 1) sorted by relevance
671 private static final BreakIterator WORD_ITERATOR = BreakIterator.getWordInstance(); field in TextClassifier.Utils721 synchronized (WORD_ITERATOR) { in getSubString()722 WORD_ITERATOR.setText(text); in getSubString()723 iterStart = WORD_ITERATOR.isBoundary(iterStart) in getSubString()724 ? iterStart : Math.max(0, WORD_ITERATOR.preceding(iterStart)); in getSubString()725 iterEnd = WORD_ITERATOR.isBoundary(iterEnd) in getSubString()726 ? iterEnd : Math.max(iterEnd, WORD_ITERATOR.following(iterEnd)); in getSubString()727 WORD_ITERATOR.setText(""); in getSubString()