Home | History | Annotate | Download | only in text

Lines Matching refs:offset

267      * (i.e., the CharacterIterator's starting offset).
269 * @return The offset of the beginning of the text.
277 * (i.e., the CharacterIterator's ending offset).
279 * @return The text's past-the-end offset.
292 * @return The character offset of the boundary position n boundaries away from
318 * Throw IllegalArgumentException unless begin <= offset < end.
320 protected static final void checkOffset(int offset, CharacterIterator text) {
321 if (offset < text.getBeginIndex() || offset > text.getEndIndex()) {
322 throw new IllegalArgumentException("offset out of bounds");
331 * @offset The position from which to begin searching for a break position.
333 public int following(int offset) {
335 checkOffset(offset, text);
336 return wrapped.following(offset);
344 * @offset The position to begin searching for a break from.
346 public int preceding(int offset) {
351 checkOffset(offset, text);
352 return wrapped.preceding(offset);
358 * or after "offset".
360 * @param offset the offset to check.
361 * @return True if "offset" is a boundary position.
363 public boolean isBoundary(int offset) {
365 checkOffset(offset, text);
366 return wrapped.isBoundary(offset);