Lines Matching refs:offset
37 * filters. Matches a single code point at offset (either one or
41 int32_t& offset,
45 if (offset < limit &&
46 contains(c = text.char32At(offset))) {
47 offset += U16_LENGTH(c);
50 if (offset > limit &&
51 contains(c = text.char32At(offset))) {
52 // Backup offset by 1, unless the preceding character is a
53 // surrogate pair -- then backup by 2 (keep offset pointing at
55 --offset;
56 if (offset >= 0) {
57 offset -= U16_LENGTH(text.char32At(offset)) - 1;
61 if (incremental && offset == limit) {