Lines Matching refs:bi
524 UBreakIterator *bi; in testOpenRules() local
528 bi = ubrk_openRules(ruleSourceU, -1, /* The rules */ in testOpenRules()
534 bi = 0; in testOpenRules()
537 return bi; in testOpenRules()
563 UBreakIterator *bi = testOpenRules(rules); in TestBreakIteratorRules() local
564 if (bi == NULL) {return;} in TestBreakIteratorRules()
566 ubrk_setText(bi, uData, -1, &status); in TestBreakIteratorRules()
568 pos = ubrk_first(bi); in TestBreakIteratorRules()
580 tag = ubrk_getRuleStatus(bi); in TestBreakIteratorRules()
587 pos = ubrk_next(bi); in TestBreakIteratorRules()
594 int32_t rulesLength = ubrk_getBinaryRules(bi, NULL, 0, &status); /* preflight */ in TestBreakIteratorRules()
602 rulesLength = ubrk_getBinaryRules(bi, binaryRules, rulesLength, &status); in TestBreakIteratorRules()
612 pos = ubrk_first(bi); in TestBreakIteratorRules()
618 pos = ubrk_next(bi); in TestBreakIteratorRules()
629 ubrk_close(bi); in TestBreakIteratorRules()
644 UBreakIterator *bi; in TestBreakIteratorRuleError() local
647 bi = ubrk_openRules(uRules, -1, /* The rules */ in TestBreakIteratorRuleError()
652 ubrk_close(bi); in TestBreakIteratorRuleError()
672 UBreakIterator *bi = NULL; in TestBreakIteratorStatusVec() local
687 bi = ubrk_openRules(rules, -1, testString, -1, NULL, &status); in TestBreakIteratorStatusVec()
689 TEST_ASSERT(bi != NULL); in TestBreakIteratorStatusVec()
692 if (bi != NULL) { in TestBreakIteratorStatusVec()
693 pos = ubrk_next(bi); in TestBreakIteratorStatusVec()
697 numVals = ubrk_getRuleStatusVec(bi, vals, 10, &status); in TestBreakIteratorStatusVec()
704 numVals = ubrk_getRuleStatusVec(bi, vals, 0, &status); in TestBreakIteratorStatusVec()
709 ubrk_close(bi); in TestBreakIteratorStatusVec()
723 UBreakIterator *bi = NULL; in TestBreakIteratorUText() local
730 bi = ubrk_open(UBRK_WORD, "en_US", NULL, 0, &status); in TestBreakIteratorUText()
736 ubrk_setUText(bi, ut, &status); in TestBreakIteratorUText()
742 pos = ubrk_first(bi); in TestBreakIteratorUText()
745 pos = ubrk_next(bi); in TestBreakIteratorUText()
748 pos = ubrk_next(bi); in TestBreakIteratorUText()
751 pos = ubrk_next(bi); in TestBreakIteratorUText()
754 pos = ubrk_next(bi); in TestBreakIteratorUText()
756 ubrk_close(bi); in TestBreakIteratorUText()
893 UBreakIterator *bi; in TestBreakIteratorRefresh() local
897 bi = ubrk_open(UBRK_LINE, "en_US", NULL, 0, &status); in TestBreakIteratorRefresh()
905 ubrk_setUText(bi, &ut1, &status); in TestBreakIteratorRefresh()
910 TEST_ASSERT(1 == ubrk_next(bi)); in TestBreakIteratorRefresh()
911 TEST_ASSERT(3 == ubrk_next(bi)); in TestBreakIteratorRefresh()
918 ubrk_refreshUText(bi, &ut2, &status); in TestBreakIteratorRefresh()
922 TEST_ASSERT(5 == ubrk_next(bi)); in TestBreakIteratorRefresh()
923 TEST_ASSERT(7 == ubrk_next(bi)); in TestBreakIteratorRefresh()
924 TEST_ASSERT(8 == ubrk_next(bi)); in TestBreakIteratorRefresh()
925 TEST_ASSERT(UBRK_DONE == ubrk_next(bi)); in TestBreakIteratorRefresh()
931 ubrk_close(bi); in TestBreakIteratorRefresh()
946 UBreakIterator *bi = NULL; in TestBug11665() local
953 bi = ubrk_open(UBRK_WORD, "en_US", japaneseText, UPRV_LENGTHOF(japaneseText), &status); in TestBug11665()
955 if (!bi) { in TestBug11665()
958 for (brk=ubrk_first(bi); brk != UBRK_DONE; brk=ubrk_next(bi)) { in TestBug11665()
969 for (brk=ubrk_first(bi); brk != UBRK_DONE; brk=ubrk_next(bi)) { in TestBug11665()
983 ubrk_close(bi); in TestBug11665()
1044 UBreakIterator *bi = ubrk_open(UBRK_SENTENCE, itemPtr->locale, textU, textULen, &status); in TestBreakIteratorSuppressions() local
1052 ubrk_first(bi); in TestBreakIteratorSuppressions()
1053 for (; (offset = ubrk_next(bi)) != UBRK_DONE && *expOffsetPtr >= 0; expOffsetPtr++) { in TestBreakIteratorSuppressions()
1063 start = ubrk_first(bi) + 1; in TestBreakIteratorSuppressions()
1064 … for (; (offset = ubrk_following(bi, start)) != UBRK_DONE && *expOffsetPtr >= 0; expOffsetPtr++) { in TestBreakIteratorSuppressions()
1075 offset = ubrk_last(bi); in TestBreakIteratorSuppressions()
1080 … for (; (offset = ubrk_previous(bi)) != UBRK_DONE && *expOffsetPtr >= 0; expOffsetPtr++) { in TestBreakIteratorSuppressions()
1094 start = ubrk_last(bi) - 1; in TestBreakIteratorSuppressions()
1095 … for (; (offset = ubrk_preceding(bi, start)) != UBRK_DONE && *expOffsetPtr >= 0; expOffsetPtr++) { in TestBreakIteratorSuppressions()
1105 ubrk_close(bi); in TestBreakIteratorSuppressions()