Home | History | Annotate | Download | only in text

Lines Matching refs:offset

34      * filters.  Matches a single 16-bit code unit at offset.
39 int[] offset,
43 if (offset[0] < limit &&
44 contains(c = text.char32At(offset[0]))) {
45 offset[0] += UTF16.getCharCount(c);
48 if (offset[0] > limit && contains(text.char32At(offset[0]))) {
49 // Backup offset by 1, unless the preceding character is a
50 // surrogate pair -- then backup by 2 (keep offset pointing at
52 --offset[0];
53 if (offset[0] >= 0) {
54 offset[0] -= UTF16.getCharCount(text.char32At(offset[0])) - 1;
58 if (incremental && offset[0] == limit) {