Home
last modified time | relevance | path

Searched refs:destLength (Results 1 – 25 of 33) sorted by relevance

12

/external/icu/icu4c/source/common/
Dpunycode.cpp190 int32_t n, delta, handledCPCount, basicLength, destLength, bias, j, m, q, k, t, srcCPCount; in u_strToPunycode() local
207 srcCPCount=destLength=0; in u_strToPunycode()
221 if(destLength<destCapacity) { in u_strToPunycode()
222 dest[destLength]= in u_strToPunycode()
227 ++destLength; in u_strToPunycode()
254 if(destLength<destCapacity) { in u_strToPunycode()
255 dest[destLength]= in u_strToPunycode()
260 ++destLength; in u_strToPunycode()
279 basicLength=destLength; in u_strToPunycode()
281 if(destLength<destCapacity) { in u_strToPunycode()
[all …]
Dushape.cpp1428 int32_t destLength; in u_shapeArabic() local
1605destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,2,shapeVars); in u_shapeArabic()
1608destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,1,shapeVars); in u_shapeArabic()
1612destLength = handleTashkeelWithTatweel(tempbuffer,destLength,destCapacity,options,pErrorCode); in u_shapeArabic()
1618destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,0,shapeVars); in u_shapeArabic()
1623destLength = deShapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,shapeVars); in u_shapeArabic()
1627 destLength = 0; in u_shapeArabic()
1639 countSpaces(tempbuffer,destLength,options,&spacesCountl,&spacesCountr); in u_shapeArabic()
1640 invertBuffer(tempbuffer,destLength,options,spacesCountl,spacesCountr); in u_shapeArabic()
1642 u_memcpy(dest, tempbuffer, uprv_min(destLength, destCapacity)); in u_shapeArabic()
[all …]
Ducasemap.cpp158 int32_t destLength; in appendResult() local
161 (char *)(dest+destIndex), destCapacity-destIndex, &destLength, in appendResult()
167 if(destLength>(INT32_MAX-destIndex)) { in appendResult()
170 destIndex+=destLength; in appendResult()
178 int32_t destLength; in appendResult() local
181 NULL, 0, &destLength, in appendResult()
187 if(destLength>(INT32_MAX-destIndex)) { in appendResult()
190 destIndex+=destLength; in appendResult()
697 int32_t destLength; in ucasemap_mapUTF8() local
726 destLength=stringCaseMapper(csm, dest, destCapacity, src, srcLength, pErrorCode); in ucasemap_mapUTF8()
[all …]
Dunistr_cnv.cpp182 int32_t destLength; in extract() local
184 destLength = length; in extract()
186 destLength = capacity; in extract()
188 u_UCharsToChars(getArrayStart() + start, target, destLength); in extract()
Dubidiwrt.c313 int32_t destLength; in ubidi_writeReverse() local
340 destLength=doWriteReverse(src, srcLength, dest, destSize, options, pErrorCode); in ubidi_writeReverse()
343 destLength=0; in ubidi_writeReverse()
346 return u_terminateUChars(dest, destSize, destLength, pErrorCode); in ubidi_writeReverse()
Dubiditransform.c444 uint32_t destLength = 0; in ubiditransform_transform() local
495 pBiDiTransform->pDestLength = &destLength; in ubiditransform_transform()
515 destLength = srcLength; in ubiditransform_transform()
527 return U_FAILURE(*pErrorCode) ? 0 : destLength; in ubiditransform_transform()
Ducnv.c1723 int32_t destLength; in ucnv_fromUChars() local
1755 destLength=(int32_t)(dest-originalDest); in ucnv_fromUChars()
1766 destLength+=(int32_t)(dest-buffer); in ucnv_fromUChars()
1770 destLength=0; in ucnv_fromUChars()
1773 return u_terminateChars(originalDest, destCapacity, destLength, pErrorCode); in ucnv_fromUChars()
1783 int32_t destLength; in ucnv_toUChars() local
1815 destLength=(int32_t)(dest-originalDest); in ucnv_toUChars()
1827 destLength+=(int32_t)(dest-buffer); in ucnv_toUChars()
1832 destLength=0; in ucnv_toUChars()
1835 return u_terminateUChars(originalDest, destCapacity, destLength, pErrorCode); in ucnv_toUChars()
Dubidiln.c1324 int32_t destLength=-1, count=0; in ubidi_invertMap() local
1328 if(*--pi>destLength) { in ubidi_invertMap()
1329 destLength=*pi; in ubidi_invertMap()
1335 destLength++; /* add 1 for origin 0 */ in ubidi_invertMap()
1336 if(count<destLength) { in ubidi_invertMap()
1338 uprv_memset(destMap, 0xFF, destLength*sizeof(int32_t)); in ubidi_invertMap()
Dustrcase.cpp1023 int32_t destLength; in ustrcase_map() local
1064 destLength=stringCaseMapper(csm, temp, destCapacity, src, srcLength, pErrorCode); in ustrcase_map()
1067 if(destLength>0) { in ustrcase_map()
1068 int32_t copyLength= destLength<=destCapacity ? destLength : destCapacity; in ustrcase_map()
1078 return u_terminateUChars(dest, destCapacity, destLength, pErrorCode); in ustrcase_map()
Duprops.cpp137 int32_t destLength; in changesWhenCasefolded() local
138 destLength=u_strFoldCase(dest, UPRV_LENGTHOF(dest), in changesWhenCasefolded()
143 dest, destLength, FALSE)); in changesWhenCasefolded()
/external/icu/icu4c/source/test/cintltst/
Dcustrtrn.c889 int32_t destLength; in Test_FromUTF8() local
894 destLength=-99; in Test_FromUTF8()
895 destPointer=u_strFromUTF8(NULL, 0, &destLength, (const char *)bytes, 3, &errorCode); in Test_FromUTF8()
896 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || destPointer!=NULL || destLength!=1) { in Test_FromUTF8()
898 (long)destLength, u_errorName(errorCode)); in Test_FromUTF8()
903 destLength=-99; in Test_FromUTF8()
904 destPointer=u_strFromUTF8(NULL, 0, &destLength, (const char *)bytes, 4, &errorCode); in Test_FromUTF8()
905 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || destPointer!=NULL || destLength!=2) { in Test_FromUTF8()
907 (long)destLength, u_errorName(errorCode)); in Test_FromUTF8()
912 destLength=-99; in Test_FromUTF8()
[all …]
/external/icu/icu4c/source/tools/toolutil/
Duparse.c243 int32_t destLength; in u_parseString() local
257 destLength=0; in u_parseString()
261 if(destLength<destCapacity) { in u_parseString()
262 dest[destLength]=0; in u_parseString()
263 } else if(destLength==destCapacity) { in u_parseString()
268 return destLength; in u_parseString()
285 if((destLength+U16_LENGTH(value))<=destCapacity) { in u_parseString()
286 U16_APPEND_UNSAFE(dest, destLength, value); in u_parseString()
288 destLength+=U16_LENGTH(value); in u_parseString()
/external/icu/icu4c/source/test/intltest/
Dstrcase.cpp771 int32_t destLength = u_strToUpper(dest, result.getCapacity(), in TestLongUpper() local
773 result.releaseBuffer(destLength); in TestLongUpper()
776 errorCode.errorName(), (long)destLength); in TestLongUpper()
790 int32_t destLength = ucasemap_utf8ToTitle(csm.getAlias(), dest, 3, src, 1, errorCode); in TestMalformedUTF8() local
791 if (errorCode.isFailure() || destLength != 1 || dest[0] != src[0]) { in TestMalformedUTF8()
793 errorCode.errorName(), (int)destLength, dest[0]); in TestMalformedUTF8()
798 destLength = ucasemap_utf8ToLower(csm.getAlias(), dest, 3, src, 1, errorCode); in TestMalformedUTF8()
799 if (errorCode.isFailure() || destLength != 1 || dest[0] != src[0]) { in TestMalformedUTF8()
801 errorCode.errorName(), (int)destLength, dest[0]); in TestMalformedUTF8()
806 destLength = ucasemap_utf8ToUpper(csm.getAlias(), dest, 3, src, 1, errorCode); in TestMalformedUTF8()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DSslWrapper.java490 int readDirectByteBuffer(long destAddress, int destLength) in readDirectByteBuffer() argument
493 ssl, destAddress, destLength, handshakeCallbacks); in readDirectByteBuffer()
496 int readArray(byte[] destJava, int destOffset, int destLength) in readArray() argument
499 ssl, destJava, destOffset, destLength, handshakeCallbacks); in readArray()
565 int readDirectByteBuffer(long destAddress, int destLength) throws IOException { in readDirectByteBuffer() argument
567 ssl, bio, destAddress, destLength, handshakeCallbacks); in readDirectByteBuffer()
570 int readArray(byte[] destJava, int destOffset, int destLength) throws IOException { in readArray() argument
572 ssl, bio, destJava, destOffset, destLength, handshakeCallbacks); in readArray()
/external/guava/guava/src/com/google/common/escape/
DUnicodeEscaper.java202 int destLength = sizeNeeded + (end - index) + DEST_PAD; in escapeSlow() local
203 dest = growBuffer(dest, destIndex, destLength); in escapeSlow()
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/external/com/google/gdata/util/common/base/
DUnicodeEscaper.java209 int destLength = sizeNeeded + (end - index) + DEST_PAD; in escapeSlow() local
210 dest = growBuffer(dest, destIndex, destLength); in escapeSlow()
/external/icu/icu4c/source/test/perf/utrie2perf/
Dutrie2perf.cpp194 int32_t destLength=unorm_normalize(testcase.getBuffer(), testcase.getBufferLen(), in call() local
198 if(U_FAILURE(errorCode) || destLength!=destCapacity) { in call()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DBidiLine.java1216 int destLength = -1, count = 0, i, srcEntry; in invertMap() local
1221 if (srcEntry > destLength) { in invertMap()
1222 destLength = srcEntry; in invertMap()
1228 destLength++; /* add 1 for origin 0 */ in invertMap()
1229 int[] destMap = new int[destLength]; in invertMap()
1230 if (count < destLength) { in invertMap()
DNormalizer.java1361 int destLength=destBuilder.length(); in concatenate() local
1362 if(destLength<=(destLimit-destStart)) { in concatenate()
1363 destBuilder.getChars(0, destLength, dest, destStart); in concatenate()
1364 return destLength; in concatenate()
1366 throw new IndexOutOfBoundsException(Integer.toString(destLength)); in concatenate()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DBidiLine.java1215 int destLength = -1, count = 0, i, srcEntry; in invertMap() local
1220 if (srcEntry > destLength) { in invertMap()
1221 destLength = srcEntry; in invertMap()
1227 destLength++; /* add 1 for origin 0 */ in invertMap()
1228 int[] destMap = new int[destLength]; in invertMap()
1229 if (count < destLength) { in invertMap()
DNormalizer.java1340 int destLength=destBuilder.length(); in concatenate() local
1341 if(destLength<=(destLimit-destStart)) { in concatenate()
1342 destBuilder.getChars(0, destLength, dest, destStart); in concatenate()
1343 return destLength; in concatenate()
1345 throw new IndexOutOfBoundsException(Integer.toString(destLength)); in concatenate()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUTS46.java216 int destLength=dest.length(); in processUnicode() local
218 while(labelLimit<destLength) { in processUnicode()
225 destLength+=newLength-labelLength; in processUnicode()
230 destLength=mapDevChars(dest, labelStart, labelLimit); in processUnicode()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUTS46.java215 int destLength=dest.length(); in processUnicode() local
217 while(labelLimit<destLength) { in processUnicode()
224 destLength+=newLength-labelLength; in processUnicode()
229 destLength=mapDevChars(dest, labelStart, labelLimit); in processUnicode()
/external/icu/icu4c/source/i18n/
Ducol.cpp139 int32_t destLength=src1Length+src2Length; in ucol_mergeSortkeys() local
140 if(destLength>destCapacity) { in ucol_mergeSortkeys()
142 return destLength; in ucol_mergeSortkeys()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bidi/
DTestBidi.java210 destLength = bidi.getResultLength(); in _testReordering() local
296 for (i = 0; i < destLength; ++i) { in _testReordering()
300 for (i = 0; i < destLength; ++i) { in _testReordering()

12