Home | History | Annotate | Download | only in intltest

Lines Matching defs:occurrences

716     uint16_t occurrences = 0;
720 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0)
722 if (occurrences != 6)
723 errln("indexOf failed: expected to find 6 occurrences, found " + occurrences);
725 for ( occurrences = 0, startPos = 10;
727 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0)
729 if (occurrences != 4)
730 errln("indexOf with starting offset failed: 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)
738 errln("indexOf with starting and ending offsets failed: expected to find 4 occurrences, found " + occurrences);
741 for ( startPos=0, occurrences=0;
743 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0)
745 if (occurrences != 4)
746 errln((UnicodeString)"indexOf failed: expected to find 4 occurrences, found " + occurrences);
748 for ( startPos=10, occurrences=0;
750 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0)
752 if (occurrences != 2)
753 errln("indexOf failed: expected to find 2 occurrences, found " + occurrences);
756 for ( occurrences = 0, startPos = 0;
758 (startPos = test1.indexOf(testChar, startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
760 if (occurrences != 16)
761 errln("indexOf with character failed: expected to find 16 occurrences, found " + occurrences);
763 for ( occurrences = 0, startPos = 10;
765 occurrences, startPos += 1) : 0)
767 if (occurrences != 12)
768 errln("indexOf with character & start offset failed: expected to find 12 occurrences, found " + occurrences);
770 for ( occurrences = 0, startPos = 5, endPos = 28;
772 (startPos = test1.indexOf(testChar, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
774 if (occurrences != 10)
775 errln("indexOf with character & start & end offsets failed: expected to find 10 occurrences, found " + occurrences);
779 for( occurrences =0, startPos=0; startPos < test3.length(); startPos +=1){
782 ++occurrences;
786 if (occurrences != 14)
787 errln((UnicodeString)"indexOf failed: expected to find 14 occurrences, found " + occurrences);
789 for ( occurrences = 0, startPos = 0;
791 (startPos = test3.indexOf(testChar32, startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
793 if (occurrences != 4)
794 errln((UnicodeString)"indexOf failed: expected to find 4 occurrences, found " + occurrences);
797 for ( occurrences = 0, startPos = 5;
799 (startPos = test3.indexOf(testChar32, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
801 if (occurrences != 3)
802 errln((UnicodeString)"indexOf with character & start & end offsets failed: expected to find 2 occurrences, found " + occurrences);
813 for ( occurrences = 0, startPos = 32;
815 (startPos = test1.lastIndexOf(test2, 5, startPos - 5)) != -1 ? ++occurrences : 0)
817 if (occurrences != 4)
818 errln("lastIndexOf with starting and ending offsets failed: expected to find 4 occurrences, found " + occurrences);
820 for ( occurrences = 0, startPos = 32;
822 (startPos = test1.lastIndexOf(testChar, 5, startPos - 5)) != -1 ? ++occurrences : 0)
824 if (occurrences != 11)
825 errln("lastIndexOf with character & start & end offsets failed: expected to find 11 occurrences, found " + occurrences);
829 for ( occurrences = 0;
831 (startPos = test3.lastIndexOf(testChar32, 5, startPos - 5)) != -1 ? ++occurrences : 0)
833 if (occurrences != 3)
834 errln((UnicodeString)"lastIndexOf with character & start & end offsets failed: expected to find 3 occurrences, found " + occurrences);
837 for ( occurrences = 0, endPos = test3.length(); endPos > 0; endPos -= 1){
841 ++occurrences;
844 if (occurrences != 18)
845 errln((UnicodeString)"indexOf failed: expected to find 18 occurrences, found " + occurrences);