Home | History | Annotate | Download | only in common

Lines Matching refs:offset

36  * filters.  Matches a single code point at offset (either one or
40 int32_t& offset,
44 if (offset < limit &&
45 contains(c = text.char32At(offset))) {
46 offset += UTF_CHAR_LENGTH(c);
49 if (offset > limit &&
50 contains(c = text.char32At(offset))) {
51 // Backup offset by 1, unless the preceding character is a
52 // surrogate pair -- then backup by 2 (keep offset pointing at
54 --offset;
55 if (offset >= 0) {
56 offset -= UTF_CHAR_LENGTH(text.char32At(offset)) - 1;
60 if (incremental && offset == limit) {