Home | History | Annotate | Download | only in cintltst

Lines Matching full: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;
656 result=u_strCaseCompare(mixed, -1, otherDefault, -1, U_FOLD_CASE_DEFAULT, &errorCode);
666 result=u_strCaseCompare(mixed, lenMixed, otherExcludeSpecialI, lenOtherExcludeSpecialI, U_FOLD_CASE_EXCLUDE_SPECIAL_I, &errorCode);
676 result=u_strCaseCompare(mixed, -1, different, lenDifferent, U_FOLD_CASE_DEFAULT, &errorCode);
686 result=u_strCaseCompare(mixed, 4, different, 4, U_FOLD_CASE_DEFAULT, &errorCode);
696 result=u_strCaseCompare(mixed, 5, different, 5, U_FOLD_CASE_DEFAULT, &errorCode);
734 UErrorCode errorCode;
736 errorCode=U_ZERO_ERROR;
737 csm=ucasemap_open("tur", 0xa5, &errorCode);
738 if(U_FAILURE(errorCode)) {
739 log_err("ucasemap_open(\"tur\") failed - %s\n", u_errorName(errorCode));
747 ucasemap_setLocale(csm, "I-kLInGOn-the-quick-brown-fox-jumps-over-the-lazy-dog", &errorCode);
753 errorCode=U_ZERO_ERROR;
758 ucasemap_setOptions(csm, 0x333333, &errorCode);
767 errorCode=U_ZERO_ERROR;
768 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, -1, &errorCode);
769 if(U_FAILURE(errorCode) || length!=3 || 0!=strcmp(abc, utf8Out)) {
774 errorCode=U_PARSE_ERROR;
776 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, -1, &errorCode);
777 if(errorCode!=U_PARSE_ERROR || 0!=strcmp(defg, utf8Out)) {
782 errorCode=U_ZERO_ERROR;
784 length=ucasemap_utf8ToUpper(csm, utf8Out, 2, utf8Out+1, 2, &errorCode);
785 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || 0!=strcmp(aBc, utf8Out)) {
790 errorCode=U_ZERO_ERROR;
792 length=ucasemap_utf8ToUpper(csm, utf8Out+1, 2, utf8Out, 2, &errorCode);
793 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || 0!=strcmp(aBc, utf8Out)) {
798 errorCode=U_ZERO_ERROR;
800 length=ucasemap_utf8ToLower(csm, NULL, (int32_t)sizeof(utf8Out), aBc, -1, &errorCode);
801 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || 0!=strcmp(defg, utf8Out)) {
806 errorCode=U_ZERO_ERROR;
808 length=ucasemap_utf8ToLower(csm, utf8Out, -2, aBc, -1, &errorCode);
809 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || 0!=strcmp(defg, utf8Out)) {
814 errorCode=U_ZERO_ERROR;
816 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), NULL, -1, &errorCode);
817 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || 0!=strcmp(defg, utf8Out)) {
822 errorCode=U_ZERO_ERROR;
824 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, -2, &errorCode);
825 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || 0!=strcmp(defg, utf8Out)) {
830 errorCode=U_ZERO_ERROR;
832 length=ucasemap_utf8ToUpper(csm, utf8Out, 2, aBc, 3, &errorCode);
833 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || length!=3 || 0!=strcmp(defg+2, utf8Out+2)) {
838 errorCode=U_ZERO_ERROR;
840 length=ucasemap_utf8ToUpper(csm, utf8Out, 3, aBc, 3, &errorCode);
841 if(errorCode!=U_STRING_NOT_TERMINATED_WARNING || length!=3 || 0!=strcmp(ABCg, utf8Out)) {
846 errorCode=U_ZERO_ERROR;
848 length=ucasemap_utf8FoldCase(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, 3, &errorCode);
849 if(U_FAILURE(errorCode) || length!=3 || 0!=strcmp(abc, utf8Out)) {
879 UErrorCode errorCode;
881 errorCode=U_ZERO_ERROR;
882 csm=ucasemap_open("", 0, &errorCode);
883 if(U_FAILURE(errorCode)) {
884 log_err("ucasemap_open(\"\") failed - %s\n", u_errorName(errorCode));
894 length=ucasemap_toTitle(csm, buffer, LENGTHOF(buffer), beforeTitle, LENGTHOF(beforeTitle), &errorCode);
895 if( U_FAILURE(errorCode) ||
900 log_err_status(errorCode, "ucasemap_toTitle(default iterator)=%ld failed - %s\n", (long)length, u_errorName(errorCode));
902 if (U_SUCCESS(errorCode)) {
910 ucasemap_setOptions(csm, U_TITLECASE_NO_BREAK_ADJUSTMENT, &errorCode);
911 if(U_FAILURE(errorCode)) {
912 log_err_status(errorCode, "error: ucasemap_setOptions(U_TITLECASE_NO_BREAK_ADJUSTMENT) failed - %s\n", u_errorName(errorCode));
916 length=ucasemap_toTitle(csm, buffer, LENGTHOF(buffer), beforeTitle, LENGTHOF(beforeTitle), &errorCode);
917 if( U_FAILURE(errorCode) ||
922 log_err("ucasemap_toTitle(default iterator, no break adjustment)=%ld failed - %s\n", (long)length, u_errorName(errorCode));
926 errorCode=U_ZERO_ERROR;
927 sentenceIter=ubrk_open(UBRK_SENTENCE, "", NULL, 0, &errorCode);
928 if(U_FAILURE(errorCode)) {
929 log_err("error: ubrk_open(UBRK_SENTENCE) failed - %s\n", u_errorName(errorCode));
933 ucasemap_setBreakIterator(csm, sentenceIter, &errorCode);
934 if(U_FAILURE(errorCode)) {
935 log_err("error: ucasemap_setBreakIterator(sentence iterator) failed - %s\n", u_errorName(errorCode));
945 ucasemap_setOptions(csm, U_TITLECASE_NO_LOWERCASE, &errorCode);
946 if(U_FAILURE(errorCode)) {
947 log_err("error: ucasemap_setOptions(U_TITLECASE_NO_LOWERCASE) failed - %s\n", u_errorName(errorCode));
952 length=ucasemap_toTitle(csm, NULL, 0, beforeTitle, LENGTHOF(beforeTitle), &errorCode);
953 if( errorCode!=U_BUFFER_OVERFLOW_ERROR ||
956 log_err("ucasemap_toTitle(preflight sentence break iterator, no lowercasing)=%ld failed - %s\n", (long)length, u_errorName(errorCode));
959 errorCode=U_ZERO_ERROR;
961 length=ucasemap_toTitle(csm, buffer, LENGTHOF(buffer), beforeTitle, LENGTHOF(beforeTitle), &errorCode);
962 if( U_FAILURE(errorCode) ||
967 log_err("ucasemap_toTitle(sentence break iterator, no lowercasing)=%ld failed - %s\n", (long)length, u_errorName(errorCode));
975 errorCode=U_ZERO_ERROR;
976 u_strToUTF8(utf8BeforeTitle, (int32_t)sizeof(utf8BeforeTitle), &utf8BeforeTitleLength, beforeTitle, LENGTHOF(beforeTitle), &errorCode);
977 u_strToUTF8(utf8TitleSentNoLower, (int32_t)sizeof(utf8TitleSentNoLower), &utf8TitleSentNoLowerLength, titleSentNoLower, LENGTHOF(titleSentNoLower), &errorCode);
979 length=ucasemap_utf8ToTitle(csm, utf8, (int32_t)sizeof(utf8), utf8BeforeTitle, utf8BeforeTitleLength, &errorCode);
980 if( U_FAILURE(errorCode) ||
985 log_err("ucasemap_utf8ToTitle(sentence break iterator, no lowercasing)=%ld failed - %s\n", (long)length, u_errorName(errorCode));