Lines Matching refs:offset

392         int offset = HEADER_LENGTH;
393 for (int i = 0; i < stateTableLength; i++, offset+=2) {
394 stateTable[i] = BreakIterator.getShort(buffer, offset);
399 for (int i = 0; i < backwardsStateTableLength; i++, offset+=2) {
400 backwardsStateTable[i] = BreakIterator.getShort(buffer, offset);
405 for (int i = 0; i < endStatesLength; i++, offset++) {
406 endStates[i] = buffer[offset] == 1;
411 for (int i = 0; i < lookaheadStatesLength; i++, offset++) {
412 lookaheadStates[i] = buffer[offset] == 1;
417 for (int i = 0; i < BMP_INDICES_LENGTH; i++, offset+=2) {
418 temp1[i] = BreakIterator.getShort(buffer, offset);
421 System.arraycopy(buffer, offset, temp2, 0, BMPdataLength);
422 offset += BMPdataLength;
427 for (int i = 0; i < nonBMPdataLength; i++, offset+=4) {
428 temp3[i] = BreakIterator.getInt(buffer, offset);
435 System.arraycopy(buffer, offset, additionalData, 0, additionalDataLength);
459 int offset = 0;
470 for (int i = 0; i < LABEL_LENGTH; i++, offset++) {
471 if (buf[offset] != LABEL[offset]) {
478 if (buf[offset] != supportedVersion) {
479 throw new MissingResourceException("Unsupported version(" + buf[offset] + ")",
484 len = BreakIterator.getInt(buf, ++offset);
570 * (i.e., the CharacterIterator's starting offset).
571 * @return The offset of the beginning of the text.
582 * (i.e., the CharacterIterator's ending offset).
583 * @return The text's past-the-end offset.
588 // I'm not sure why, but t.last() returns the offset of the last character,
589 // rather than the past-the-end offset
600 * @return The character offset of the boundary position n boundaries away from
747 * Throw IllegalArgumentException unless begin <= offset < end.
749 protected static final void checkOffset(int offset, CharacterIterator text) {
750 if (offset < text.getBeginIndex() || offset > text.getEndIndex()) {
751 throw new IllegalArgumentException("offset out of bounds");
758 * @offset The position from which to begin searching for a break position.
761 public int following(int offset) {
764 checkOffset(offset, text);
769 text.setIndex(offset);
770 if (offset == text.getBeginIndex()) {
783 if (result >= offset || result <= BreakIterator.DONE) {
791 while (result != BreakIterator.DONE && result <= offset) {
801 * @offset The position to begin searching for a break from.
804 public int preceding(int offset) {
809 checkOffset(offset, text);
810 text.setIndex(offset);
817 * or after "offset".
818 * @param offset the offset to check.
819 * @return True if "offset" is a boundary position.
821 public boolean isBoundary(int offset) {
823 checkOffset(offset, text);
824 if (offset == text.getBeginIndex()) {
832 return following(offset - 1) == offset;