Lines Matching refs:bi

122 		if(bi) { 													\
123 ubrk_close (bi); \
138 UBreakIterator* bi = NULL; in grapheme_strpos_utf16() local
157 bi = grapheme_get_break_iterator(u_break_iterator_buffer, &status ); in grapheme_strpos_utf16()
160 ubrk_setText(bi, uhaystack, uhaystack_len, &status); in grapheme_strpos_utf16()
164 src = usearch_open(uneedle, uneedle_len, uhaystack, uhaystack_len, "", bi, &status); in grapheme_strpos_utf16()
176 offset_pos = grapheme_get_haystack_offset(bi, offset); in grapheme_strpos_utf16()
210 if(char_pos != USEARCH_DONE && ubrk_isBoundary(bi, char_pos)) { in grapheme_strpos_utf16()
211 ret_pos = grapheme_count_graphemes(bi, uhaystack,char_pos); in grapheme_strpos_utf16()
225 ubrk_close (bi); in grapheme_strpos_utf16()
253 UBreakIterator* bi; in grapheme_split_string() local
255 bi = grapheme_get_break_iterator((void*)u_break_iterator_buffer, &status ); in grapheme_split_string()
261 ubrk_setText(bi, text, text_length, &status); in grapheme_split_string()
267 pos = ubrk_next(bi); in grapheme_split_string()
279 ubrk_close(bi); in grapheme_split_string()
286 int32_t grapheme_count_graphemes(UBreakIterator *bi, UChar *string, int32_t string_len) in grapheme_count_graphemes() argument
292 ubrk_setText(bi, string, string_len, &status); in grapheme_count_graphemes()
296 pos = ubrk_next(bi); in grapheme_count_graphemes()
310 int32_t grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset) in grapheme_get_haystack_offset() argument
313 int32_t (*iter_op)(UBreakIterator* bi); in grapheme_get_haystack_offset()
322 ubrk_last(bi); /* one past the end */ in grapheme_get_haystack_offset()
334 pos = iter_op(bi); in grapheme_get_haystack_offset()