• Home
  • Raw
  • Download

Lines Matching refs:status

47                 UErrorCode *status);
52 UErrorCode *status);
74 UErrorCode status = U_ZERO_ERROR; in testAPI() local
92 destLen = func(src,-1,NULL,0,options, &parseError , &status); in testAPI()
93 if(status == U_BUFFER_OVERFLOW_ERROR){ in testAPI()
94 status = U_ZERO_ERROR; /* reset error code */ in testAPI()
97 destLen = func(src,-1,dest,destLen+1,options, &parseError, &status); in testAPI()
99 …CESS(status) && expectedStatus != U_IDNA_STD3_ASCII_RULES_ERROR&& (doCompare==TRUE) && u_strCaseCo… in testAPI()
107 if(status != expectedStatus){ in testAPI()
108status, "Did not get the expected error for %s null terminated source failed. Expected: %s Got: %… in testAPI()
113 status = U_ZERO_ERROR; in testAPI()
114 destLen = func(src,-1,NULL,0,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &status); in testAPI()
115 if(status == U_BUFFER_OVERFLOW_ERROR){ in testAPI()
116 status = U_ZERO_ERROR; /* reset error code */ in testAPI()
119 … destLen = func(src,-1,dest,destLen+1,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &status); in testAPI()
121 …if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0… in testAPI()
130 if(status != expectedStatus && expectedStatus != U_IDNA_UNASSIGNED_ERROR){ in testAPI()
131 …h options set. Expected: %s Got: %s\n",testName, u_errorName(expectedStatus), u_errorName(status)); in testAPI()
135 status = U_ZERO_ERROR; in testAPI()
138 destLen = func(tSrc, tSrcLen, NULL,0,options, &parseError, &status); in testAPI()
139 if(status == U_BUFFER_OVERFLOW_ERROR){ in testAPI()
140 status = U_ZERO_ERROR; /* reset error code */ in testAPI()
143 destLen = func(src,u_strlen(src),dest,destLen+1,options, &parseError, &status); in testAPI()
145 …if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0… in testAPI()
153 if(status != expectedStatus){ in testAPI()
154 …source length. Expected: %s Got: %s\n",testName, u_errorName(expectedStatus), u_errorName(status)); in testAPI()
157 status = U_ZERO_ERROR; in testAPI()
159 destLen = func(tSrc,tSrcLen,NULL,0,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &status); in testAPI()
161 if(status == U_BUFFER_OVERFLOW_ERROR){ in testAPI()
162 status = U_ZERO_ERROR; /* reset error code */ in testAPI()
165 …en = func(src,u_strlen(src),dest,destLen+1,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &status); in testAPI()
167 …if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0… in testAPI()
175 if(status != expectedStatus && expectedStatus != U_IDNA_UNASSIGNED_ERROR){ in testAPI()
176 …d options set. Expected: %s Got: %s\n",testName, u_errorName(expectedStatus), u_errorName(status)); in testAPI()
180 status = U_ZERO_ERROR; in testAPI()
181 destLen = func(src,-1,NULL,0,options | UIDNA_USE_STD3_RULES, &parseError, &status); in testAPI()
182 if(status == U_BUFFER_OVERFLOW_ERROR){ in testAPI()
183 status = U_ZERO_ERROR; /* reset error code*/ in testAPI()
186 … destLen = func(src,-1,dest,destLen+1,options | UIDNA_USE_STD3_RULES, &parseError, &status); in testAPI()
188 …if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0… in testAPI()
197 if(status != expectedStatus){ in testAPI()
198 …h options set. Expected: %s Got: %s\n",testName, u_errorName(expectedStatus), u_errorName(status)); in testAPI()
201 status = U_ZERO_ERROR; in testAPI()
203 destLen = func(tSrc,tSrcLen,NULL,0,options | UIDNA_USE_STD3_RULES, &parseError, &status); in testAPI()
205 if(status == U_BUFFER_OVERFLOW_ERROR){ in testAPI()
206 status = U_ZERO_ERROR; /* reset error code*/ in testAPI()
209 …tLen = func(src,u_strlen(src),dest,destLen+1,options | UIDNA_USE_STD3_RULES, &parseError, &status); in testAPI()
211 …if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0… in testAPI()
219 if(status != expectedStatus && expectedStatus != U_IDNA_UNASSIGNED_ERROR){ in testAPI()
220 …d options set. Expected: %s Got: %s\n",testName, u_errorName(expectedStatus), u_errorName(status)); in testAPI()
458 UErrorCode status = U_ZERO_ERROR; in TestIDNToUnicode() local
466 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in TestIDNToUnicode()
467 if(U_FAILURE(status)){ in TestIDNToUnicode()
468 …log_err_status(status, "%s failed to convert domainNames[%i].Error: %s \n",testName, i, u_errorNa… in TestIDNToUnicode()
474 if(U_FAILURE(status)){ in TestIDNToUnicode()
475 … log_err( "%s failed to convert domainNames[%i].Error: %s \n",testName,i, u_errorName(status)); in TestIDNToUnicode()
487 UErrorCode status = U_ZERO_ERROR; in TestIDNToASCII() local
496 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in TestIDNToASCII()
497 if(U_FAILURE(status)){ in TestIDNToASCII()
498 …log_err_status(status, "%s failed to convert domainNames[%i].Error: %s \n",testName,i, u_errorNam… in TestIDNToASCII()
504 if(U_FAILURE(status)){ in TestIDNToASCII()
505 … log_err( "%s failed to convert domainNames[%i].Error: %s \n",testName,i, u_errorName(status)); in TestIDNToASCII()
520 UErrorCode status = U_ZERO_ERROR; in testCompareWithSrc() local
521 int32_t retVal = func(s1,-1,s2,-1,UIDNA_DEFAULT,&status); in testCompareWithSrc()
526 if(U_FAILURE(status)){ in testCompareWithSrc()
527 …log_err_status(status, "%s null terminated source failed. Error: %s\n", testName,u_errorName(statu… in testCompareWithSrc()
530 status = U_ZERO_ERROR; in testCompareWithSrc()
531 retVal = func(s1,-1,s2,-1,UIDNA_ALLOW_UNASSIGNED,&status); in testCompareWithSrc()
536 if(U_FAILURE(status)){ in testCompareWithSrc()
537 …log_err_status(status, "%s null terminated source and options set failed. Error: %s\n",testName, u… in testCompareWithSrc()
540 status = U_ZERO_ERROR; in testCompareWithSrc()
541 retVal = func(s1,s1Len,s2,s2Len,UIDNA_DEFAULT,&status); in testCompareWithSrc()
546 if(U_FAILURE(status)){ in testCompareWithSrc()
547 log_err_status(status, "%s with string length. Error: %s\n",testName, u_errorName(status)); in testCompareWithSrc()
550 status = U_ZERO_ERROR; in testCompareWithSrc()
551 retVal = func(s1,s1Len,s2,s2Len,UIDNA_ALLOW_UNASSIGNED,&status); in testCompareWithSrc()
556 if(U_FAILURE(status)){ in testCompareWithSrc()
557 …log_err_status(status, "%s with string length and options set. Error: %s\n", u_errorName(status),… in testCompareWithSrc()
653 UErrorCode status = U_ZERO_ERROR; in TestJB4490() local
659 dest1Len = uidna_toASCII(src1, src1Len, dest1, dest1Len,UIDNA_DEFAULT, &ps, &status); in TestJB4490()
660 if(U_FAILURE(status)){ in TestJB4490()
661 log_err_status(status, "uidna_toUnicode failed with error %s.\n", u_errorName(status)); in TestJB4490()
665 dest2Len = uidna_toUnicode(src2, src2Len, dest2, dest2Len, UIDNA_DEFAULT, &ps, &status); in TestJB4490()
666 if(U_FAILURE(status)){ in TestJB4490()
667 log_err_status(status, "uidna_toUnicode failed with error %s.\n", u_errorName(status)); in TestJB4490()
685 UErrorCode status = U_ZERO_ERROR; in TestJB4475() local
688 destLen = uidna_toASCII(src, srcLen, dest, destLen,UIDNA_DEFAULT, &ps, &status); in TestJB4475()
689 if(U_FAILURE(status)){ in TestJB4475()
690 log_err_status(status, "uidna_toASCII failed with error %s.\n", u_errorName(status)); in TestJB4475()
725 UErrorCode status = U_ZERO_ERROR; in TestLength() local
729 destLen = uidna_toUnicode(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status); in TestLength()
730 if(status != U_ZERO_ERROR){ in TestLength()
731 log_err_status(status, "uidna_toUnicode failed with error %s.\n", u_errorName(status)); in TestLength()
734 status = U_ZERO_ERROR; in TestLength()
737 destLen = uidna_toUnicode(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status); in TestLength()
738 if(status != U_ZERO_ERROR){ in TestLength()
739 log_err_status(status, "uidna_toUnicode failed with error %s.\n", u_errorName(status)); in TestLength()
741 status = U_ZERO_ERROR; in TestLength()
744 destLen = uidna_toASCII(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status); in TestLength()
745 if(status != U_IDNA_LABEL_TOO_LONG_ERROR){ in TestLength()
746 log_err_status(status, "uidna_toASCII failed with error %s.\n", u_errorName(status)); in TestLength()
749 status = U_ZERO_ERROR; in TestLength()
752 destLen = uidna_toASCII(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status); in TestLength()
753 if(status != U_IDNA_LABEL_TOO_LONG_ERROR){ in TestLength()
754 log_err_status(status, "uidna_toASCII failed with error %s.\n", u_errorName(status)); in TestLength()
757 status = U_ZERO_ERROR; in TestLength()
759 destLen = uidna_toASCII(ul1, len1, dest, destLen, UIDNA_DEFAULT, &ps, &status); in TestLength()
760 if(status != U_ZERO_ERROR){ in TestLength()
761 log_err_status(status, "uidna_toASCII failed with error %s.\n", u_errorName(status)); in TestLength()
764 status = U_ZERO_ERROR; in TestLength()
767 destLen = uidna_toASCII(ul1, len1, dest, destLen, UIDNA_DEFAULT, &ps, &status); in TestLength()
768 if(status != U_ZERO_ERROR){ in TestLength()
769 log_err_status(status, "uidna_toASCII failed with error %s.\n", u_errorName(status)); in TestLength()
777 UErrorCode status = U_ZERO_ERROR; in TestLength() local
782 destLen = uidna_IDNToUnicode(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status); in TestLength()
783 if(status != U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR){ in TestLength()
784 … log_err_status(status, "uidna_IDNToUnicode failed with error %s.\n", u_errorName(status)); in TestLength()
787 status = U_ZERO_ERROR; in TestLength()
790 destLen = uidna_IDNToUnicode(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status); in TestLength()
791 if(status != U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR){ in TestLength()
792 … log_err_status(status, "uidna_IDNToUnicode failed with error %s.\n", u_errorName(status)); in TestLength()
795 status = U_ZERO_ERROR; in TestLength()
798 destLen = uidna_IDNToASCII(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status); in TestLength()
799 if(status != U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR){ in TestLength()
800 log_err_status(status, "uidna_IDNToASCII failed with error %s.\n", u_errorName(status)); in TestLength()
803 status = U_ZERO_ERROR; in TestLength()
806 destLen = uidna_IDNToASCII(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status); in TestLength()
807 if(status != U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR){ in TestLength()
808 log_err_status(status, "uidna_IDNToASCII failed with error %s.\n", u_errorName(status)); in TestLength()
811 status = U_ZERO_ERROR; in TestLength()
812 uidna_compare(ul, len, ul, len, UIDNA_DEFAULT, &status); in TestLength()
813 if(status != U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR){ in TestLength()
814 log_err_status(status, "uidna_compare failed with error %s.\n", u_errorName(status)); in TestLength()
816 uidna_compare(ul, -1, ul, -1, UIDNA_DEFAULT, &status); in TestLength()
817 if(status != U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR){ in TestLength()
818 log_err_status(status, "uidna_compare failed with error %s.\n", u_errorName(status)); in TestLength()
827 UErrorCode status = U_ZERO_ERROR; in TestJB5273() local
829 … int32_t outLen = uidna_toUnicode(invalid_idn, len, output, 50, UIDNA_DEFAULT, &prsError, &status); in TestJB5273()
830 if(U_FAILURE(status)){ in TestJB5273()
831 log_err_status(status, "uidna_toUnicode failed with error: %s\n", u_errorName(status)); in TestJB5273()
833 status = U_ZERO_ERROR; in TestJB5273()
834 … outLen = uidna_toUnicode(invalid_idn, len, output, 50, UIDNA_USE_STD3_RULES, &prsError, &status); in TestJB5273()
835 if(U_FAILURE(status)){ in TestJB5273()
836 log_err_status(status, "uidna_toUnicode failed with error: %s\n", u_errorName(status)); in TestJB5273()
839 status = U_ZERO_ERROR; in TestJB5273()
840 outLen = uidna_IDNToUnicode(invalid_idn, len, output, 50, UIDNA_DEFAULT, &prsError, &status); in TestJB5273()
841 if(U_FAILURE(status)){ in TestJB5273()
842 log_err_status(status, "uidna_toUnicode failed with error: %s\n", u_errorName(status)); in TestJB5273()
844 status = U_ZERO_ERROR; in TestJB5273()
845 …utLen = uidna_IDNToUnicode(invalid_idn, len, output, 50, UIDNA_USE_STD3_RULES, &prsError, &status); in TestJB5273()
846 if(U_FAILURE(status)){ in TestJB5273()
847 log_err_status(status, "uidna_toUnicode failed with error: %s\n", u_errorName(status)); in TestJB5273()