Home | History | Annotate | Download | only in intltest

Lines Matching refs:lastIndexOf

449         if(s.lastIndexOf(u, 1, -1, 0, 999)!=1 || s.lastIndexOf(u+1, -1, 0, 999)!=1 || s.lastIndexOf(u+1, -1, 0)!=1) {
450 errln("error UnicodeString::lastIndexOf(const UChar *, srcLength=-1, ...) does not work");
810 if(test1.lastIndexOf(test2)!=29) {
811 errln("test1.lastIndexOf(test2)!=29");
814 if(test1.lastIndexOf(test2, 15)!=29 || test1.lastIndexOf(test2, 29)!=29 || test1.lastIndexOf(test2, 30)!=-1) {
815 errln("test1.lastIndexOf(test2, start) failed");
820 (startPos = test1.lastIndexOf(test2, 5, startPos - 5)) != -1 ? ++occurrences : 0)
823 errln(UnicodeString("lastIndexOf with starting and ending offsets failed: "
828 (startPos = test1.lastIndexOf(testChar, 5, startPos - 5)) != -1 ? ++occurrences : 0)
831 errln(UnicodeString("lastIndexOf with character & start & end offsets failed: "
838 (startPos = test3.lastIndexOf(testChar32, 5, startPos - 5)) != -1 ? ++occurrences : 0)
841 errln((UnicodeString)"lastIndexOf with character & start & end offsets failed: expected to find 3 occurrences, found " + occurrences);
847 if(subString.lastIndexOf(testChar32) != -1 ){
855 // test that indexOf(UChar32) and lastIndexOf(UChar32)
862 if( UnicodeString(test3, 0, 17).lastIndexOf((UChar)0xd841, 0) != 4 ||
863 UnicodeString(test3, 0, 17).lastIndexOf((UChar32)0xd841, 2) != 4 ||
864 test3.lastIndexOf((UChar32)0xd841, 0, 17) != 4 || test3.lastIndexOf((UChar32)0xdc02, 0, 17) != 16
866 errln("error: UnicodeString::lastIndexOf(UChar32 surrogate) finds a partial supplementary code point");
1466 if (test1.lastIndexOf(test3) != -1) {
1467 errln("bogus.lastIndexOf() != -1");