Lines Matching refs:char_pos
102 int32_t uhaystack_len = 0, uneedle_len = 0, char_pos, ret_pos, offset_pos = 0; in grapheme_strpos_utf16() local
167 char_pos = usearch_last(src, &status); in grapheme_strpos_utf16()
168 if(char_pos < offset_pos) { in grapheme_strpos_utf16()
170 char_pos = USEARCH_DONE; in grapheme_strpos_utf16()
176 char_pos = usearch_next(src, &status); in grapheme_strpos_utf16()
177 if (char_pos == USEARCH_DONE || char_pos > offset_pos) { in grapheme_strpos_utf16()
178 char_pos = prev_pos; in grapheme_strpos_utf16()
181 prev_pos = char_pos; in grapheme_strpos_utf16()
185 char_pos = usearch_next(src, &status); in grapheme_strpos_utf16()
188 if(char_pos != USEARCH_DONE && ubrk_isBoundary(bi, char_pos)) { in grapheme_strpos_utf16()
189 ret_pos = grapheme_count_graphemes(bi, uhaystack,char_pos); in grapheme_strpos_utf16()
191 *puchar_pos = char_pos; in grapheme_strpos_utf16()