Home | History | Annotate | Download | only in intltest

Lines Matching refs:occurrences

717     uint16_t occurrences = 0;
721 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0)
723 if (occurrences != 6)
724 errln(UnicodeString("indexOf failed: expected to find 6 occurrences, found ") + occurrences);
726 for ( occurrences = 0, startPos = 10;
728 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0)
730 if (occurrences != 4)
732 "expected to find 4 occurrences, found ") + occurrences);
735 for ( occurrences = 0, startPos = 5;
737 (startPos = test1.indexOf(test2, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos += 4) : 0)
739 if (occurrences != 4)
741 "expected to find 4 occurrences, found ") + occurrences);
744 for ( startPos=0, occurrences=0;
746 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0)
748 if (occurrences != 4)
749 errln((UnicodeString)"indexOf failed: expected to find 4 occurrences, found " + occurrences);
751 for ( startPos=10, occurrences=0;
753 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0)
755 if (occurrences != 2)
756 errln(UnicodeString("indexOf failed: expected to find 2 occurrences, found ") + occurrences);
759 for ( occurrences
761 (startPos = test1.indexOf(testChar, startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
763 if (occurrences != 16)
765 "expected to find 16 occurrences, found ") + occurrences);
767 for ( occurrences = 0, startPos = 10;
769 (startPos = test1.indexOf(testChar, startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
771 if (occurrences != 12)
773 "expected to find 12 occurrences, found ") + occurrences);
775 for ( occurrences = 0, startPos = 5, endPos = 28;
777 (startPos = test1.indexOf(testChar, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
779 if (occurrences != 10)
781 "expected to find 10 occurrences, found ") + occurrences);
785 for( occurrences =0, startPos=0; startPos < test3.length(); startPos +=1){
788 ++occurrences;
792 if (occurrences != 14)
793 errln((UnicodeString)"indexOf failed: expected to find 14 occurrences, found " + occurrences);
795 for ( occurrences = 0, startPos = 0;
797 (startPos = test3.indexOf(testChar32, startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
799 if (occurrences != 4)
800 errln((UnicodeString)"indexOf failed: expected to find 4 occurrences, found " + occurrences);
803 for ( occurrences = 0, startPos = 5;
805 (startPos = test3.indexOf(testChar32, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
807 if (occurrences != 3)
808 errln((UnicodeString)"indexOf with character & start & end offsets failed: expected to find 2 occurrences, found " + occurrences);
819 for ( occurrences = 0, startPos = 32;
821 (startPos = test1.lastIndexOf(test2, 5, startPos - 5)) != -1 ? ++occurrences : 0)
823 if (occurrences != 4)
825 "expected to find 4 occurrences, found ") + occurrences);
827 for ( occurrences = 0, startPos = 32;
829 (startPos = test1.lastIndexOf(testChar, 5, startPos - 5)) != -1 ? ++occurrences : 0)
831 if (occurrences != 11)
833 "expected to find 11 occurrences, found ") + occurrences);
837 for ( occurrences = 0;
839 (startPos = test3.lastIndexOf(testChar32, 5, startPos - 5)) != -1 ? ++occurrences : 0)
841 if (occurrences != 3)
842 errln((UnicodeString)"lastIndexOf with character & start & end offsets failed: expected to find 3 occurrences, found " + occurrences);
845 for ( occurrences = 0, endPos = test3.length(); endPos > 0; endPos -= 1){
849 ++occurrences;
852 if (occurrences != 18)
853 errln((UnicodeString)"indexOf failed: expected to find 18 occurrences, found " + occurrences);