Lines Matching refs:b2Len
137 int32_t b2Len =MAX_LABEL_BUFFER_SIZE ; in convertToPuny() local
161 error = punycode_encode(b1Len,b1,caseFlags, (uint32_t*)&b2Len, b2); in convertToPuny()
166 b2 = (char*) uprv_malloc( b2Len * sizeof(char)); in convertToPuny()
174 punycode_status error = punycode_encode(b1Len,b1,caseFlags, (uint32_t*)&b2Len, b2); in convertToPuny()
181 if(b2Len < destCapacity){ in convertToPuny()
182 convertASCIIToUChars(b2,dest,b2Len); in convertToPuny()
196 return b2Len; in convertToPuny()
210 int32_t b2Len =MAX_LABEL_BUFFER_SIZE; in convertFromPuny() local
212 punycode_status error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags); in convertFromPuny()
215 b2 = (uint32_t*) uprv_malloc(b2Len * sizeof(uint32_t)); in convertFromPuny()
220 error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags); in convertFromPuny()
228 u_strFromUTF32(dest,destCapacity,&destLen,(UChar32*)b2,b2Len,&status); in convertFromPuny()
260 int32_t b1Len=0, b2Len=0, in idnaref_toASCII() local
355 b2Len = convertToPuny(b1,b1Len, b2,b2Capacity,*status); in idnaref_toASCII()
360 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in idnaref_toASCII()
368 b2Len = convertToPuny(b1, b1Len, b2, b2Len, *status); in idnaref_toASCII()
376 reqLength = b2Len+ACE_PREFIX_LENGTH; in idnaref_toASCII()
385 uprv_memcpy(dest+ACE_PREFIX_LENGTH, b2, b2Len * U_SIZEOF_UCHAR); in idnaref_toASCII()
433 int32_t b1Len, b2Len, b1PrimeLen, b3Len, in idnaref_toUnicode() local
528 b2Len = convertFromPuny(b1Prime,b1PrimeLen, b2, b2Capacity, *status); in idnaref_toUnicode()
534 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in idnaref_toUnicode()
542 b2Len = convertFromPuny(b1Prime,b1PrimeLen, b2, b2Len, *status); in idnaref_toUnicode()
548 b3Len = idnaref_toASCII(b2,b2Len,b3,b3Capacity,options,parseError, status); in idnaref_toUnicode()
561 b3Len = idnaref_toASCII(b2,b2Len,b3,b3Len, options, parseError, status); in idnaref_toUnicode()
576 reqLength = b2Len; in idnaref_toUnicode()
577 if(b2Len <= destCapacity) { in idnaref_toUnicode()
578 uprv_memmove(dest, b2, b2Len * U_SIZEOF_UCHAR); in idnaref_toUnicode()
1000 int32_t b1Len, b2Len, b1Capacity = MAX_IDN_BUFFER_SIZE, b2Capacity = MAX_IDN_BUFFER_SIZE; in idnaref_compare() local
1021 b2Len = idnaref_IDNToASCII(s2,length2,b2,b2Capacity,options, &parseError, status); in idnaref_compare()
1025 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in idnaref_compare()
1033 b2Len = idnaref_IDNToASCII(s2,length2,b2,b2Len,options, &parseError, status); in idnaref_compare()
1037 result = compareCaseInsensitiveASCII(b1,b1Len,b2,b2Len); in idnaref_compare()