Lines Matching refs:offset
131 … int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int32_t *puchar_p… in grapheme_strpos_utf16() argument
174 if(offset != 0) { in grapheme_strpos_utf16()
175 offset_pos = grapheme_get_haystack_offset(bi, offset); in grapheme_strpos_utf16()
296 int grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset) in grapheme_get_haystack_offset() argument
302 if ( 0 == offset ) { in grapheme_get_haystack_offset()
306 if ( offset < 0 ) { in grapheme_get_haystack_offset()
318 while ( pos != UBRK_DONE && offset != 0 ) { in grapheme_get_haystack_offset()
323 offset += iter_incr; in grapheme_get_haystack_offset()
327 if ( offset != 0 ) { in grapheme_get_haystack_offset()
337 …ed char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset) in grapheme_strrpos_ascii() argument
341 if (offset >= 0) { in grapheme_strrpos_ascii()
342 p = haystack + offset; in grapheme_strrpos_ascii()
346 if (needle_len > -offset) { in grapheme_strrpos_ascii()
349 e = haystack + haystack_len + offset; in grapheme_strrpos_ascii()
357 return (e - p + (offset > 0 ? offset : 0)); in grapheme_strrpos_ascii()
366 return (e - p + (offset > 0 ? offset : 0)); in grapheme_strrpos_ascii()