• Home
  • Raw
  • Download

Lines Matching refs:errorCode

43     UErrorCode errorCode;  in TestCaseLower()  local
47 errorCode=U_ZERO_ERROR; in TestCaseLower()
51 &errorCode); in TestCaseLower()
52 if( U_FAILURE(errorCode) || in TestCaseLower()
59 u_errorName(errorCode), in TestCaseLower()
69 errorCode=U_ZERO_ERROR; in TestCaseLower()
73 &errorCode); in TestCaseLower()
74 if( U_FAILURE(errorCode) || in TestCaseLower()
81 u_errorName(errorCode), in TestCaseLower()
87 errorCode=U_ZERO_ERROR; in TestCaseLower()
91 &errorCode); in TestCaseLower()
92 if( errorCode!=U_BUFFER_OVERFLOW_ERROR || in TestCaseLower()
99 u_errorName(errorCode), in TestCaseLower()
104 errorCode=U_ZERO_ERROR; in TestCaseLower()
108 &errorCode); in TestCaseLower()
109 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR) { in TestCaseLower()
112 u_errorName(errorCode)); in TestCaseLower()
116 errorCode=U_ZERO_ERROR; in TestCaseLower()
120 &errorCode); in TestCaseLower()
121 if( errorCode!=U_ILLEGAL_ARGUMENT_ERROR || in TestCaseLower()
126 u_errorName(errorCode), in TestCaseLower()
141 UErrorCode errorCode; in TestCaseUpper() local
145 errorCode=U_ZERO_ERROR; in TestCaseUpper()
149 &errorCode); in TestCaseUpper()
150 if( U_FAILURE(errorCode) || in TestCaseUpper()
157 u_errorName(errorCode), in TestCaseUpper()
163 errorCode=U_ZERO_ERROR; in TestCaseUpper()
167 &errorCode); in TestCaseUpper()
168 if( U_FAILURE(errorCode) || in TestCaseUpper()
175 u_errorName(errorCode), in TestCaseUpper()
180 errorCode=U_ZERO_ERROR; in TestCaseUpper()
184 &errorCode); in TestCaseUpper()
185 if( errorCode!=U_BUFFER_OVERFLOW_ERROR || in TestCaseUpper()
190 u_errorName(errorCode)); in TestCaseUpper()
195 errorCode=U_ZERO_ERROR; in TestCaseUpper()
199 &errorCode); in TestCaseUpper()
200 if( errorCode!=U_ILLEGAL_ARGUMENT_ERROR || in TestCaseUpper()
205 u_errorName(errorCode), in TestCaseUpper()
210 errorCode=U_ZERO_ERROR; in TestCaseUpper()
214 &errorCode); in TestCaseUpper()
215 if( errorCode!=U_ILLEGAL_ARGUMENT_ERROR || in TestCaseUpper()
220 u_errorName(errorCode), in TestCaseUpper()
238 UErrorCode errorCode; in TestCaseTitle() local
240 errorCode=U_ZERO_ERROR; in TestCaseTitle()
241 …erChars=ubrk_open(UBRK_CHARACTER, "", beforeTitle, sizeof(beforeTitle)/U_SIZEOF_UCHAR, &errorCode); in TestCaseTitle()
242 if(U_FAILURE(errorCode)) { in TestCaseTitle()
243 log_err_status(errorCode, "error: ubrk_open(UBRK_CHARACTER)->%s\n", u_errorName(errorCode)); in TestCaseTitle()
249 errorCode=U_ZERO_ERROR; in TestCaseTitle()
253 &errorCode); in TestCaseTitle()
254 if( U_FAILURE(errorCode) || in TestCaseTitle()
261 u_errorName(errorCode), in TestCaseTitle()
267 errorCode=U_ZERO_ERROR; in TestCaseTitle()
271 &errorCode); in TestCaseTitle()
272 if( U_FAILURE(errorCode) || in TestCaseTitle()
279 u_errorName(errorCode), in TestCaseTitle()
284 errorCode=U_ZERO_ERROR; in TestCaseTitle()
288 &errorCode); in TestCaseTitle()
289 if( errorCode!=U_BUFFER_OVERFLOW_ERROR || in TestCaseTitle()
294 u_errorName(errorCode)); in TestCaseTitle()
299 errorCode=U_ZERO_ERROR; in TestCaseTitle()
303 &errorCode); in TestCaseTitle()
304 if( errorCode!=U_ILLEGAL_ARGUMENT_ERROR || in TestCaseTitle()
309 u_errorName(errorCode), in TestCaseTitle()
314 errorCode=U_ZERO_ERROR; in TestCaseTitle()
318 &errorCode); in TestCaseTitle()
319 if( errorCode!=U_ILLEGAL_ARGUMENT_ERROR || in TestCaseTitle()
324 u_errorName(errorCode), in TestCaseTitle()
342 UErrorCode errorCode; in TestCaseDutchTitle() local
344 errorCode=U_ZERO_ERROR; in TestCaseDutchTitle()
345 …itleIterWord=ubrk_open(UBRK_WORD, "", beforeTitle, sizeof(beforeTitle)/U_SIZEOF_UCHAR, &errorCode); in TestCaseDutchTitle()
346 if(U_FAILURE(errorCode)) { in TestCaseDutchTitle()
347 log_err_status(errorCode, "error: ubrk_open(UBRK_WORD)->%s\n", u_errorName(errorCode)); in TestCaseDutchTitle()
353 errorCode=U_ZERO_ERROR; in TestCaseDutchTitle()
357 &errorCode); in TestCaseDutchTitle()
358 if( U_FAILURE(errorCode) || in TestCaseDutchTitle()
367 u_errorName(errorCode), in TestCaseDutchTitle()
372 errorCode=U_ZERO_ERROR; in TestCaseDutchTitle()
376 &errorCode); in TestCaseDutchTitle()
377 if( U_FAILURE(errorCode) || in TestCaseDutchTitle()
386 u_errorName(errorCode), in TestCaseDutchTitle()
434 UErrorCode errorCode; in TestCaseFolding() local
459 errorCode=U_ZERO_ERROR; in TestCaseFolding()
463 &errorCode); in TestCaseFolding()
464 if( U_FAILURE(errorCode) || in TestCaseFolding()
471 u_errorName(errorCode), in TestCaseFolding()
478 errorCode=U_ZERO_ERROR; in TestCaseFolding()
482 &errorCode); in TestCaseFolding()
483 if( U_FAILURE(errorCode) || in TestCaseFolding()
490 u_errorName(errorCode), in TestCaseFolding()
498 errorCode=U_ZERO_ERROR; in TestCaseFolding()
502 &errorCode); in TestCaseFolding()
503 if( U_FAILURE(errorCode) || in TestCaseFolding()
510 u_errorName(errorCode), in TestCaseFolding()
517 errorCode=U_ZERO_ERROR; in TestCaseFolding()
521 &errorCode); in TestCaseFolding()
522 if( U_FAILURE(errorCode) || in TestCaseFolding()
529 u_errorName(errorCode), in TestCaseFolding()
536 errorCode=U_ZERO_ERROR; in TestCaseFolding()
540 &errorCode); in TestCaseFolding()
541 if( errorCode!=U_BUFFER_OVERFLOW_ERROR || in TestCaseFolding()
548 u_errorName(errorCode), in TestCaseFolding()
552 errorCode=U_ZERO_ERROR; in TestCaseFolding()
556 &errorCode); in TestCaseFolding()
557 if( errorCode!=U_BUFFER_OVERFLOW_ERROR || in TestCaseFolding()
562 u_errorName(errorCode)); in TestCaseFolding()
566 errorCode=U_ZERO_ERROR; in TestCaseFolding()
570 &errorCode); in TestCaseFolding()
571 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR) { in TestCaseFolding()
574 u_errorName(errorCode)); in TestCaseFolding()
578 errorCode=U_ZERO_ERROR; in TestCaseFolding()
582 &errorCode); in TestCaseFolding()
583 if( errorCode!=U_ILLEGAL_ARGUMENT_ERROR || in TestCaseFolding()
588 u_errorName(errorCode), in TestCaseFolding()
593 errorCode=U_ZERO_ERROR; in TestCaseFolding()
597 &errorCode); in TestCaseFolding()
598 if( errorCode!=U_ILLEGAL_ARGUMENT_ERROR || in TestCaseFolding()
603 u_errorName(errorCode), in TestCaseFolding()
608 errorCode=U_ZERO_ERROR; in TestCaseFolding()
612 &errorCode); in TestCaseFolding()
613 if( errorCode!=U_ILLEGAL_ARGUMENT_ERROR || in TestCaseFolding()
618 u_errorName(errorCode), in TestCaseFolding()
635 UErrorCode errorCode; in TestCaseCompare() local
638 errorCode=U_ZERO_ERROR; in TestCaseCompare()
654 result=u_strCaseCompare(mixed, -1, otherDefault, -1, U_FOLD_CASE_DEFAULT, &errorCode); in TestCaseCompare()
664 …enMixed, otherExcludeSpecialI, lenOtherExcludeSpecialI, U_FOLD_CASE_EXCLUDE_SPECIAL_I, &errorCode); in TestCaseCompare()
674 result=u_strCaseCompare(mixed, -1, different, lenDifferent, U_FOLD_CASE_DEFAULT, &errorCode); in TestCaseCompare()
684 result=u_strCaseCompare(mixed, 4, different, 4, U_FOLD_CASE_DEFAULT, &errorCode); in TestCaseCompare()
694 result=u_strCaseCompare(mixed, 5, different, 5, U_FOLD_CASE_DEFAULT, &errorCode); in TestCaseCompare()
732 UErrorCode errorCode; in TestUCaseMap() local
734 errorCode=U_ZERO_ERROR; in TestUCaseMap()
735 csm=ucasemap_open("tur", 0xa5, &errorCode); in TestUCaseMap()
736 if(U_FAILURE(errorCode)) { in TestUCaseMap()
737 log_err("ucasemap_open(\"tur\") failed - %s\n", u_errorName(errorCode)); in TestUCaseMap()
745 ucasemap_setLocale(csm, "I-kLInGOn-the-quick-brown-fox-jumps-over-the-lazy-dog", &errorCode); in TestUCaseMap()
751 errorCode=U_ZERO_ERROR; in TestUCaseMap()
756 ucasemap_setOptions(csm, 0x333333, &errorCode); in TestUCaseMap()
765 errorCode=U_ZERO_ERROR; in TestUCaseMap()
766 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, -1, &errorCode); in TestUCaseMap()
767 if(U_FAILURE(errorCode) || length!=3 || 0!=strcmp(abc, utf8Out)) { in TestUCaseMap()
772 errorCode=U_PARSE_ERROR; in TestUCaseMap()
774 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, -1, &errorCode); in TestUCaseMap()
775 if(errorCode!=U_PARSE_ERROR || 0!=strcmp(defg, utf8Out)) { in TestUCaseMap()
780 errorCode=U_ZERO_ERROR; in TestUCaseMap()
782 length=ucasemap_utf8ToUpper(csm, utf8Out, 2, utf8Out+1, 2, &errorCode); in TestUCaseMap()
783 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || 0!=strcmp(aBc, utf8Out)) { in TestUCaseMap()
788 errorCode=U_ZERO_ERROR; in TestUCaseMap()
790 length=ucasemap_utf8ToUpper(csm, utf8Out+1, 2, utf8Out, 2, &errorCode); in TestUCaseMap()
791 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || 0!=strcmp(aBc, utf8Out)) { in TestUCaseMap()
796 errorCode=U_ZERO_ERROR; in TestUCaseMap()
798 length=ucasemap_utf8ToLower(csm, NULL, (int32_t)sizeof(utf8Out), aBc, -1, &errorCode); in TestUCaseMap()
799 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || 0!=strcmp(defg, utf8Out)) { in TestUCaseMap()
804 errorCode=U_ZERO_ERROR; in TestUCaseMap()
806 length=ucasemap_utf8ToLower(csm, utf8Out, -2, aBc, -1, &errorCode); in TestUCaseMap()
807 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || 0!=strcmp(defg, utf8Out)) { in TestUCaseMap()
812 errorCode=U_ZERO_ERROR; in TestUCaseMap()
814 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), NULL, -1, &errorCode); in TestUCaseMap()
815 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || 0!=strcmp(defg, utf8Out)) { in TestUCaseMap()
820 errorCode=U_ZERO_ERROR; in TestUCaseMap()
822 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, -2, &errorCode); in TestUCaseMap()
823 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || 0!=strcmp(defg, utf8Out)) { in TestUCaseMap()
828 errorCode=U_ZERO_ERROR; in TestUCaseMap()
830 length=ucasemap_utf8ToUpper(csm, utf8Out, 2, aBc, 3, &errorCode); in TestUCaseMap()
831 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || length!=3 || 0!=strcmp(defg+2, utf8Out+2)) { in TestUCaseMap()
836 errorCode=U_ZERO_ERROR; in TestUCaseMap()
838 length=ucasemap_utf8ToUpper(csm, utf8Out, 3, aBc, 3, &errorCode); in TestUCaseMap()
839 if(errorCode!=U_STRING_NOT_TERMINATED_WARNING || length!=3 || 0!=strcmp(ABCg, utf8Out)) { in TestUCaseMap()
844 errorCode=U_ZERO_ERROR; in TestUCaseMap()
846 length=ucasemap_utf8FoldCase(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, 3, &errorCode); in TestUCaseMap()
847 if(U_FAILURE(errorCode) || length!=3 || 0!=strcmp(abc, utf8Out)) { in TestUCaseMap()
877 UErrorCode errorCode; in TestUCaseMapToTitle() local
879 errorCode=U_ZERO_ERROR; in TestUCaseMapToTitle()
880 csm=ucasemap_open("", 0, &errorCode); in TestUCaseMapToTitle()
881 if(U_FAILURE(errorCode)) { in TestUCaseMapToTitle()
882 log_err("ucasemap_open(\"\") failed - %s\n", u_errorName(errorCode)); in TestUCaseMapToTitle()
892 …th=ucasemap_toTitle(csm, buffer, LENGTHOF(buffer), beforeTitle, LENGTHOF(beforeTitle), &errorCode); in TestUCaseMapToTitle()
893 if( U_FAILURE(errorCode) || in TestUCaseMapToTitle()
898 …log_err_status(errorCode, "ucasemap_toTitle(default iterator)=%ld failed - %s\n", (long)length, u_… in TestUCaseMapToTitle()
900 if (U_SUCCESS(errorCode)) { in TestUCaseMapToTitle()
908 ucasemap_setOptions(csm, U_TITLECASE_NO_BREAK_ADJUSTMENT, &errorCode); in TestUCaseMapToTitle()
909 if(U_FAILURE(errorCode)) { in TestUCaseMapToTitle()
910 …log_err_status(errorCode, "error: ucasemap_setOptions(U_TITLECASE_NO_BREAK_ADJUSTMENT) failed - %s… in TestUCaseMapToTitle()
914 …th=ucasemap_toTitle(csm, buffer, LENGTHOF(buffer), beforeTitle, LENGTHOF(beforeTitle), &errorCode); in TestUCaseMapToTitle()
915 if( U_FAILURE(errorCode) || in TestUCaseMapToTitle()
920 …e(default iterator, no break adjustment)=%ld failed - %s\n", (long)length, u_errorName(errorCode)); in TestUCaseMapToTitle()
924 errorCode=U_ZERO_ERROR; in TestUCaseMapToTitle()
925 sentenceIter=ubrk_open(UBRK_SENTENCE, "", NULL, 0, &errorCode); in TestUCaseMapToTitle()
926 if(U_FAILURE(errorCode)) { in TestUCaseMapToTitle()
927 log_err("error: ubrk_open(UBRK_SENTENCE) failed - %s\n", u_errorName(errorCode)); in TestUCaseMapToTitle()
931 ucasemap_setBreakIterator(csm, sentenceIter, &errorCode); in TestUCaseMapToTitle()
932 if(U_FAILURE(errorCode)) { in TestUCaseMapToTitle()
933 …g_err("error: ucasemap_setBreakIterator(sentence iterator) failed - %s\n", u_errorName(errorCode)); in TestUCaseMapToTitle()
943 ucasemap_setOptions(csm, U_TITLECASE_NO_LOWERCASE, &errorCode); in TestUCaseMapToTitle()
944 if(U_FAILURE(errorCode)) { in TestUCaseMapToTitle()
945 …_err("error: ucasemap_setOptions(U_TITLECASE_NO_LOWERCASE) failed - %s\n", u_errorName(errorCode)); in TestUCaseMapToTitle()
950 length=ucasemap_toTitle(csm, NULL, 0, beforeTitle, LENGTHOF(beforeTitle), &errorCode); in TestUCaseMapToTitle()
951 if( errorCode!=U_BUFFER_OVERFLOW_ERROR || in TestUCaseMapToTitle()
954 …sentence break iterator, no lowercasing)=%ld failed - %s\n", (long)length, u_errorName(errorCode)); in TestUCaseMapToTitle()
957 errorCode=U_ZERO_ERROR; in TestUCaseMapToTitle()
959 …th=ucasemap_toTitle(csm, buffer, LENGTHOF(buffer), beforeTitle, LENGTHOF(beforeTitle), &errorCode); in TestUCaseMapToTitle()
960 if( U_FAILURE(errorCode) || in TestUCaseMapToTitle()
965 …sentence break iterator, no lowercasing)=%ld failed - %s\n", (long)length, u_errorName(errorCode)); in TestUCaseMapToTitle()
973 errorCode=U_ZERO_ERROR; in TestUCaseMapToTitle()
974 …t)sizeof(utf8BeforeTitle), &utf8BeforeTitleLength, beforeTitle, LENGTHOF(beforeTitle), &errorCode); in TestUCaseMapToTitle()
975 …ntNoLower), &utf8TitleSentNoLowerLength, titleSentNoLower, LENGTHOF(titleSentNoLower), &errorCode); in TestUCaseMapToTitle()
977 …_utf8ToTitle(csm, utf8, (int32_t)sizeof(utf8), utf8BeforeTitle, utf8BeforeTitleLength, &errorCode); in TestUCaseMapToTitle()
978 if( U_FAILURE(errorCode) || in TestUCaseMapToTitle()
983 …sentence break iterator, no lowercasing)=%ld failed - %s\n", (long)length, u_errorName(errorCode)); in TestUCaseMapToTitle()