Lines Matching refs:bi
104 UBreakIterator* bi = NULL; in grapheme_strpos_utf16() local
123 bi = grapheme_get_break_iterator(u_break_iterator_buffer, &status ); in grapheme_strpos_utf16()
126 ubrk_setText(bi, uhaystack, uhaystack_len, &status); in grapheme_strpos_utf16()
130 offset_pos = grapheme_get_haystack_offset(bi, offset); in grapheme_strpos_utf16()
141 src = usearch_open(uneedle, uneedle_len, uhaystack, uhaystack_len, "", bi, &status); in grapheme_strpos_utf16()
153 offset_pos = grapheme_get_haystack_offset(bi, offset); 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()
204 if (bi) { in grapheme_strpos_utf16()
205 ubrk_close (bi); in grapheme_strpos_utf16()
236 UBreakIterator* bi; in grapheme_split_string() local
238 bi = grapheme_get_break_iterator((void*)u_break_iterator_buffer, &status ); in grapheme_split_string()
244 ubrk_setText(bi, text, text_length, &status); in grapheme_split_string()
250 pos = ubrk_next(bi); in grapheme_split_string()
262 ubrk_close(bi); in grapheme_split_string()
269 int32_t grapheme_count_graphemes(UBreakIterator *bi, UChar *string, int32_t string_len) in grapheme_count_graphemes() argument
275 ubrk_setText(bi, string, string_len, &status); in grapheme_count_graphemes()
279 pos = ubrk_next(bi); in grapheme_count_graphemes()
293 int32_t grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset) in grapheme_get_haystack_offset() argument
296 int32_t (*iter_op)(UBreakIterator* bi); in grapheme_get_haystack_offset()
305 ubrk_last(bi); /* one past the end */ in grapheme_get_haystack_offset()
317 pos = iter_op(bi); in grapheme_get_haystack_offset()