Lines Matching refs:offset
52 * Return offset of previous word break. It is either < offset or == 0.
55 const uint16_t* chars, size_t offset, size_t len) {
56 if (offset == 0) return 0;
57 if (offset > len) offset = len;
58 if (isWordBreakBefore(chars[offset - 1])) {
59 return offset - 1;
61 for (size_t i = offset - 1; i > 0; i--) {
70 * Return offset of next word break. It is either > offset or == len.
73 const uint16_t* chars, size_t offset, size_t len) {
74 if (offset >= len) return len;
75 if (isWordBreakAfter(chars[offset])) {
76 return offset + 1;
78 for (size_t i = offset + 1; i < len; i++) {