Lines Matching refs:status

199                   UErrorCode* status)
233 *status = U_MEMORY_ALLOCATION_ERROR;
251 b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Capacity, namePrepOptions, parseError, status);
253 if(*status == U_BUFFER_OVERFLOW_ERROR){
261 *status = U_MEMORY_ALLOCATION_ERROR;
265 *status = U_ZERO_ERROR; // reset error
267 b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Len, namePrepOptions, parseError, status);
271 if(U_FAILURE(*status)){
275 *status = U_IDNA_ZERO_LENGTH_LABEL_ERROR;
299 *status = U_IDNA_STD3_ASCII_RULES_ERROR;
336 b2Len = u_strToPunycode(b1,b1Len,b2,b2Capacity,caseFlags, status);
338 if(*status == U_BUFFER_OVERFLOW_ERROR){
343 *status = U_MEMORY_ALLOCATION_ERROR;
347 *status = U_ZERO_ERROR; // reset error
349 b2Len = u_strToPunycode(b1,b1Len,b2,b2Len,caseFlags, status);
352 if(U_FAILURE(*status)){
361 *status = U_BUFFER_OVERFLOW_ERROR;
370 *status = U_IDNA_ACE_PREFIX_ERROR;
378 *status = U_IDNA_LABEL_TOO_LONG_ERROR;
390 return u_terminateUChars(dest, destCapacity, reqLength, status);
399 UErrorCode* status)
457 b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Capacity, namePrepOptions, parseError, status);
458 if(*status == U_BUFFER_OVERFLOW_ERROR){
463 *status = U_MEMORY_ALLOCATION_ERROR;
467 *status = U_ZERO_ERROR; // reset error
469 b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Len, namePrepOptions, parseError, status);
472 if(U_FAILURE(*status)){
496 b2Len = u_strFromPunycode(b1Prime, b1PrimeLen, b2, b2Capacity, caseFlags,status);
498 if(*status == U_BUFFER_OVERFLOW_ERROR){
503 *status = U_MEMORY_ALLOCATION_ERROR;
507 *status = U_ZERO_ERROR; // reset error
509 b2Len = u_strFromPunycode(b1Prime, b1PrimeLen, b2, b2Len, caseFlags, status);
514 b3Len = uidna_toASCII(b2, b2Len, b3, b3Capacity, options, parseError, status);
516 if(*status == U_BUFFER_OVERFLOW_ERROR){
521 *status = U_MEMORY_ALLOCATION_ERROR;
525 *status = U_ZERO_ERROR; // reset error
527 b3Len = uidna_toASCII(b2,b2Len,b3,b3Len,options,parseError, status);
531 if(U_FAILURE(*status)){
538 *status = U_IDNA_VERIFICATION_ERROR;
554 *status = U_IDNA_STD3_ASCII_RULES_ERROR;
596 if(U_FAILURE(*status)){
604 *status = U_ZERO_ERROR;
607 return u_terminateUChars(dest, destCapacity, reqLength, status);
615 UErrorCode* status){
617 if(status == NULL || U_FAILURE(*status)){
621 *status = U_ILLEGAL_ARGUMENT_ERROR;
625 UStringPrepProfile* nameprep = usprep_openByType(USPREP_RFC3491_NAMEPREP, status);
627 if(U_FAILURE(*status)){
631 int32_t retLen = _internal_toASCII(src, srcLength, dest, destCapacity, options, nameprep, parseError, status);
644 UErrorCode* status){
646 if(status == NULL || U_FAILURE(*status)){
650 *status = U_ILLEGAL_ARGUMENT_ERROR;
654 UStringPrepProfile* nameprep = usprep_openByType(USPREP_RFC3491_NAMEPREP, status);
656 if(U_FAILURE(*status)){
660 int32_t retLen = _internal_toUnicode(src, srcLength, dest, destCapacity, options, nameprep, parseError, status);
673 UErrorCode *status){
675 if(status == NULL || U_FAILURE(*status)){
679 *status = U_ILLEGAL_ARGUMENT_ERROR;
685 UStringPrepProfile* nameprep = usprep_openByType(USPREP_RFC3491_NAMEPREP, status);
687 if(U_FAILURE(*status)){
710 parseError, status);
712 if(*status == U_BUFFER_OVERFLOW_ERROR){
714 *status = U_ZERO_ERROR; // reset error
720 if(U_FAILURE(*status)){
753 *status = U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR;
758 return u_terminateUChars(dest, destCapacity, reqLength, status);
766 UErrorCode* status){
768 if(status == NULL || U_FAILURE(*status)){
772 *status = U_ILLEGAL_ARGUMENT_ERROR;
778 UStringPrepProfile* nameprep = usprep_openByType(USPREP_RFC3491_NAMEPREP, status);
780 if(U_FAILURE(*status)){
804 *status = U_IDNA_ZERO_LENGTH_LABEL_ERROR;
811 parseError, status);
813 if(*status == U_BUFFER_OVERFLOW_ERROR){
814 *status = U_ZERO_ERROR; // reset error
818 if(U_FAILURE(*status)){
852 *status = U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR;
857 return u_terminateUChars(dest, destCapacity, reqLength, status);
864 UErrorCode* status){
866 if(status == NULL || U_FAILURE(*status)){
877 b1Len = uidna_IDNToASCII(s1, length1, b1, b1Capacity, options, &parseError, status);
878 if(*status == U_BUFFER_OVERFLOW_ERROR){
882 *status = U_MEMORY_ALLOCATION_ERROR;
886 *status = U_ZERO_ERROR; // reset error
888 b1Len = uidna_IDNToASCII(s1,length1,b1,b1Len, options, &parseError, status);
892 b2Len = uidna_IDNToASCII(s2,length2, b2,b2Capacity, options, &parseError, status);
893 if(*status == U_BUFFER_OVERFLOW_ERROR){
897 *status = U_MEMORY_ALLOCATION_ERROR;
901 *status = U_ZERO_ERROR; // reset error
903 b2Len = uidna_IDNToASCII(s2, length2, b2, b2Len, options, &parseError, status);