Lines Matching defs:text

41 package java.text;
46 import java.text.CharacterIterator;
52 * to further subdivide ranges of text beyond what is possible using just the
56 * up text as far as possible, and then contiguous ranges of letters are
63 * if the iterator passes over a chunk of text that includes two or more characters
69 * it looks for it in /com/ibm/text/resources in each directory in the classpath,
100 * leaves this range of text
143 * Sets the current iteration position to the beginning of the text.
145 * @return The offset of the beginning of the text.
155 * Sets the current iteration position to the end of the text.
157 * @return The text's past-the-end offset.
172 CharacterIterator text = getText();
178 text.setIndex(cachedBreakPositions[positionInCache]);
202 CharacterIterator text = getText();
203 checkOffset(offset, text);
225 text.setIndex(cachedBreakPositions[positionInCache]);
226 return text.getIndex();
237 CharacterIterator text = getText();
238 checkOffset(offset, text);
259 text.setIndex(cachedBreakPositions[positionInCache]);
260 return text.getIndex();
268 CharacterIterator text = getText();
279 int startPos = text.getIndex();
303 text.setIndex(cachedBreakPositions[positionInCache]);
327 * algorithm. Given the endpoints of a range of text, it uses the
334 CharacterIterator text = getText();
340 text.setIndex(startPos);
372 // combinations, the text contains an error or a word that's not in the
376 int farthestEndPoint = text.getIndex();
387 possibleBreakPositions.push(Integer.valueOf(text.getIndex()));
398 currentBreakPositions.push(Integer.valueOf(text.getIndex()));
406 else if (state == 0 || text.getIndex() >= endPos) {
409 // case there's an error in the text
410 if (text.getIndex() > farthestEndPoint) {
411 farthestEndPoint = text.getIndex();
417 // all the way through the text. Every time we pop a
435 // an error or an unknown word in the text. In this case, we start
443 text.setIndex(farthestEndPoint + 1);
451 ((Integer)(currentBreakPositions.peek())).intValue() != text.getIndex())
452 && text.getIndex() != startPos) {
453 currentBreakPositions.push(new Integer(text.getIndex()));
456 currentBreakPositions.push(new Integer(text.getIndex()));
474 text.setIndex(((Integer)currentBreakPositions.peek()).intValue());
480 if (text.getIndex() >= endPos) {