Lines Matching defs:offset

328      * Returns the first boundary following the specified character offset. If the
329 * specified offset equals to the last text boundary, it returns
332 * The value returned is always greater than the offset or the value
334 * @param offset the character offset to begin scanning.
335 * @return The first boundary after the specified offset or
337 * as the offset.
338 * @exception IllegalArgumentException if the specified offset is less than
341 public abstract int following(int offset);
344 * Returns the last boundary preceding the specified character offset. If the
345 * specified offset equals to the first text boundary, it returns
348 * The value returned is always less than the offset or the value
350 * @param offset the characater offset to begin scanning.
351 * @return The last boundary before the specified offset or
353 * as the offset.
354 * @exception IllegalArgumentException if the specified offset is less than
358 public int preceding(int offset) {
362 int pos = following(offset);
363 while (pos >= offset && pos != DONE)
369 * Returns true if the specified character offset is a text boundary.
370 * @param offset the character offset to check.
371 * @return <code>true</code> if "offset" is a boundary position,
373 * @exception IllegalArgumentException if the specified offset is less than
377 public boolean isBoundary(int offset) {
380 // CharacterIterator passed to setText() may not have a begin offset
382 // knowledge, it assumes the begin offset is 0. If you subclass
386 if (offset == 0) {
389 int boundary = following(offset - 1);
393 return boundary == offset;
663 static long getLong(byte[] buf, int offset) {
664 long num = buf[offset]&0xFF;
666 num = num<<8 | (buf[offset+i]&0xFF);
671 static int getInt(byte[] buf, int offset) {
672 int num = buf[offset]&0xFF;
674 num = num<<8 | (buf[offset+i]&0xFF);
679 static short getShort(byte[] buf, int offset) {
680 short num = (short)(buf[offset]&0xFF);
681 num = (short)(num<<8 | (buf[offset+1]&0xFF));