/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; in process() local 208 b1Len = map(src, srcLength, b1, b1String.getCapacity(), allowUnassigned, parseError, status); in process() 209 b1String.releaseBuffer(b1Len); in process() 214 b1 = b1String.getBuffer(b1Len); in process() 216 … b1Len = map(src, srcLength, b1, b1String.getCapacity(), allowUnassigned, parseError, status); in process() 217 b1String.releaseBuffer(b1Len); in process() 221 b1Len = 0; in process() 226 for(; b1Index<b1Len; ){ in process() 230 U16_NEXT(b1, b1Index, b1Len, ch); in process() 234 b1Len = 0; in process() [all …]
|
/external/icu4c/common/ |
D | uidna.cpp | 206 int32_t b1Len=0, b2Len, in _internal_toASCII() local 244 b1[b1Len++] = src[j]; in _internal_toASCII() 251 …b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Capacity, namePrepOptions, parseError, stat… in _internal_toASCII() 259 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in _internal_toASCII() 267 … b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Len, namePrepOptions, parseError, status); in _internal_toASCII() 274 if(b1Len == 0){ in _internal_toASCII() 281 for( j=0;j<b1Len;j++){ in _internal_toASCII() 298 || b1[0] == HYPHEN || b1[b1Len-1] == HYPHEN){ in _internal_toASCII() 304 uprv_syntaxError(b1,failPos, b1Len,parseError); in _internal_toASCII() 307 uprv_syntaxError(b1,0,b1Len,parseError); in _internal_toASCII() [all …]
|
D | usprep.cpp | 686 int32_t b1Len, b2Len=0, in usprep_prepare() local 700 b1Len = usprep_map(profile, src, srcLength, b1, b1Capacity, options, parseError, status); in usprep_prepare() 705 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in usprep_prepare() 713 b1Len = usprep_map(profile, src, srcLength, b1, b1Len, options, parseError, status); in usprep_prepare() 719 b2Len = usprep_normalize(b1,b1Len, b2,b2Capacity,status); in usprep_prepare() 732 b2Len = usprep_normalize(b1,b1Len, b2,b2Len,status); in usprep_prepare() 738 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 | 301 b1Len = 0, in unescapeData() local 306 b1Len = u_unescape(src,b1,b1Capacity); in unescapeData() 308 u_strToUTF8(dest, destCapacity, &destLen, b1, b1Len, status); in unescapeData()
|