Lines Matching refs:occurrences

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