Lines Matching defs:offset
41 * Return offset of previous word break. It is either < offset or == 0.
44 const uint16_t* chars, size_t offset, size_t len) {
45 if (offset == 0) return 0;
46 if (offset > len) offset = len;
47 if (isWordBreakBefore(chars[offset - 1])) {
48 return offset - 1;
50 for (size_t i = offset - 1; i > 0; i--) {
59 * Return offset of next word break. It is either > offset or == len.
62 const uint16_t* chars, size_t offset, size_t len) {
63 if (offset >= len) return len;
64 if (isWordBreakAfter(chars[offset])) {
65 return offset + 1;
67 for (size_t i = offset + 1; i < len; i++) {