Lines Matching refs:words

622      * Uses BreakIterator.getWordInstance() to actually get the words.
641 BreakIterator words = BreakIterator.getWordInstance(c.getLocale());
642 words.setText(seg);
644 if(wordPosition >= words.last()) {
645 wordPosition = words.last() - 1;
647 words.following(wordPosition);
648 offs = lineStart + words.previous() - seg.offset;
656 * Uses BreakIterator.getWordInstance() to actually get the words.
675 BreakIterator words = BreakIterator.getWordInstance(c.getLocale());
676 words.setText(seg);
678 if(wordPosition >= words.last()) {
679 wordPosition = words.last() - 1;
681 offs = lineStart + words.following(wordPosition) - seg.offset;
689 * Uses BreakIterator.getWordInstance() to actually get the words.
715 * if there are no more words in the element.
719 throw new BadLocationException("No more words", offs);
725 throw new BadLocationException("No more words", offs);
729 BreakIterator words = BreakIterator.getWordInstance(c.getLocale());
730 words.setText(seg);
731 if ((first && (words.first() == (seg.offset + offs - lineStart))) &&
732 (! Character.isWhitespace(seg.array[words.first()]))) {
736 int wordPosition = words.following(seg.offset + offs - lineStart);
739 // there are no more words on this line.
753 wordPosition = words.next();
767 * Uses BreakIterator.getWordInstance() to actually get the words.
793 * if there are no more words in the element.
797 throw new BadLocationException("No more words", offs);
803 throw new BadLocationException("No more words", offs);
807 BreakIterator words = BreakIterator.getWordInstance(c.getLocale());
808 words.setText(seg);
809 if (words.following(seg.offset + offs - lineStart) == BreakIterator.DONE) {
810 words.last();
812 int wordPosition = words.previous();
814 wordPosition = words.previous();
818 // there are no more words on this line.
832 wordPosition = words.previous();