Lines Matching refs:words
1072 BreakIterator words = BreakIterator.getWordInstance();
1073 words.setText(s);
1074 int end = words.following(index);
1075 return s.substring(words.previous(), end);
1094 * The method assumes that s is the text assigned to words.
1096 private int findWordLimit(int index, BreakIterator words, boolean direction,
1103 int last = (direction == NEXT) ? words.following(index)
1104 : words.preceding(index);
1105 int current = (direction == NEXT) ? words.next()
1106 : words.previous();
1114 current = (direction == NEXT) ? words.next()
1115 : words.previous();
1141 BreakIterator words = BreakIterator.getWordInstance();
1142 words.setText(s);
1143 int start = findWordLimit(index, words, NEXT, s);
1147 int end = words.following(start);
1194 BreakIterator words = BreakIterator.getWordInstance();
1195 words.setText(s);
1196 int end = findWordLimit(index, words, PREVIOUS, s);
1200 int start = words.preceding(end);