Lines Matching refs:b1Len
133 int32_t b1Len = 0, b1Capacity = MAX_LABEL_BUFFER_SIZE; in convertToPuny() local
141 u_strToUTF32((UChar32*)b1,b1Capacity,&b1Len,src,srcLength,&status); in convertToPuny()
145 b1 = (uint32_t*) uprv_malloc(b1Len * sizeof(uint32_t)); in convertToPuny()
153 u_strToUTF32((UChar32*)b1,b1Len,&b1Len,src,srcLength,&status); in convertToPuny()
161 error = punycode_encode(b1Len,b1,caseFlags, (uint32_t*)&b2Len, b2); in convertToPuny()
174 punycode_status error = punycode_encode(b1Len,b1,caseFlags, (uint32_t*)&b2Len, b2); in convertToPuny()
260 int32_t b1Len=0, b2Len=0, in idnaref_toASCII() local
286 b1[b1Len++] = src[j]; in idnaref_toASCII()
296 b1Len = prep->process(src,srcLength,b1, b1Capacity,allowUnassigned,parseError,*status); in idnaref_toASCII()
301 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toASCII()
309 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status); in idnaref_toASCII()
317 if(b1Len == 0){ in idnaref_toASCII()
324 for( j=0;j<b1Len;j++){ in idnaref_toASCII()
335 || b1[0] == HYPHEN || b1[b1Len-1] == HYPHEN){ in idnaref_toASCII()
341 if(b1Len <= destCapacity){ in idnaref_toASCII()
342 uprv_memmove(dest, b1, b1Len * U_SIZEOF_UCHAR); in idnaref_toASCII()
343 reqLength = b1Len; in idnaref_toASCII()
345 reqLength = b1Len; in idnaref_toASCII()
350 if(!startsWithPrefix(b1,b1Len)){ in idnaref_toASCII()
355 b2Len = convertToPuny(b1,b1Len, b2,b2Capacity,*status); in idnaref_toASCII()
368 b2Len = convertToPuny(b1, b1Len, b2, b2Len, *status); in idnaref_toASCII()
433 int32_t b1Len, b2Len, b1PrimeLen, b3Len, in idnaref_toUnicode() local
441 b1Len = 0; in idnaref_toUnicode()
486 b1Len = prep->process(src,srcLength,b1,b1Capacity,allowUnassigned, parseError, *status); in idnaref_toUnicode()
490 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toUnicode()
498 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status); in idnaref_toUnicode()
518 b1Len = srcLength; in idnaref_toUnicode()
525 b1PrimeLen = b1Len - ACE_PREFIX_LENGTH; in idnaref_toUnicode()
570 if(compareCaseInsensitiveASCII(b1, b1Len, b3, b3Len) !=0){ in idnaref_toUnicode()
700 int32_t b1Len, labelLen; in idnaref_IDNToASCII() local
724 b1Len = 0; in idnaref_IDNToASCII()
727 b1Len = idnaref_toASCII(labelStart, labelLen, b1, b1Capacity, in idnaref_IDNToASCII()
733 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToASCII()
741 b1Len = idnaref_toASCII(labelStart, labelLen, b1, b1Len, in idnaref_IDNToASCII()
750 int32_t tempLen = (reqLength + b1Len ); in idnaref_IDNToASCII()
753 uprv_memmove(dest+reqLength, b1, b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToASCII()
777 b1Len = idnaref_toASCII(labelStart, labelLen, b1, b1Capacity, in idnaref_IDNToASCII()
783 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToASCII()
791 b1Len = idnaref_toASCII(labelStart, labelLen, b1, b1Len, in idnaref_IDNToASCII()
799 int32_t tempLen = (reqLength + b1Len ); in idnaref_IDNToASCII()
802 uprv_memmove(dest+reqLength, b1, b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToASCII()
856 int32_t b1Len, labelLen; in idnaref_IDNToUnicode() local
882 b1Len = idnaref_toUnicode(labelStart, labelLen, b1, b1Capacity, in idnaref_IDNToUnicode()
888 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToUnicode()
896 b1Len = idnaref_toUnicode( labelStart, labelLen, b1, b1Len, in idnaref_IDNToUnicode()
904 int32_t tempLen = (reqLength + b1Len ); in idnaref_IDNToUnicode()
907 uprv_memmove(dest+reqLength, b1, b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToUnicode()
934 b1Len = idnaref_toUnicode( labelStart,labelLen, b1, b1Capacity, in idnaref_IDNToUnicode()
940 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToUnicode()
948 b1Len = idnaref_toUnicode( labelStart, labelLen, b1, b1Len, in idnaref_IDNToUnicode()
956 int32_t tempLen = (reqLength + b1Len ); in idnaref_IDNToUnicode()
959 uprv_memmove(dest+reqLength, b1, b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToUnicode()
1000 int32_t b1Len, b2Len, b1Capacity = MAX_IDN_BUFFER_SIZE, b2Capacity = MAX_IDN_BUFFER_SIZE; in idnaref_compare() local
1005 b1Len = idnaref_IDNToASCII(s1, length1, b1, b1Capacity, options, &parseError, status); in idnaref_compare()
1009 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_compare()
1017 b1Len = idnaref_IDNToASCII(s1,length1,b1,b1Len, options, &parseError, status); in idnaref_compare()
1037 result = compareCaseInsensitiveASCII(b1,b1Len,b2,b2Len); in idnaref_compare()