Lines Matching defs:offset
70 size_t offset) {
77 if (offset <= start || offset >= start + count) {
80 if (U16_IS_TRAIL(buf[offset])) {
82 return !U16_IS_LEAD(buf[offset - 1]);
86 size_t offset_back = offset;
88 U16_NEXT(buf, offset, start + count, c2);
131 // Note that the offset has moved forwared 2 code units by U16_NEXT.
133 return (offset - 2 - offset_back) % 4 == 0;
181 size_t offset, MoveOpt opt) {
184 if (offset < start + count) {
185 offset++;
189 while (!isGraphemeBreak(buf, start, count, offset)) {
190 offset++;
194 if (offset > start) {
195 offset--;
199 while (!isGraphemeBreak(buf, start, count, offset)) {
200 offset--;
204 if (!isGraphemeBreak(buf, start, count, offset)) {
205 offset = (size_t)-1;
209 return offset;