• Home
  • Raw
  • Download

Lines Matching refs:bi

379 …RuleBasedBreakIterator* bi  = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createCharacterInst…  in TestIteration()  local
380 if (U_FAILURE(status) || bi == NULL) { in TestIteration()
383 delete bi; in TestIteration()
386bi = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createWordInstance(Locale::getDefault(), st… in TestIteration()
387 if (U_FAILURE(status) || bi == NULL) { in TestIteration()
390 delete bi; in TestIteration()
393bi = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createLineInstance(Locale::getDefault(), st… in TestIteration()
394 if (U_FAILURE(status) || bi == NULL) { in TestIteration()
397 delete bi; in TestIteration()
400bi = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createSentenceInstance(Locale::getDefault()… in TestIteration()
401 if (U_FAILURE(status) || bi == NULL) { in TestIteration()
404 delete bi; in TestIteration()
407bi = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createTitleInstance(Locale::getDefault(), s… in TestIteration()
408 if (U_FAILURE(status) || bi == NULL) { in TestIteration()
411 delete bi; in TestIteration()
414bi = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createCharacterInstance(Locale::getDefault(… in TestIteration()
415 if (U_FAILURE(status) || bi == NULL) { in TestIteration()
422 bi->setText(testString); in TestIteration()
425 i = bi->first(); in TestIteration()
430 i = bi->last(); in TestIteration()
438 bi->last(); in TestIteration()
439 i = bi->previous(); in TestIteration()
445 bi->first(); in TestIteration()
446 i = bi->previous(); in TestIteration()
454 bi->first(); in TestIteration()
455 i = bi->next(); in TestIteration()
460 bi->last(); in TestIteration()
461 i = bi->next(); in TestIteration()
470 bi->first(); in TestIteration()
471 i = bi->current(); in TestIteration()
476 bi->next(); in TestIteration()
477 i = bi->current(); in TestIteration()
482 bi->last(); in TestIteration()
483 bi->next(); in TestIteration()
484 i = bi->current(); in TestIteration()
489 bi->first(); in TestIteration()
490 bi->previous(); in TestIteration()
491 i = bi->current(); in TestIteration()
500 i = bi->following(4); in TestIteration()
505 i = bi->following(9); in TestIteration()
510 i = bi->following(10); in TestIteration()
519 i = bi->preceding(4); in TestIteration()
524 i = bi->preceding(10); in TestIteration()
529 i = bi->preceding(1); in TestIteration()
534 i = bi->preceding(0); in TestIteration()
543 bi->first(); in TestIteration()
544 if (bi->isBoundary(3) != TRUE) { in TestIteration()
547 i = bi->current(); in TestIteration()
553 if (bi->isBoundary(11) != FALSE) { in TestIteration()
556 i = bi->current(); in TestIteration()
564 bi->first(); in TestIteration()
565 i = bi->next(4); in TestIteration()
570 i = bi->next(6); in TestIteration()
575 bi->first(); in TestIteration()
576 i = bi->next(11); in TestIteration()
581 delete bi; in TestIteration()
603 RuleBasedBreakIterator *bi = new RuleBasedBreakIterator(rulesString1, parseError, status); in TestBuilder() local
607 bi->setText(testString1); in TestBuilder()
608 doBoundaryTest(*bi, testString1, bounds1); in TestBuilder()
610 delete bi; in TestBuilder()
630 RuleBasedBreakIterator *bi = new RuleBasedBreakIterator(rulesString1, parseError, status); in TestQuoteGrouping() local
634 bi->setText(testString1); in TestQuoteGrouping()
635 doBoundaryTest(*bi, testString1, bounds1); in TestQuoteGrouping()
637 delete bi; in TestQuoteGrouping()
664 BreakIterator *bi = BreakIterator::createWordInstance(Locale::getEnglish(), status); in TestRuleStatus() local
668 bi->setText(testString1); in TestRuleStatus()
670 doBoundaryTest(*bi, testString1, bounds1); in TestRuleStatus()
675 for (pos = bi->first(); pos != BreakIterator::DONE; pos = bi->next(), i++) { in TestRuleStatus()
680 tag = bi->getRuleStatus(); in TestRuleStatus()
688 int t = bi->getRuleStatusVec(vec, 10, status); in TestRuleStatus()
694 delete bi; in TestRuleStatus()
701 bi = BreakIterator::createLineInstance(Locale::getEnglish(), status); in TestRuleStatus()
709 bi->setText(testString1); in TestRuleStatus()
710 pos = bi->current(); in TestRuleStatus()
711 tag = bi->getRuleStatus(); in TestRuleStatus()
728 pos = bi->next(); in TestRuleStatus()
729 tag = bi->getRuleStatus(); in TestRuleStatus()
737 delete bi; in TestRuleStatus()
761 RuleBasedBreakIterator *bi = new RuleBasedBreakIterator(rulesString, parseError, status); in TestRuleStatusVec() local
765 bi->setText(testString1); in TestRuleStatusVec()
768 pos = bi->next(); in TestRuleStatusVec()
770 numStatuses = bi->getRuleStatusVec(statusVals, 10, status); in TestRuleStatusVec()
777 pos = bi->next(); in TestRuleStatusVec()
779 numStatuses = bi->getRuleStatusVec(statusVals, 10, status); in TestRuleStatusVec()
786 pos = bi->next(); in TestRuleStatusVec()
788 numStatuses = bi->getRuleStatusVec(statusVals, 10, status); in TestRuleStatusVec()
795 pos = bi->next(); in TestRuleStatusVec()
797 numStatuses = bi->getRuleStatusVec(statusVals, 10, status); in TestRuleStatusVec()
803 pos = bi->next(); in TestRuleStatusVec()
805 numStatuses = bi->getRuleStatusVec(statusVals, 10, status); in TestRuleStatusVec()
812 pos = bi->next(); in TestRuleStatusVec()
814 numStatuses = bi->getRuleStatusVec(statusVals, 10, status); in TestRuleStatusVec()
822 bi->first(); in TestRuleStatusVec()
823 pos = bi->next(); in TestRuleStatusVec()
826 numStatuses = bi->getRuleStatusVec(statusVals, 0, status); in TestRuleStatusVec()
833 numStatuses = bi->getRuleStatusVec(statusVals, 1, status); in TestRuleStatusVec()
841 numStatuses = bi->getRuleStatusVec(statusVals, 2, status); in TestRuleStatusVec()
848 delete bi; in TestRuleStatusVec()
865 RuleBasedBreakIterator *bi = new RuleBasedBreakIterator(rulesString1, parseError, status); in TestBug2190() local
869 bi->setText(testString1); in TestBug2190()
870 doBoundaryTest(*bi, testString1, bounds1); in TestBug2190()
872 delete bi; in TestBug2190()
1146 …RuleBasedBreakIterator *bi = (RuleBasedBreakIterator *)BreakIterator::createLineInstance(Locale::g… in TestRefreshInputText() local
1153 bi->setText(&ut1, status); in TestRefreshInputText()
1157 TEST_ASSERT(1 == bi->next()); in TestRefreshInputText()
1158 TEST_ASSERT(3 == bi->next()); in TestRefreshInputText()
1165 RuleBasedBreakIterator *returnedBI = &bi->refreshInputText(&ut2, status); in TestRefreshInputText()
1167 TEST_ASSERT(bi == returnedBI); in TestRefreshInputText()
1170 TEST_ASSERT(5 == bi->next()); in TestRefreshInputText()
1171 TEST_ASSERT(7 == bi->next()); in TestRefreshInputText()
1172 TEST_ASSERT(8 == bi->next()); in TestRefreshInputText()
1173 TEST_ASSERT(UBRK_DONE == bi->next()); in TestRefreshInputText()
1178 delete bi; in TestRefreshInputText()
1470 void RBBIAPITest::doBoundaryTest(BreakIterator& bi, UnicodeString& text, int32_t *boundaries){ in doBoundaryTest() argument
1475 isB = bi.isBoundary(i); in doBoundaryTest()