Lines Matching refs:b1Len
135 int32_t b1Len = 0, b1Capacity = MAX_LABEL_BUFFER_SIZE; in convertToPuny() local
143 u_strToUTF32((UChar32*)b1,b1Capacity,&b1Len,src,srcLength,&status); in convertToPuny()
147 b1 = (uint32_t*) uprv_malloc(b1Len * sizeof(uint32_t)); in convertToPuny()
155 u_strToUTF32((UChar32*)b1,b1Len,&b1Len,src,srcLength,&status); in convertToPuny()
163 error = punycode_encode(b1Len,b1,caseFlags, (uint32_t*)&b2Len, b2); in convertToPuny()
176 punycode_status error = punycode_encode(b1Len,b1,caseFlags, (uint32_t*)&b2Len, b2); in convertToPuny()
273 int32_t b1Len=0, b2Len=0, in idnaref_toASCII() local
299 b1[b1Len++] = src[j]; in idnaref_toASCII()
309 b1Len = prep->process(src,srcLength,b1, b1Capacity,allowUnassigned,parseError,*status); in idnaref_toASCII()
314 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toASCII()
322 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status); in idnaref_toASCII()
330 if(b1Len == 0){ in idnaref_toASCII()
337 for( j=0;j<b1Len;j++){ in idnaref_toASCII()
348 || b1[0] == HYPHEN || b1[b1Len-1] == HYPHEN){ in idnaref_toASCII()
354 if(b1Len <= destCapacity){ in idnaref_toASCII()
355 u_memmove(dest, b1, b1Len); in idnaref_toASCII()
356 reqLength = b1Len; in idnaref_toASCII()
358 reqLength = b1Len; in idnaref_toASCII()
363 if(!startsWithPrefix(b1,b1Len)){ in idnaref_toASCII()
368 b2Len = convertToPuny(b1,b1Len, b2,b2Capacity,*status); in idnaref_toASCII()
381 b2Len = convertToPuny(b1, b1Len, b2, b2Len, *status); in idnaref_toASCII()
446 int32_t b1Len, b2Len, b1PrimeLen, b3Len, in idnaref_toUnicode() local
454 b1Len = 0; in idnaref_toUnicode()
499 b1Len = prep->process(src,srcLength,b1,b1Capacity,allowUnassigned, parseError, *status); in idnaref_toUnicode()
503 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toUnicode()
511 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status); in idnaref_toUnicode()
531 b1Len = srcLength; in idnaref_toUnicode()
538 b1PrimeLen = b1Len - ACE_PREFIX_LENGTH; in idnaref_toUnicode()
583 if(compareCaseInsensitiveASCII(b1, b1Len, b3, b3Len) !=0){ in idnaref_toUnicode()
713 int32_t b1Len, labelLen; in idnaref_IDNToASCII() local
737 b1Len = 0; in idnaref_IDNToASCII()
740 b1Len = idnaref_toASCII(labelStart, labelLen, b1, b1Capacity, in idnaref_IDNToASCII()
746 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToASCII()
754 b1Len = idnaref_toASCII(labelStart, labelLen, b1, b1Len, in idnaref_IDNToASCII()
763 int32_t tempLen = (reqLength + b1Len ); in idnaref_IDNToASCII()
766 u_memmove(dest+reqLength, b1, b1Len); in idnaref_IDNToASCII()
790 b1Len = idnaref_toASCII(labelStart, labelLen, b1, b1Capacity, in idnaref_IDNToASCII()
796 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToASCII()
804 b1Len = idnaref_toASCII(labelStart, labelLen, b1, b1Len, in idnaref_IDNToASCII()
812 int32_t tempLen = (reqLength + b1Len ); in idnaref_IDNToASCII()
815 u_memmove(dest+reqLength, b1, b1Len); in idnaref_IDNToASCII()
869 int32_t b1Len, labelLen; in idnaref_IDNToUnicode() local
895 b1Len = idnaref_toUnicode(labelStart, labelLen, b1, b1Capacity, in idnaref_IDNToUnicode()
901 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToUnicode()
909 b1Len = idnaref_toUnicode( labelStart, labelLen, b1, b1Len, in idnaref_IDNToUnicode()
917 int32_t tempLen = (reqLength + b1Len ); in idnaref_IDNToUnicode()
920 u_memmove(dest+reqLength, b1, b1Len); in idnaref_IDNToUnicode()
947 b1Len = idnaref_toUnicode( labelStart,labelLen, b1, b1Capacity, in idnaref_IDNToUnicode()
953 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToUnicode()
961 b1Len = idnaref_toUnicode( labelStart, labelLen, b1, b1Len, in idnaref_IDNToUnicode()
969 int32_t tempLen = (reqLength + b1Len ); in idnaref_IDNToUnicode()
972 u_memmove(dest+reqLength, b1, b1Len); in idnaref_IDNToUnicode()
1013 int32_t b1Len, b2Len, b1Capacity = MAX_IDN_BUFFER_SIZE, b2Capacity = MAX_IDN_BUFFER_SIZE; in idnaref_compare() local
1018 b1Len = idnaref_IDNToASCII(s1, length1, b1, b1Capacity, options, &parseError, status); in idnaref_compare()
1022 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_compare()
1030 b1Len = idnaref_IDNToASCII(s1,length1,b1,b1Len, options, &parseError, status); in idnaref_compare()
1050 result = compareCaseInsensitiveASCII(b1,b1Len,b2,b2Len); in idnaref_compare()