Lines Matching refs:bi
122 if(bi) { \
123 ubrk_close (bi); \
138 UBreakIterator* bi = NULL; in grapheme_strpos_utf16() local
158 bi = grapheme_get_break_iterator(u_break_iterator_buffer, &status ); in grapheme_strpos_utf16()
161 ubrk_setText(bi, uhaystack, uhaystack_len, &status); in grapheme_strpos_utf16()
165 src = usearch_open(uneedle, uneedle_len, uhaystack, uhaystack_len, "", bi, &status); in grapheme_strpos_utf16()
177 offset_pos = grapheme_get_haystack_offset(bi, offset); in grapheme_strpos_utf16()
198 if(char_pos != USEARCH_DONE && ubrk_isBoundary(bi, char_pos)) { in grapheme_strpos_utf16()
199 ret_pos = grapheme_count_graphemes(bi, uhaystack,char_pos); in grapheme_strpos_utf16()
213 ubrk_close (bi); in grapheme_strpos_utf16()
241 UBreakIterator* bi; in grapheme_split_string() local
243 bi = grapheme_get_break_iterator((void*)u_break_iterator_buffer, &status ); in grapheme_split_string()
249 ubrk_setText(bi, text, text_length, &status); in grapheme_split_string()
255 pos = ubrk_next(bi); in grapheme_split_string()
267 ubrk_close(bi); in grapheme_split_string()
274 int32_t grapheme_count_graphemes(UBreakIterator *bi, UChar *string, int32_t string_len) in grapheme_count_graphemes() argument
280 ubrk_setText(bi, string, string_len, &status); in grapheme_count_graphemes()
284 pos = ubrk_next(bi); in grapheme_count_graphemes()
298 int32_t grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset) in grapheme_get_haystack_offset() argument
301 int32_t (*iter_op)(UBreakIterator* bi); in grapheme_get_haystack_offset()
310 ubrk_last(bi); /* one past the end */ in grapheme_get_haystack_offset()
322 pos = iter_op(bi); in grapheme_get_haystack_offset()