Home | History | Annotate | Download | only in text

Lines Matching refs:offset

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