Lines Matching refs:occurrences

709     uint16_t occurrences = 0;  in TestSearching()  local
713 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0) in TestSearching()
715 if (occurrences != 6) in TestSearching()
716 … errln(UnicodeString("indexOf failed: expected to find 6 occurrences, found ") + occurrences); in TestSearching()
718 for ( occurrences = 0, startPos = 10; in TestSearching()
720 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0) in TestSearching()
722 if (occurrences != 4) in TestSearching()
724 "expected to find 4 occurrences, found ") + occurrences); in TestSearching()
727 for ( occurrences = 0, startPos = 5; in TestSearching()
729 …(startPos = test1.indexOf(test2, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos +=… in TestSearching()
731 if (occurrences != 4) in TestSearching()
733 "expected to find 4 occurrences, found ") + occurrences); in TestSearching()
736 for ( startPos=0, occurrences=0; in TestSearching()
738 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0) in TestSearching()
740 if (occurrences != 4) in TestSearching()
741 … errln((UnicodeString)"indexOf failed: expected to find 4 occurrences, found " + occurrences); in TestSearching()
743 for ( startPos=10, occurrences=0; in TestSearching()
745 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0) in TestSearching()
747 if (occurrences != 2) in TestSearching()
748 … errln(UnicodeString("indexOf failed: expected to find 2 occurrences, found ") + occurrences); in TestSearching()
751 for ( occurrences = 0, startPos = 0; in TestSearching()
753 (startPos = test1.indexOf(testChar, startPos)) != -1 ? (++occurrences, startPos += 1) : 0) in TestSearching()
755 if (occurrences != 16) in TestSearching()
757 "expected to find 16 occurrences, found ") + occurrences); in TestSearching()
759 for ( occurrences = 0, startPos = 10; in TestSearching()
761 (startPos = test1.indexOf(testChar, startPos)) != -1 ? (++occurrences, startPos += 1) : 0) in TestSearching()
763 if (occurrences != 12) in TestSearching()
765 "expected to find 12 occurrences, found ") + occurrences); in TestSearching()
767 for ( occurrences = 0, startPos = 5, endPos = 28; in TestSearching()
769 …(startPos = test1.indexOf(testChar, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos… in TestSearching()
771 if (occurrences != 10) in TestSearching()
773 "expected to find 10 occurrences, found ") + occurrences); in TestSearching()
777 for( occurrences =0, startPos=0; startPos < test3.length(); startPos +=1){ in TestSearching()
780 ++occurrences; in TestSearching()
784 if (occurrences != 14) in TestSearching()
785 … errln((UnicodeString)"indexOf failed: expected to find 14 occurrences, found " + occurrences); in TestSearching()
787 for ( occurrences = 0, startPos = 0; in TestSearching()
789 … (startPos = test3.indexOf(testChar32, startPos)) != -1 ? (++occurrences, startPos += 1) : 0) in TestSearching()
791 if (occurrences != 4) in TestSearching()
792 … errln((UnicodeString)"indexOf failed: expected to find 4 occurrences, found " + occurrences); in TestSearching()
795 for ( occurrences = 0, startPos = 5; in TestSearching()
797 …s = test3.indexOf(testChar32, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos += 1)… in TestSearching()
799 if (occurrences != 3) in TestSearching()
800 …ith character & start & end offsets failed: expected to find 2 occurrences, found " + occurrences); in TestSearching()
811 for ( occurrences = 0, startPos = 32; in TestSearching()
813 (startPos = test1.lastIndexOf(test2, 5, startPos - 5)) != -1 ? ++occurrences : 0) in TestSearching()
815 if (occurrences != 4) in TestSearching()
817 "expected to find 4 occurrences, found ") + occurrences); in TestSearching()
819 for ( occurrences = 0, startPos = 32; in TestSearching()
821 (startPos = test1.lastIndexOf(testChar, 5, startPos - 5)) != -1 ? ++occurrences : 0) in TestSearching()
823 if (occurrences != 11) in TestSearching()
825 "expected to find 11 occurrences, found ") + occurrences); in TestSearching()
829 for ( occurrences = 0; in TestSearching()
831 (startPos = test3.lastIndexOf(testChar32, 5, startPos - 5)) != -1 ? ++occurrences : 0) in TestSearching()
833 if (occurrences != 3) in TestSearching()
834 …ith character & start & end offsets failed: expected to find 3 occurrences, found " + occurrences); in TestSearching()
837 for ( occurrences = 0, endPos = test3.length(); endPos > 0; endPos -= 1){ in TestSearching()
841 ++occurrences; in TestSearching()
844 if (occurrences != 18) in TestSearching()
845 … errln((UnicodeString)"indexOf failed: expected to find 18 occurrences, found " + occurrences); in TestSearching()