Lines Matching refs:offset
55 const uint16_t* chars, size_t offset, size_t len) { in getPrevWordBreakForCache() argument
56 if (offset == 0) return 0; in getPrevWordBreakForCache()
57 if (offset > len) offset = len; in getPrevWordBreakForCache()
58 if (isWordBreakBefore(chars[offset - 1])) { in getPrevWordBreakForCache()
59 return offset - 1; in getPrevWordBreakForCache()
61 for (size_t i = offset - 1; i > 0; i--) { in getPrevWordBreakForCache()
73 const uint16_t* chars, size_t offset, size_t len) { in getNextWordBreakForCache() argument
74 if (offset >= len) return len; in getNextWordBreakForCache()
75 if (isWordBreakAfter(chars[offset])) { in getNextWordBreakForCache()
76 return offset + 1; in getNextWordBreakForCache()
78 for (size_t i = offset + 1; i < len; i++) { in getNextWordBreakForCache()