/external/icu4c/test/intltest/ |
D | idnaref.cpp | 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() 295 b1Len = prep->process(src,srcLength,b1, b1Capacity,allowUnassigned,parseError,*status); in idnaref_toASCII() 300 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toASCII() [all …]
|
D | nptrans.cpp | 202 int32_t b1Len,b1Capacity = MAX_BUFFER_SIZE; in process() local 208 b1Len = map(src,srcLength, b1, b1Capacity,allowUnassigned,parseError, status); in process() 213 if(!u_growBufferFromStatic(b1Stack,&b1,&b1Capacity,b1Len,0)){ in process() 220 b1Len = map(src,srcLength, b1, b1Len,allowUnassigned, parseError, status); in process() 229 for(; b1Index<b1Len; ){ in process() 233 U16_NEXT(b1, b1Index, b1Len, ch); in process() 267 if(b1Len <= destCapacity){ in process() 268 uprv_memmove(dest,b1, b1Len*U_SIZEOF_UCHAR); in process() 276 return u_terminateUChars(dest, destCapacity, b1Len, &status); in process()
|
/external/icu4c/common/ |
D | uidna.cpp | 208 int32_t b1Len=0, b2Len, in _internal_toASCII() local 246 b1[b1Len++] = src[j]; in _internal_toASCII() 253 …b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Capacity, namePrepOptions, parseError, stat… in _internal_toASCII() 261 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in _internal_toASCII() 269 … b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Len, namePrepOptions, parseError, status); in _internal_toASCII() 276 if(b1Len == 0){ in _internal_toASCII() 283 for( j=0;j<b1Len;j++){ in _internal_toASCII() 300 || b1[0] == HYPHEN || b1[b1Len-1] == HYPHEN){ in _internal_toASCII() 306 uprv_syntaxError(b1,failPos, b1Len,parseError); in _internal_toASCII() 309 uprv_syntaxError(b1,0,b1Len,parseError); in _internal_toASCII() [all …]
|
D | usprep.cpp | 691 int32_t b1Len, b2Len=0, in usprep_prepare() local 705 b1Len = usprep_map(profile, src, srcLength, b1, b1Capacity, options, parseError, status); in usprep_prepare() 710 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in usprep_prepare() 718 b1Len = usprep_map(profile, src, srcLength, b1, b1Len, options, parseError, status); in usprep_prepare() 724 b2Len = usprep_normalize(b1,b1Len, b2,b2Capacity,status); in usprep_prepare() 737 b2Len = usprep_normalize(b1,b1Len, b2,b2Len,status); in usprep_prepare() 743 b2Len = b1Len; in usprep_prepare()
|
/external/icu4c/test/cintltst/ |
D | nfsprep.c | 53 int32_t b1Len=0, b2Len=0, b3Len=0, in nfs4_prepare() local 73 u_strFromUTF8(b1,b1Capacity,&b1Len,src,srcLength,status); in nfs4_prepare() 79 b1 = (UChar*) malloc(b1Len * U_SIZEOF_UCHAR); in nfs4_prepare() 85 b1Capacity = b1Len; in nfs4_prepare() 86 u_strFromUTF8(b1, b1Capacity, &b1Len, src, srcLength, status); in nfs4_prepare() 92 b2Len = usprep_prepare(profile, b1, b1Len, b2, b2Capacity, USPREP_DEFAULT, parseError, status); in nfs4_prepare() 100 b2Len = usprep_prepare(profile, b1, b1Len, b2, b2Len, USPREP_DEFAULT, parseError, status); in nfs4_prepare()
|
D | spreptst.c | 294 b1Len = 0, in unescapeData() local 299 b1Len = u_unescape(src,b1,b1Capacity); in unescapeData() 301 u_strToUTF8(dest, destCapacity, &destLen, b1, b1Len, status); in unescapeData()
|