Home
last modified time | relevance | path

Searched refs:b1Len (Results 1 – 6 of 6) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Didnaref.cpp135 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()
[all …]
Dnptrans.cpp201 int32_t b1Len; in process() local
207 b1Len = map(src, srcLength, b1, b1String.getCapacity(), allowUnassigned, parseError, status); in process()
208 b1String.releaseBuffer(b1Len); in process()
213 b1 = b1String.getBuffer(b1Len); in process()
215b1Len = map(src, srcLength, b1, b1String.getCapacity(), allowUnassigned, parseError, status); in process()
216 b1String.releaseBuffer(b1Len); in process()
220 b1Len = 0; in process()
225 for(; b1Index<b1Len; ){ in process()
229 U16_NEXT(b1, b1Index, b1Len, ch); in process()
233 b1Len = 0; in process()
[all …]
/external/icu/icu4c/source/common/
Duidna.cpp206 int32_t b1Len=0, b2Len, in _internal_toASCII() local
244 b1[b1Len++] = src[j]; in _internal_toASCII()
251b1Len = 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()
267b1Len = 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 …]
Dusprep.cpp670 int32_t b1Len = usprep_map(profile, src, srcLength, in usprep_prepare() local
672 s1.releaseBuffer(U_SUCCESS(*status) ? b1Len : 0); in usprep_prepare()
677 b1 = s1.getBuffer(b1Len); in usprep_prepare()
684 b1Len = usprep_map(profile, src, srcLength, in usprep_prepare()
686 s1.releaseBuffer(U_SUCCESS(*status) ? b1Len : 0); in usprep_prepare()
/external/icu/icu4c/source/test/cintltst/
Dnfsprep.c55 int32_t b1Len=0, b2Len=0, b3Len=0, in nfs4_prepare() local
75 u_strFromUTF8(b1,b1Capacity,&b1Len,src,srcLength,status); in nfs4_prepare()
81 b1 = (UChar*) malloc(b1Len * U_SIZEOF_UCHAR); in nfs4_prepare()
87 b1Capacity = b1Len; in nfs4_prepare()
88 u_strFromUTF8(b1, b1Capacity, &b1Len, src, srcLength, status); in nfs4_prepare()
94 b2Len = usprep_prepare(profile, b1, b1Len, b2, b2Capacity, USPREP_DEFAULT, parseError, status); in nfs4_prepare()
102 b2Len = usprep_prepare(profile, b1, b1Len, b2, b2Len, USPREP_DEFAULT, parseError, status); in nfs4_prepare()
Dspreptst.c302 b1Len = 0, in unescapeData() local
307 b1Len = u_unescape(src,b1,b1Capacity); in unescapeData()
309 u_strToUTF8(dest, destCapacity, &destLen, b1, b1Len, status); in unescapeData()