Home | History | Annotate | Download | only in intltest

Lines Matching refs:occurrences

715     uint16_t occurrences = 0;
719 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0)
721 if (occurrences != 6)
722 errln(UnicodeString("indexOf failed: expected to find 6 occurrences, found ") + occurrences);
724 for ( occurrences = 0, startPos = 10;
726 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0)
728 if (occurrences != 4)
730 "expected to find 4 occurrences, found ") + occurrences);
733 for ( occurrences = 0, startPos = 5;
735 (startPos = test1.indexOf(test2, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos += 4) : 0)
737 if (occurrences != 4)
739 "expected to find 4 occurrences, found ") + occurrences);
742 for ( startPos=0, occurrences=0;
744 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0)
746 if (occurrences != 4)
747 errln((UnicodeString)"indexOf failed: expected to find 4 occurrences, found " + occurrences);
749 for ( startPos=10, occurrences=0;
751 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0)
753 if (occurrences != 2)
754 errln(UnicodeString("indexOf failed: expected to find 2 occurrences, found ") + occurrences);
757 for ( occurrences = 0, startPos = 0;
759 (startPos = test1.indexOf(testChar, startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
761 if (occurrences != 16)
763 "expected to find 16 occurrences, found ") + occurrences);
765 for ( occurrences = 0, startPos = 10;
767 (startPos = test1.indexOf(testChar, startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
769 if (occurrences != 12)
771 "expected to find 12 occurrences, found ") + occurrences);
773 for ( occurrences = 0, startPos = 5, endPos = 28;
775 (startPos = test1.indexOf(testChar, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
777 occurrences != 10)
779 "expected to find 10 occurrences, found ") + occurrences);
783 for( occurrences =0, startPos=0; startPos < test3.length(); startPos +=1){
786 ++occurrences;
790 if (occurrences != 14)
791 errln((UnicodeString)"indexOf failed: expected to find 14 occurrences, found " + occurrences);
793 for ( occurrences = 0, startPos = 0;
795 (startPos = test3.indexOf(testChar32, startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
797 if (occurrences != 4)
798 errln((UnicodeString)"indexOf failed: expected to find 4 occurrences, found " + occurrences);
801 for ( occurrences = 0, startPos = 5;
803 (startPos = test3.indexOf(testChar32, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
805 if (occurrences != 3)
806 errln((UnicodeString)"indexOf with character & start & end offsets failed: expected to find 2 occurrences, found " + occurrences);
817 for ( occurrences = 0, startPos = 32;
819 (startPos = test1.lastIndexOf(test2, 5, startPos - 5)) != -1 ? ++occurrences : 0)
821 if (occurrences != 4)
823 "expected to find 4 occurrences, found ") + occurrences);
825 for ( occurrences = 0, startPos = 32;
827 (startPos = test1.lastIndexOf(testChar, 5, startPos - 5)) != -1 ? ++occurrences : 0)
829 if (occurrences != 11)
831 "expected to find 11 occurrences, found ") + occurrences);
835 for ( occurrences = 0;
837 (startPos = test3.lastIndexOf(testChar32, 5, startPos - 5)) != -1 ? ++occurrences : 0)
839 if (occurrences != 3)
840 errln((UnicodeString)"lastIndexOf with character & start & end offsets failed: expected to find 3 occurrences, found " + occurrences);
843 for ( occurrences = 0, endPos = test3.length(); endPos > 0; endPos -= 1){
847 ++occurrences;
850 if (occurrences != 18)
851 errln((UnicodeString)"indexOf failed: expected to find 18 occurrences, found " + occurrences);