Lines Matching refs:bi

520     UBreakIterator *bi;  in testOpenRules()  local
524 bi = ubrk_openRules(ruleSourceU, -1, /* The rules */ in testOpenRules()
530 bi = 0; in testOpenRules()
533 return bi; in testOpenRules()
559 UBreakIterator *bi = testOpenRules(rules); in TestBreakIteratorRules() local
560 if (bi == NULL) {return;} in TestBreakIteratorRules()
562 ubrk_setText(bi, uData, -1, &status); in TestBreakIteratorRules()
564 pos = ubrk_first(bi); in TestBreakIteratorRules()
576 tag = ubrk_getRuleStatus(bi); in TestBreakIteratorRules()
583 pos = ubrk_next(bi); in TestBreakIteratorRules()
588 ubrk_close(bi); in TestBreakIteratorRules()
603 UBreakIterator *bi; in TestBreakIteratorRuleError() local
606 bi = ubrk_openRules(uRules, -1, /* The rules */ in TestBreakIteratorRuleError()
611 ubrk_close(bi); in TestBreakIteratorRuleError()
631 UBreakIterator *bi = NULL; in TestBreakIteratorStatusVec() local
646 bi = ubrk_openRules(rules, -1, testString, -1, NULL, &status); in TestBreakIteratorStatusVec()
648 TEST_ASSERT(bi != NULL); in TestBreakIteratorStatusVec()
651 if (bi != NULL) { in TestBreakIteratorStatusVec()
652 pos = ubrk_next(bi); in TestBreakIteratorStatusVec()
656 numVals = ubrk_getRuleStatusVec(bi, vals, 10, &status); in TestBreakIteratorStatusVec()
663 numVals = ubrk_getRuleStatusVec(bi, vals, 0, &status); in TestBreakIteratorStatusVec()
668 ubrk_close(bi); in TestBreakIteratorStatusVec()
682 UBreakIterator *bi = NULL; in TestBreakIteratorUText() local
689 bi = ubrk_open(UBRK_WORD, "en_US", NULL, 0, &status); in TestBreakIteratorUText()
695 ubrk_setUText(bi, ut, &status); in TestBreakIteratorUText()
701 pos = ubrk_first(bi); in TestBreakIteratorUText()
704 pos = ubrk_next(bi); in TestBreakIteratorUText()
707 pos = ubrk_next(bi); in TestBreakIteratorUText()
710 pos = ubrk_next(bi); in TestBreakIteratorUText()
713 pos = ubrk_next(bi); in TestBreakIteratorUText()
715 ubrk_close(bi); in TestBreakIteratorUText()
849 UBreakIterator *bi; in TestBreakIteratorRefresh() local
853 bi = ubrk_open(UBRK_LINE, "en_US", NULL, 0, &status); in TestBreakIteratorRefresh()
861 ubrk_setUText(bi, &ut1, &status); in TestBreakIteratorRefresh()
866 TEST_ASSERT(1 == ubrk_next(bi)); in TestBreakIteratorRefresh()
867 TEST_ASSERT(3 == ubrk_next(bi)); in TestBreakIteratorRefresh()
874 ubrk_refreshUText(bi, &ut2, &status); in TestBreakIteratorRefresh()
878 TEST_ASSERT(5 == ubrk_next(bi)); in TestBreakIteratorRefresh()
879 TEST_ASSERT(7 == ubrk_next(bi)); in TestBreakIteratorRefresh()
880 TEST_ASSERT(8 == ubrk_next(bi)); in TestBreakIteratorRefresh()
881 TEST_ASSERT(UBRK_DONE == ubrk_next(bi)); in TestBreakIteratorRefresh()
887 ubrk_close(bi); in TestBreakIteratorRefresh()
902 UBreakIterator *bi = NULL; in TestBug11665() local
909 bi = ubrk_open(UBRK_WORD, "en_US", japaneseText, UPRV_LENGTHOF(japaneseText), &status); in TestBug11665()
911 if (!bi) { in TestBug11665()
914 for (brk=ubrk_first(bi); brk != UBRK_DONE; brk=ubrk_next(bi)) { in TestBug11665()
925 for (brk=ubrk_first(bi); brk != UBRK_DONE; brk=ubrk_next(bi)) { in TestBug11665()
939 ubrk_close(bi); in TestBug11665()
997 UBreakIterator *bi = ubrk_open(UBRK_SENTENCE, itemPtr->locale, textU, textULen, &status); in TestBreakIteratorSuppressions() local
1005 ubrk_first(bi); in TestBreakIteratorSuppressions()
1006 for (; (offset = ubrk_next(bi)) != UBRK_DONE && *expOffsetPtr >= 0; expOffsetPtr++) { in TestBreakIteratorSuppressions()
1016 start = ubrk_first(bi) + 1; in TestBreakIteratorSuppressions()
1017 … for (; (offset = ubrk_following(bi, start)) != UBRK_DONE && *expOffsetPtr >= 0; expOffsetPtr++) { in TestBreakIteratorSuppressions()
1028 offset = ubrk_last(bi); in TestBreakIteratorSuppressions()
1033 … for (; (offset = ubrk_previous(bi)) != UBRK_DONE && *expOffsetPtr >= 0; expOffsetPtr++) { in TestBreakIteratorSuppressions()
1047 start = ubrk_last(bi) - 1; in TestBreakIteratorSuppressions()
1048 … for (; (offset = ubrk_preceding(bi, start)) != UBRK_DONE && *expOffsetPtr >= 0; expOffsetPtr++) { in TestBreakIteratorSuppressions()
1058 ubrk_close(bi); in TestBreakIteratorSuppressions()