Lines Matching defs:iterator

158 //   class BITestData   Holds a set of Break iterator test data and results
433 // generalIteratorTest Given a break iterator and a set of test data,
454 // testFirstAndNext. Run the iterator forwards in the obvious first(), next()
473 // If the iterator is not making forward progress, stop.
484 // TestLastAndPrevious. Run the iterator backwards, starting with last().
506 // If the iterator is not making progress, stop.
549 // Make sure that the index was at the correct position for the break iterator to have
552 errln("testFollowing(): iterator returned DONE prematurely.");
591 // Make sure that the index was at the correct position for the break iterator to have
594 errln("testPreceding(): iterator returned DONE prematurely.");
624 void RBBITest::doMultipleSelectionTest(RuleBasedBreakIterator& iterator, BITestData &td)
626 iterator.setText(td.fDataToBreak);
628 RuleBasedBreakIterator* testIterator =(RuleBasedBreakIterator*)iterator.clone();
629 int32_t offset = iterator.first();
635 if (*testIterator != iterator)
646 offset = iterator.next();
648 if (offset != RuleBasedBreakIterator::DONE && *testIterator == iterator) {
662 offset = iterator.last();
673 offset = iterator.previous();
851 // Run the iterator forward
908 // Run the iterator backwards, verify that the same breaks are found.
1370 // TestDictRules create a break iterator from source rules that includes a
1372 // do not declare a break iterator type (word, line, sentence, etc.
1767 // implement the break rules for different iterator types.
1769 // The Monkey Test itself uses doesn't know which type of break iterator it is
1776 // for this type of iterator.
3547 errcheckln(status, "Creation of break iterator failed %s", u_errorName(status));
3613 errcheckln(status, "Creation of break iterator failed %s", u_errorName(status));
3762 " (This is it). Testing the sentence iterator. \"This isn't it.\"",
3781 errcheckln(status, "Creation of break iterator failed %s", u_errorName(status));
3871 errcheckln(status, "Creation of character break iterator failed %s", u_errorName(status));
3884 errcheckln(status, "Creation of word break iterator failed %s", u_errorName(status));
3900 errcheckln(status, "Creation of line break iterator failed %s", u_errorName(status));
3916 errcheckln(status, "Creation of line break iterator failed %s", u_errorName(status));
3925 // Run a RBBI monkey test. Common routine, for all break iterator types.
3927 // bi - the break iterator to use
4028 utext_close(testUText); // The break iterator does a shallow clone of the UText
4245 // For now, just make sure that the break iterator doesn't hang.