Home | History | Annotate | Download | only in cintltst

Lines Matching refs:status

49                 UErrorCode *status);
54 UErrorCode *status);
77 UErrorCode status = U_ZERO_ERROR;
95 destLen = func(src,-1,NULL,0,options, &parseError , &status);
96 if(status == U_BUFFER_OVERFLOW_ERROR){
97 status = U_ZERO_ERROR; /* reset error code */
100 destLen = func(src,-1,dest,destLen+1,options, &parseError, &status);
102 if(U_SUCCESS(status) && expectedStatus != U_IDNA_STD3_ASCII_RULES_ERROR&& (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&status)!=0){
110 if(status != expectedStatus){
111 log_err_status(status, "Did not get the expected error for %s null terminated source failed. Expected: %s Got: %s\n",testName, u_errorName(expectedStatus), u_errorName(status));
116 status = U_ZERO_ERROR;
117 destLen = func(src,-1,NULL,0,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &status);
118 if(status == U_BUFFER_OVERFLOW_ERROR){
119 status = U_ZERO_ERROR; /* reset error code */
122 destLen = func(src,-1,dest,destLen+1,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &status);
124 if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&status)!=0){
133 if(status != expectedStatus && expectedStatus != U_IDNA_UNASSIGNED_ERROR){
134 log_err( "Did not get the expected error for %s null terminated source with options set. Expected: %s Got: %s\n",testName, u_errorName(expectedStatus), u_errorName(status));
138 status = U_ZERO_ERROR;
141 destLen = func(tSrc, tSrcLen, NULL,0,options, &parseError, &status);
142 if(status == U_BUFFER_OVERFLOW_ERROR){
143 status = U_ZERO_ERROR; /* reset error code */
146 destLen = func(src,u_strlen(src),dest,destLen+1,options, &parseError, &status);
148 if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&status)!=0){
156 if(status != expectedStatus){
157 log_err( "Did not get the expected error for %s with source length. Expected: %s Got: %s\n",testName, u_errorName(expectedStatus), u_errorName(status));
160 status = U_ZERO_ERROR;
162 destLen = func(tSrc,tSrcLen,NULL,0,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &status);
164 if(status == U_BUFFER_OVERFLOW_ERROR){
165 status = U_ZERO_ERROR; /* reset error code */
168 destLen = func(src,u_strlen(src),dest,destLen+1,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &status);
170 if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&status)!=0){
178 if(status != expectedStatus && expectedStatus != U_IDNA_UNASSIGNED_ERROR){
179 log_err( "Did not get the expected error for %s with source length and options set. Expected: %s Got: %s\n",testName, u_errorName(expectedStatus), u_errorName(status));
183 status = U_ZERO_ERROR;
184 destLen = func(src,-1,NULL,0,options | UIDNA_USE_STD3_RULES, &parseError, &status);
185 if(status == U_BUFFER_OVERFLOW_ERROR){
186 status = U_ZERO_ERROR; /* reset error code*/
189 destLen = func(src,-1,dest,destLen+1,options | UIDNA_USE_STD3_RULES, &parseError, &status);
191 if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&status)!=0){
200 if(status != expectedStatus){
201 log_err( "Did not get the expected error for %s null terminated source with options set. Expected: %s Got: %s\n",testName, u_errorName(expectedStatus), u_errorName(status));
204 status = U_ZERO_ERROR;
206 destLen = func(tSrc,tSrcLen,NULL,0,options | UIDNA_USE_STD3_RULES, &parseError, &status);
208 if(status == U_BUFFER_OVERFLOW_ERROR){
209 status = U_ZERO_ERROR; /* reset error code*/
212 destLen = func(src,u_strlen(src),dest,destLen+1,options | UIDNA_USE_STD3_RULES, &parseError, &status);
214 if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&status)!=0){
222 if(status != expectedStatus && expectedStatus != U_IDNA_UNASSIGNED_ERROR){
223 log_err( "Did not get the expected error for %s with source length and options set. Expected: %s Got: %s\n",testName, u_errorName(expectedStatus), u_errorName(status));
461 UErrorCode status = U_ZERO_ERROR;
469 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status);
470 if(U_FAILURE(status)){
471 log_err_status(status, "%s failed to convert domainNames[%i].Error: %s \n",testName, i, u_errorName(status));
477 if(U_FAILURE(status)){
478 log_err( "%s failed to convert domainNames[%i].Error: %s \n",testName,i, u_errorName(status));
490 UErrorCode status = U_ZERO_ERROR;
499 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status);
500 if(U_FAILURE(status)){
501 log_err_status(status, "%s failed to convert domainNames[%i].Error: %s \n",testName,i, u_errorName(status));
507 if(U_FAILURE(status)){
508 log_err( "%s failed to convert domainNames[%i].Error: %s \n",testName,i, u_errorName(status));
523 UErrorCode status = U_ZERO_ERROR;
524 int32_t retVal = func(s1,-1,s2,-1,UIDNA_DEFAULT,&status);
529 if(U_FAILURE(status)){
530 log_err_status(status, "%s null terminated source failed. Error: %s\n", testName,u_errorName(status));
533 status = U_ZERO_ERROR;
534 retVal = func(s1,-1,s2,-1,UIDNA_ALLOW_UNASSIGNED,&status);
539 if(U_FAILURE(status)){
540 log_err_status(status, "%s null terminated source and options set failed. Error: %s\n",testName, u_errorName(status));
543 status = U_ZERO_ERROR;
544 retVal = func(s1,s1Len,s2,s2Len,UIDNA_DEFAULT,&status);
549 if(U_FAILURE(status)){
550 log_err_status(status, "%s with string length. Error: %s\n",testName, u_errorName(status));
553 status = U_ZERO_ERROR;
554 retVal = func(s1,s1Len,s2,s2Len,UIDNA_ALLOW_UNASSIGNED,&status);
559 if(U_FAILURE(status)){
560 log_err_status(status, "%s with string length and options set. Error: %s\n", u_errorName(status), testName);
656 UErrorCode status = U_ZERO_ERROR;
662 dest1Len = uidna_toASCII(src1, src1Len, dest1, dest1Len,UIDNA_DEFAULT, &ps, &status);
663 if(U_FAILURE(status)){
664 log_err_status(status, "uidna_toUnicode failed with error %s.\n", u_errorName(status));
668 dest2Len = uidna_toUnicode(src2, src2Len, dest2, dest2Len, UIDNA_DEFAULT, &ps, &status);
669 if(U_FAILURE(status)){
670 log_err_status(status, "uidna_toUnicode failed with error %s.\n", u_errorName(status));
688 UErrorCode status = U_ZERO_ERROR;
691 destLen = uidna_toASCII(src, srcLen, dest, destLen,UIDNA_DEFAULT, &ps, &status);
692 if(U_FAILURE(status)){
693 log_err_status(status, "uidna_toASCII failed with error %s.\n", u_errorName(status));
728 UErrorCode status = U_ZERO_ERROR;
732 destLen = uidna_toUnicode(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status);
733 if(status != U_ZERO_ERROR){
734 log_err_status(status, "uidna_toUnicode failed with error %s.\n", u_errorName(status));
737 status = U_ZERO_ERROR;
740 destLen = uidna_toUnicode(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status);
741 if(status != U_ZERO_ERROR){
742 log_err_status(status, "uidna_toUnicode failed with error %s.\n", u_errorName(status));
744 status = U_ZERO_ERROR;
747 destLen = uidna_toASCII(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status);
748 if(status != U_IDNA_LABEL_TOO_LONG_ERROR){
749 log_err_status(status, "uidna_toASCII failed with error %s.\n", u_errorName(status));
752 status = U_ZERO_ERROR;
755 destLen = uidna_toASCII(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status);
756 if(status != U_IDNA_LABEL_TOO_LONG_ERROR){
757 log_err_status(status, "uidna_toASCII failed with error %s.\n", u_errorName(status));
760 status = U_ZERO_ERROR;
762 destLen = uidna_toASCII(ul1, len1, dest, destLen, UIDNA_DEFAULT, &ps, &status);
763 if(status != U_ZERO_ERROR){
764 log_err_status(status, "uidna_toASCII failed with error %s.\n", u_errorName(status));
767 status = U_ZERO_ERROR;
770 destLen = uidna_toASCII(ul1, len1, dest, destLen, UIDNA_DEFAULT, &ps, &status);
771 if(status != U_ZERO_ERROR){
772 log_err_status(status, "uidna_toASCII failed with error %s.\n", u_errorName(status));
780 UErrorCode status = U_ZERO_ERROR;
785 destLen = uidna_IDNToUnicode(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status);
786 if(status != U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR){
787 log_err_status(status, "uidna_IDNToUnicode failed with error %s.\n", u_errorName(status));
790 status = U_ZERO_ERROR;
793 destLen = uidna_IDNToUnicode(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status);
794 if(status != U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR){
795 log_err_status(status, "uidna_IDNToUnicode failed with error %s.\n", u_errorName(status));
798 status = U_ZERO_ERROR;
801 destLen = uidna_IDNToASCII(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status);
802 if(status != U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR){
803 log_err_status(status, "uidna_IDNToASCII failed with error %s.\n", u_errorName(status));
806 status = U_ZERO_ERROR;
809 destLen = uidna_IDNToASCII(ul, len, dest, destLen, UIDNA_DEFAULT, &ps, &status);
810 if(status != U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR){
811 log_err_status(status, "uidna_IDNToASCII failed with error %s.\n", u_errorName(status));
814 status = U_ZERO_ERROR;
815 uidna_compare(ul, len, ul, len, UIDNA_DEFAULT, &status);
816 if(status != U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR){
817 log_err_status(status, "uidna_compare failed with error %s.\n", u_errorName(status));
819 uidna_compare(ul, -1, ul, -1, UIDNA_DEFAULT, &status);
820 if(status
821 log_err_status(status, "uidna_compare failed with error %s.\n", u_errorName(status));
830 UErrorCode status = U_ZERO_ERROR;
832 int32_t outLen = uidna_toUnicode(invalid_idn, len, output, 50, UIDNA_DEFAULT, &prsError, &status);
833 if(U_FAILURE(status)){
834 log_err_status(status, "uidna_toUnicode failed with error: %s\n", u_errorName(status));
836 status = U_ZERO_ERROR;
837 outLen = uidna_toUnicode(invalid_idn, len, output, 50, UIDNA_USE_STD3_RULES, &prsError, &status);
838 if(U_FAILURE(status)){
839 log_err_status(status, "uidna_toUnicode failed with error: %s\n", u_errorName(status));
842 status = U_ZERO_ERROR;
843 outLen = uidna_IDNToUnicode(invalid_idn, len, output, 50, UIDNA_DEFAULT, &prsError, &status);
844 if(U_FAILURE(status)){
845 log_err_status(status, "uidna_toUnicode failed with error: %s\n", u_errorName(status));
847 status = U_ZERO_ERROR;
848 outLen = uidna_IDNToUnicode(invalid_idn, len, output, 50, UIDNA_USE_STD3_RULES, &prsError, &status);
849 if(U_FAILURE(status)){
850 log_err_status(status, "uidna_toUnicode failed with error: %s\n", u_errorName(status));