• Home
  • Raw
  • Download

Lines Matching refs:bi

382 …RuleBasedBreakIterator* bi  = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createCharacterInst…  in TestIteration()  local
383 if (U_FAILURE(status) || bi == NULL) { in TestIteration()
386 delete bi; in TestIteration()
389bi = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createWordInstance(Locale::getDefault(), st… in TestIteration()
390 if (U_FAILURE(status) || bi == NULL) { in TestIteration()
393 delete bi; in TestIteration()
396bi = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createLineInstance(Locale::getDefault(), st… in TestIteration()
397 if (U_FAILURE(status) || bi == NULL) { in TestIteration()
400 delete bi; in TestIteration()
403bi = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createSentenceInstance(Locale::getDefault()… in TestIteration()
404 if (U_FAILURE(status) || bi == NULL) { in TestIteration()
407 delete bi; in TestIteration()
410bi = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createTitleInstance(Locale::getDefault(), s… in TestIteration()
411 if (U_FAILURE(status) || bi == NULL) { in TestIteration()
414 delete bi; in TestIteration()
417bi = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createCharacterInstance(Locale::getDefault(… in TestIteration()
418 if (U_FAILURE(status) || bi == NULL) { in TestIteration()
425 bi->setText(testString); in TestIteration()
428 i = bi->first(); in TestIteration()
433 i = bi->last(); in TestIteration()
441 bi->last(); in TestIteration()
442 i = bi->previous(); in TestIteration()
448 bi->first(); in TestIteration()
449 i = bi->previous(); in TestIteration()
457 bi->first(); in TestIteration()
458 i = bi->next(); in TestIteration()
463 bi->last(); in TestIteration()
464 i = bi->next(); in TestIteration()
473 bi->first(); in TestIteration()
474 i = bi->current(); in TestIteration()
479 bi->next(); in TestIteration()
480 i = bi->current(); in TestIteration()
485 bi->last(); in TestIteration()
486 bi->next(); in TestIteration()
487 i = bi->current(); in TestIteration()
492 bi->first(); in TestIteration()
493 bi->previous(); in TestIteration()
494 i = bi->current(); in TestIteration()
503 i = bi->following(4); in TestIteration()
508 i = bi->following(9); in TestIteration()
513 i = bi->following(10); in TestIteration()
522 i = bi->preceding(4); in TestIteration()
527 i = bi->preceding(10); in TestIteration()
532 i = bi->preceding(1); in TestIteration()
537 i = bi->preceding(0); in TestIteration()
546 bi->first(); in TestIteration()
547 if (bi->isBoundary(3) != TRUE) { in TestIteration()
550 i = bi->current(); in TestIteration()
556 if (bi->isBoundary(11) != FALSE) { in TestIteration()
559 i = bi->current(); in TestIteration()
567 bi->first(); in TestIteration()
568 i = bi->next(4); in TestIteration()
573 i = bi->next(6); in TestIteration()
578 bi->first(); in TestIteration()
579 i = bi->next(11); in TestIteration()
584 delete bi; in TestIteration()
606 RuleBasedBreakIterator *bi = new RuleBasedBreakIterator(rulesString1, parseError, status); in TestBuilder() local
610 bi->setText(testString1); in TestBuilder()
611 doBoundaryTest(*bi, testString1, bounds1); in TestBuilder()
613 delete bi; in TestBuilder()
633 RuleBasedBreakIterator *bi = new RuleBasedBreakIterator(rulesString1, parseError, status); in TestQuoteGrouping() local
637 bi->setText(testString1); in TestQuoteGrouping()
638 doBoundaryTest(*bi, testString1, bounds1); in TestQuoteGrouping()
640 delete bi; in TestQuoteGrouping()
667 BreakIterator *bi = BreakIterator::createWordInstance(Locale::getEnglish(), status); in TestRuleStatus() local
671 bi->setText(testString1); in TestRuleStatus()
673 doBoundaryTest(*bi, testString1, bounds1); in TestRuleStatus()
678 for (pos = bi->first(); pos != BreakIterator::DONE; pos = bi->next(), i++) { in TestRuleStatus()
683 tag = bi->getRuleStatus(); in TestRuleStatus()
691 int t = bi->getRuleStatusVec(vec, 10, status); in TestRuleStatus()
697 delete bi; in TestRuleStatus()
704 bi = BreakIterator::createLineInstance(Locale::getEnglish(), status); in TestRuleStatus()
712 bi->setText(testString1); in TestRuleStatus()
713 pos = bi->current(); in TestRuleStatus()
714 tag = bi->getRuleStatus(); in TestRuleStatus()
731 pos = bi->next(); in TestRuleStatus()
732 tag = bi->getRuleStatus(); in TestRuleStatus()
740 delete bi; in TestRuleStatus()
764 RuleBasedBreakIterator *bi = new RuleBasedBreakIterator(rulesString, parseError, status); in TestRuleStatusVec() local
768 bi->setText(testString1); in TestRuleStatusVec()
771 pos = bi->next(); in TestRuleStatusVec()
773 numStatuses = bi->getRuleStatusVec(statusVals, 10, status); in TestRuleStatusVec()
780 pos = bi->next(); in TestRuleStatusVec()
782 numStatuses = bi->getRuleStatusVec(statusVals, 10, status); in TestRuleStatusVec()
789 pos = bi->next(); in TestRuleStatusVec()
791 numStatuses = bi->getRuleStatusVec(statusVals, 10, status); in TestRuleStatusVec()
798 pos = bi->next(); in TestRuleStatusVec()
800 numStatuses = bi->getRuleStatusVec(statusVals, 10, status); in TestRuleStatusVec()
806 pos = bi->next(); in TestRuleStatusVec()
808 numStatuses = bi->getRuleStatusVec(statusVals, 10, status); in TestRuleStatusVec()
815 pos = bi->next(); in TestRuleStatusVec()
817 numStatuses = bi->getRuleStatusVec(statusVals, 10, status); in TestRuleStatusVec()
825 bi->first(); in TestRuleStatusVec()
826 pos = bi->next(); in TestRuleStatusVec()
829 numStatuses = bi->getRuleStatusVec(statusVals, 0, status); in TestRuleStatusVec()
836 numStatuses = bi->getRuleStatusVec(statusVals, 1, status); in TestRuleStatusVec()
844 numStatuses = bi->getRuleStatusVec(statusVals, 2, status); in TestRuleStatusVec()
851 delete bi; in TestRuleStatusVec()
868 RuleBasedBreakIterator *bi = new RuleBasedBreakIterator(rulesString1, parseError, status); in TestBug2190() local
872 bi->setText(testString1); in TestBug2190()
873 doBoundaryTest(*bi, testString1, bounds1); in TestBug2190()
875 delete bi; in TestBug2190()
1069 LocalPointer<BreakIterator> bi(BreakIterator::createLineInstance(Locale::getEnglish(), status)); in TestGetBinaryRules() local
1074 RuleBasedBreakIterator *rbbi = dynamic_cast<RuleBasedBreakIterator *>(bi.getAlias()); in TestGetBinaryRules()
1084 while (bi->next() != UBRK_DONE) { in TestGetBinaryRules()
1127 …RuleBasedBreakIterator *bi = (RuleBasedBreakIterator *)BreakIterator::createLineInstance(Locale::g… in TestRefreshInputText() local
1134 bi->setText(&ut1, status); in TestRefreshInputText()
1138 TEST_ASSERT(1 == bi->next()); in TestRefreshInputText()
1139 TEST_ASSERT(3 == bi->next()); in TestRefreshInputText()
1146 RuleBasedBreakIterator *returnedBI = &bi->refreshInputText(&ut2, status); in TestRefreshInputText()
1148 TEST_ASSERT(bi == returnedBI); in TestRefreshInputText()
1151 TEST_ASSERT(5 == bi->next()); in TestRefreshInputText()
1152 TEST_ASSERT(7 == bi->next()); in TestRefreshInputText()
1153 TEST_ASSERT(8 == bi->next()); in TestRefreshInputText()
1154 TEST_ASSERT(UBRK_DONE == bi->next()); in TestRefreshInputText()
1159 delete bi; in TestRefreshInputText()
1443 void RBBIAPITest::doBoundaryTest(BreakIterator& bi, UnicodeString& text, int32_t *boundaries){ in doBoundaryTest() argument
1448 isB = bi.isBoundary(i); in doBoundaryTest()