Home | History | Annotate | Download | only in cintltst

Lines Matching refs:errorCode

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