Lines Matching refs:caseCompare
210 if(0!=s.caseCompare(buffer, -1, U_FOLD_CASE_DEFAULT)) {
211 errln("UnicodeString.caseCompare(const UChar *, length, options) does not work with length==-1");
213 if(0!=s.caseCompare(0, s.length(), buffer, U_FOLD_CASE_DEFAULT)) {
214 errln("UnicodeString.caseCompare(start, _length, const UChar *, options) does not work");
344 test1.caseCompare(test2, U_FOLD_CASE_DEFAULT)<=0
378 /* test caseCompare() */
394 /* test caseCompare() */
395 result=mixed.caseCompare(otherDefault, U_FOLD_CASE_DEFAULT);
397 errln("error: mixed.caseCompare(other, default)=%ld instead of 0\n", result);
399 result=mixed.caseCompare(otherExcludeSpecialI, U_FOLD_CASE_EXCLUDE_SPECIAL_I);
401 errln("error: mixed.caseCompare(otherExcludeSpecialI, U_FOLD_CASE_EXCLUDE_SPECIAL_I)=%ld instead of 0\n", result);
403 result=mixed.caseCompare(otherDefault, U_FOLD_CASE_EXCLUDE_SPECIAL_I);
405 errln("error: mixed.caseCompare(other, U_FOLD_CASE_EXCLUDE_SPECIAL_I)=0 instead of !=0\n");
408 /* test caseCompare() */
409 result=mixed.caseCompare(different, U_FOLD_CASE_DEFAULT);
411 errln("error: mixed.caseCompare(different, default)=%ld instead of positive\n", result);
414 /* test caseCompare() - include the folded sharp s (U+00df) with different lengths */
415 result=mixed.caseCompare(1, 4, different, 1, 5, U_FOLD_CASE_DEFAULT);
417 errln("error: mixed.caseCompare(mixed, 1, 4, different, 1, 5, default)=%ld instead of 0\n", result);
420 /* test caseCompare() - stop in the middle of the sharp s (U+00df) */
421 result=mixed.caseCompare(1, 4, different, 1, 4, U_FOLD_CASE_DEFAULT);
423 errln("error: mixed.caseCompare(1, 4, different, 1, 4, default)=%ld instead of positive\n", result);
441 if(s.caseCompare(u, -1, U_FOLD_CASE_DEFAULT)!=0 || s.caseCompare(0, 999, u, 0, -1, U_FOLD_CASE_DEFAULT)!=0) {
442 errln("error UnicodeString::caseCompare(..., const UChar *, srcLength=-1, ...) does not work");
1469 if (test1.caseCompare(test3, U_FOLD_CASE_DEFAULT) != 1 || test3.caseCompare(test1, U_FOLD_CASE_DEFAULT) != -1) {
1470 errln("caseCompare() doesn't work with bogus strings");