Lines Matching refs:bi

102 	UBreakIterator* bi = NULL;  in grapheme_strpos_utf16()  local
121 bi = grapheme_get_break_iterator(u_break_iterator_buffer, &status ); in grapheme_strpos_utf16()
124 ubrk_setText(bi, uhaystack, uhaystack_len, &status); in grapheme_strpos_utf16()
128 offset_pos = grapheme_get_haystack_offset(bi, offset); in grapheme_strpos_utf16()
139 src = usearch_open(uneedle, uneedle_len, uhaystack, uhaystack_len, "", bi, &status); in grapheme_strpos_utf16()
151 offset_pos = grapheme_get_haystack_offset(bi, offset); in grapheme_strpos_utf16()
186 if(char_pos != USEARCH_DONE && ubrk_isBoundary(bi, char_pos)) { in grapheme_strpos_utf16()
187 ret_pos = grapheme_count_graphemes(bi, uhaystack,char_pos); in grapheme_strpos_utf16()
202 if (bi) { in grapheme_strpos_utf16()
203 ubrk_close (bi); in grapheme_strpos_utf16()
234 UBreakIterator* bi; in grapheme_split_string() local
236 bi = grapheme_get_break_iterator((void*)u_break_iterator_buffer, &status ); in grapheme_split_string()
242 ubrk_setText(bi, text, text_length, &status); in grapheme_split_string()
248 pos = ubrk_next(bi); in grapheme_split_string()
260 ubrk_close(bi); in grapheme_split_string()
267 int32_t grapheme_count_graphemes(UBreakIterator *bi, UChar *string, int32_t string_len) in grapheme_count_graphemes() argument
273 ubrk_setText(bi, string, string_len, &status); in grapheme_count_graphemes()
277 pos = ubrk_next(bi); in grapheme_count_graphemes()
291 int32_t grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset) in grapheme_get_haystack_offset() argument
294 int32_t (*iter_op)(UBreakIterator* bi); in grapheme_get_haystack_offset()
303 ubrk_last(bi); /* one past the end */ in grapheme_get_haystack_offset()
315 pos = iter_op(bi); in grapheme_get_haystack_offset()