Lines Matching refs:bi
120 if(bi) { \
121 ubrk_close (bi); \
136 UBreakIterator* bi = NULL; in grapheme_strpos_utf16() local
156 bi = grapheme_get_break_iterator(u_break_iterator_buffer, &status TSRMLS_CC ); in grapheme_strpos_utf16()
159 ubrk_setText(bi, uhaystack, uhaystack_len, &status); in grapheme_strpos_utf16()
163 src = usearch_open(uneedle, uneedle_len, uhaystack, uhaystack_len, "", bi, &status); in grapheme_strpos_utf16()
175 offset_pos = grapheme_get_haystack_offset(bi, offset); in grapheme_strpos_utf16()
196 if(char_pos != USEARCH_DONE && ubrk_isBoundary(bi, char_pos)) { in grapheme_strpos_utf16()
197 ret_pos = grapheme_count_graphemes(bi, uhaystack,char_pos); in grapheme_strpos_utf16()
211 ubrk_close (bi); in grapheme_strpos_utf16()
239 UBreakIterator* bi; in grapheme_split_string() local
241 bi = grapheme_get_break_iterator((void*)u_break_iterator_buffer, &status TSRMLS_CC ); in grapheme_split_string()
247 ubrk_setText(bi, text, text_length, &status); in grapheme_split_string()
253 pos = ubrk_next(bi); in grapheme_split_string()
265 ubrk_close(bi); in grapheme_split_string()
272 int32_t grapheme_count_graphemes(UBreakIterator *bi, UChar *string, int32_t string_len) in grapheme_count_graphemes() argument
278 ubrk_setText(bi, string, string_len, &status); in grapheme_count_graphemes()
282 pos = ubrk_next(bi); in grapheme_count_graphemes()
296 int grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset) in grapheme_get_haystack_offset() argument
299 int32_t (*iter_op)(UBreakIterator* bi); in grapheme_get_haystack_offset()
308 ubrk_last(bi); /* one past the end */ in grapheme_get_haystack_offset()
320 pos = iter_op(bi); in grapheme_get_haystack_offset()