@Override public int next() { fIndex= following(fIndex); return fIndex; }
public int next() { fIndex= following(fIndex); return fIndex; }
@Override public int next() { fIndex= following(fIndex); return fIndex; }
@Override public boolean isBoundary(int offset) { if (offset == getText().getBeginIndex()) return true; else return following(offset - 1) == offset; }
@Override public boolean isBoundary(int offset) { if (offset == getText().getBeginIndex()) return true; else return following(offset - 1) == offset; }
public boolean isBoundary(int offset) { if (offset == getText().getBeginIndex()) return true; else return following(offset - 1) == offset; }
public int preceding(int offset) { if (offset == getText().getBeginIndex()) return DONE; if (isBoundary(offset - 1)) return offset - 1; int previous= offset - 1; do { previous= fIterator.preceding(previous); } while (!isBoundary(previous)); int last= DONE; while (previous < offset) { last= previous; previous= following(previous); } return last; }
@Override public int preceding(int offset) { if (offset == getText().getBeginIndex()) return DONE; if (isBoundary(offset - 1)) return offset - 1; int previous= offset - 1; do { previous= fIterator.preceding(previous); } while (!isBoundary(previous)); int last= DONE; while (previous < offset) { last= previous; previous= following(previous); } return last; }
@Override public int preceding(int offset) { if (offset == getText().getBeginIndex()) return DONE; if (isBoundary(offset - 1)) return offset - 1; int previous= offset - 1; do { previous= fIterator.preceding(previous); } while (!isBoundary(previous)); int last= DONE; while (previous < offset) { last= previous; previous= following(previous); } return last; }