Lines Matching refs:bi

158     UBreakIterator* bi = NULL;  in grapheme_strrpos_utf16()  local
184 bi = NULL; in grapheme_strrpos_utf16()
186 bi = grapheme_get_break_iterator(u_break_iterator_buffer, &status TSRMLS_CC ); in grapheme_strrpos_utf16()
188 puhaystack = grapheme_get_haystack_offset(bi, uhaystack, uhaystack_len, offset); in grapheme_strrpos_utf16()
195 ubrk_close (bi); in grapheme_strrpos_utf16()
216 ubrk_close (bi); in grapheme_strrpos_utf16()
229 pos = ubrk_last(bi); in grapheme_strrpos_utf16()
234 pos = ubrk_previous(bi); in grapheme_strrpos_utf16()
255 if ( ubrk_isBoundary(bi, pos + uneedle_len) ) { in grapheme_strrpos_utf16()
258 ret_pos = grapheme_count_graphemes(bi, uhaystack, pos); in grapheme_strrpos_utf16()
263 ubrk_isBoundary(bi, pos); in grapheme_strrpos_utf16()
266 pos = ubrk_previous(bi); in grapheme_strrpos_utf16()
277 ubrk_close (bi); in grapheme_strrpos_utf16()
292 UBreakIterator* bi; in grapheme_strpos_utf16() local
317 bi = NULL; in grapheme_strpos_utf16()
319 bi = grapheme_get_break_iterator(u_break_iterator_buffer, &status TSRMLS_CC ); in grapheme_strpos_utf16()
321 puhaystack = grapheme_get_haystack_offset(bi, uhaystack, uhaystack_len, offset); in grapheme_strpos_utf16()
330 ubrk_close (bi); in grapheme_strpos_utf16()
356 ubrk_close (bi); in grapheme_strpos_utf16()
365 …ret_pos = grapheme_memnstr_grapheme(bi, puhaystack, uneedle, uneedle_len, puhaystack + uhaystack_l… in grapheme_strpos_utf16()
367 *puchar_pos = ubrk_current(bi); in grapheme_strpos_utf16()
375 ubrk_close (bi); in grapheme_strpos_utf16()
402 UBreakIterator* bi; in grapheme_split_string() local
404 bi = grapheme_get_break_iterator((void*)u_break_iterator_buffer, &status TSRMLS_CC ); in grapheme_split_string()
410 ubrk_setText(bi, text, text_length, &status); in grapheme_split_string()
416 pos = ubrk_next(bi); in grapheme_split_string()
428 ubrk_close(bi); in grapheme_split_string()
436 grapheme_count_graphemes(UBreakIterator *bi, UChar *string, int32_t string_len) in grapheme_count_graphemes() argument
442 ubrk_setText(bi, string, string_len, &status); in grapheme_count_graphemes()
446 pos = ubrk_next(bi); in grapheme_count_graphemes()
460 grapheme_memnstr_grapheme(UBreakIterator *bi, UChar *haystack, UChar *needle, int32_t needle_len, U… in grapheme_memnstr_grapheme() argument
478 ubrk_setText (bi, haystack, (end - haystack) + needle_len, &status); in grapheme_memnstr_grapheme()
480 if ( ubrk_isBoundary (bi, (p - haystack) + needle_len) ) { in grapheme_memnstr_grapheme()
483 grapheme_offset = grapheme_count_graphemes(bi, haystack, (p - haystack)); in grapheme_memnstr_grapheme()
523 grapheme_get_haystack_offset(UBreakIterator* bi, UChar *uhaystack, int32_t uhaystack_len, int32_t o… in grapheme_get_haystack_offset() argument
527 int32_t (*iter_op)(UBreakIterator* bi); in grapheme_get_haystack_offset()
530 if ( NULL != bi ) { in grapheme_get_haystack_offset()
532 ubrk_setText (bi, uhaystack, uhaystack_len, &status); in grapheme_get_haystack_offset()
541 ubrk_last(bi); /* one past the end */ in grapheme_get_haystack_offset()
553 pos = iter_op(bi); in grapheme_get_haystack_offset()