Lines Matching refs:status
99 static UErrorCode getError(enum punycode_status status){
100 switch(status){
131 UErrorCode& status){
141 u_strToUTF32((UChar32*)b1,b1Capacity,&b1Len,src,srcLength,&status);
142 if(status == U_BUFFER_OVERFLOW_ERROR){
147 status = U_MEMORY_ALLOCATION_ERROR;
151 status = U_ZERO_ERROR; // reset error
153 u_strToUTF32((UChar32*)b1,b1Len,&b1Len,src,srcLength,&status);
155 if(U_FAILURE(status)){
162 status = getError(error);
164 if(status == U_BUFFER_OVERFLOW_ERROR){
168 status = U_MEMORY_ALLOCATION_ERROR;
172 status = U_ZERO_ERROR; // reset error
175 status = getError(error);
177 if(U_FAILURE(status)){
184 status =U_BUFFER_OVERFLOW_ERROR;
201 UErrorCode& status){
213 status = getError(error);
214 if(status == U_BUFFER_OVERFLOW_ERROR){
217 status = U_MEMORY_ALLOCATION_ERROR;
221 status = getError(error);
224 if(U_FAILURE(status)){
228 u_strFromUTF32(dest,destCapacity,&destLen,(UChar32*)b2,b2Len,&status);
248 UErrorCode* status){
250 if(status == NULL || U_FAILURE(*status)){
254 *status = U_ILLEGAL_ARGUMENT_ERROR;
289 NamePrepTransform* prep = TestIDNA::getInstance(*status);
291 if(U_FAILURE(*status)){
295 b1Len = prep->process(src,srcLength,b1, b1Capacity,allowUnassigned,parseError,*status);
297 if(*status == U_BUFFER_OVERFLOW_ERROR){
302 *status = U_MEMORY_ALLOCATION_ERROR;
306 *status = U_ZERO_ERROR; // reset error
308 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status);
311 if(U_FAILURE(*status)){
316 *status = U_IDNA_ZERO_LENGTH_LABEL_ERROR;
334 *status = U_IDNA_STD3_ASCII_RULES_ERROR;
353 b2Len = convertToPuny(b1,b1Len, b2,b2Capacity,*status);
354 //b2Len = u_strToPunycode(b2,b2Capacity,b1,b1Len, caseFlags, status);
355 if(*status == U_BUFFER_OVERFLOW_ERROR){
360 *status = U_MEMORY_ALLOCATION_ERROR;
364 *status = U_ZERO_ERROR; // reset error
366 b2Len = convertToPuny(b1, b1Len, b2, b2Len, *status);
367 //b2Len = u_strToPunycode(b2,b2Len,b1,b1Len, caseFlags, status);
371 if(U_FAILURE(*status)){
377 *status = U_BUFFER_OVERFLOW_ERROR;
386 *status = U_IDNA_ACE_PREFIX_ERROR;
392 *status = U_IDNA_LABEL_TOO_LONG_ERROR;
406 return u_terminateUChars(dest, destCapacity, reqLength, status);
415 UErrorCode* status){
417 if(status == NULL || U_FAILURE(*status)){
421 *status = U_ILLEGAL_ARGUMENT_ERROR;
438 NamePrepTransform* prep = TestIDNA::getInstance(*status);
450 if(U_FAILURE(*status)){
484 b1Len = prep->process(src,srcLength,b1,b1Capacity,allowUnassigned, parseError, *status);
485 if(*status == U_BUFFER_OVERFLOW_ERROR){
490 *status = U_MEMORY_ALLOCATION_ERROR;
494 *status = U_ZERO_ERROR; // reset error
496 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status);
499 if(U_FAILURE(*status)){
511 *status = U_MEMORY_ALLOCATION_ERROR;
526 b2Len = convertFromPuny(b1Prime,b1PrimeLen, b2, b2Capacity, *status);
527 //b2Len = u_strFromPunycode(b2, b2Capacity,b1Prime,b1PrimeLen, caseFlags, status);
529 if(*status == U_BUFFER_OVERFLOW_ERROR){
534 *status = U_MEMORY_ALLOCATION_ERROR;
538 *status = U_ZERO_ERROR; // reset error
540 b2Len = convertFromPuny(b1Prime,b1PrimeLen, b2, b2Len, *status);
541 //b2Len = u_strFromPunycode(b2, b2Len,b1Prime,b1PrimeLen,caseFlags, status);
546 b3Len = idnaref_toASCII(b2,b2Len,b3,b3Capacity,options,parseError, status);
548 if(*status == U_BUFFER_OVERFLOW_ERROR){
553 *status = U_MEMORY_ALLOCATION_ERROR;
557 *status = U_ZERO_ERROR; // reset error
559 b3Len = idnaref_toASCII(b2,b2Len,b3,b3Len, options, parseError, status);
563 if(U_FAILURE(*status)){
569 *status = U_IDNA_VERIFICATION_ERROR;
583 *status = U_IDNA_STD3_ASCII_RULES_ERROR;
623 if(U_FAILURE(*status)){
633 *status = U_ZERO_ERROR;
635 return u_terminateUChars(dest, destCapacity, reqLength, status);
643 UErrorCode *status){
652 if(prep->isLabelSeparator(src[i],*status)){
661 if(prep->isLabelSeparator(src[i],*status)){
680 UErrorCode* status){
682 if(status == NULL || U_FAILURE(*status)){
686 *status = U_ILLEGAL_ARGUMENT_ERROR;
693 NamePrepTransform* prep = TestIDNA::getInstance(*status);
709 if(U_FAILURE(*status)){
721 labelLen = getNextSeparator(labelStart, -1, prep, &delimiter, &done, status);
726 options, parseError, status);
728 if(*status == U_BUFFER_OVERFLOW_ERROR){
733 *status = U_MEMORY_ALLOCATION_ERROR;
737 *status = U_ZERO_ERROR; // reset error
740 options, parseError, status);
745 if(U_FAILURE(*status)){
773 labelLen = getNextSeparator(labelStart, remainingLen, prep, &delimiter, &done, status);
776 options,parseError, status);
778 if(*status == U_BUFFER_OVERFLOW_ERROR){
783 *status = U_MEMORY_ALLOCATION_ERROR;
787 *status = U_ZERO_ERROR; // reset error
790 options, parseError, status);
794 if(U_FAILURE(*status)){
827 return u_terminateUChars(dest, destCapacity, reqLength, status);
835 UErrorCode* status){
837 if(status == NULL || U_FAILURE(*status)){
841 *status = U_ILLEGAL_ARGUMENT_ERROR;
849 NamePrepTransform* prep = TestIDNA::getInstance(*status);
864 if(U_FAILURE(*status)){
875 labelLen = getNextSeparator(labelStart, -1, prep, &delimiter, &done, status);
878 *status = U_IDNA_ZERO_LENGTH_LABEL_ERROR;
881 options, parseError, status);
883 if(*status == U_BUFFER_OVERFLOW_ERROR){
888 *status = U_MEMORY_ALLOCATION_ERROR;
892 *status = U_ZERO_ERROR; // reset error
895 options, parseError, status);
899 if(U_FAILURE(*status)){
926 labelLen = getNextSeparator(labelStart, remainingLen, prep, &delimiter, &done, status);
929 *status = U_IDNA_ZERO_LENGTH_LABEL_ERROR;
933 options, parseError, status);
935 if(*status == U_BUFFER_OVERFLOW_ERROR){
940 *status = U_MEMORY_ALLOCATION_ERROR;
944 *status = U_ZERO_ERROR; // reset error
947 options, parseError, status);
951 if(U_FAILURE(*status)){
983 return u_terminateUChars(dest, destCapacity, reqLength, status);
990 UErrorCode* status){
992 if(status == NULL || U_FAILURE(*status)){
1003 b1Len = idnaref_IDNToASCII(s1, length1, b1, b1Capacity, options, &parseError, status);
1004 if(*status == U_BUFFER_OVERFLOW_ERROR){
1009 *status = U_MEMORY_ALLOCATION_ERROR;
1013 *status = U_ZERO_ERROR; // reset error
1015 b1Len = idnaref_IDNToASCII(s1,length1,b1,b1Len, options, &parseError, status);
1019 b2Len = idnaref_IDNToASCII(s2,length2,b2,b2Capacity,options, &parseError, status);
1020 if(*status == U_BUFFER_OVERFLOW_ERROR){
1025 *status = U_MEMORY_ALLOCATION_ERROR;
1029 *status = U_ZERO_ERROR; // reset error
1031 b2Len = idnaref_IDNToASCII(s2,length2,b2,b2Len,options, &parseError, status);