Home
last modified time | relevance | path

Searched refs:destLength (Results 1 – 25 of 38) 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.cpp1426 int32_t destLength; in u_shapeArabic() local
1603destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,2,shapeVars); in u_shapeArabic()
1606destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,1,shapeVars); in u_shapeArabic()
1610destLength = handleTashkeelWithTatweel(tempbuffer,destLength,destCapacity,options,pErrorCode); in u_shapeArabic()
1616destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,0,shapeVars); in u_shapeArabic()
1621destLength = deShapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,shapeVars); in u_shapeArabic()
1625 destLength = 0; in u_shapeArabic()
1637 countSpaces(tempbuffer,destLength,options,&spacesCountl,&spacesCountr); in u_shapeArabic()
1638 invertBuffer(tempbuffer,destLength,options,spacesCountl,spacesCountr); in u_shapeArabic()
1640 u_memcpy(dest, tempbuffer, uprv_min(destLength, destCapacity)); in u_shapeArabic()
[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.cpp313 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.cpp446 uint32_t destLength = 0; in ubiditransform_transform() local
497 pBiDiTransform->pDestLength = &destLength; in ubiditransform_transform()
517 destLength = srcLength; in ubiditransform_transform()
529 return U_FAILURE(*pErrorCode) ? 0 : destLength; in ubiditransform_transform()
Dustrcase.cpp1231 int32_t destLength; in ustrcase_map() local
1263 destLength=stringCaseMapper(caseLocale, options, UCASEMAP_BREAK_ITERATOR in ustrcase_map()
1265 return u_terminateUChars(dest, destCapacity, destLength, &errorCode); in ustrcase_map()
1277 int32_t destLength; in ustrcase_mapWithOverlap() local
1318 destLength=stringCaseMapper(caseLocale, options, UCASEMAP_BREAK_ITERATOR in ustrcase_mapWithOverlap()
1322 if (U_SUCCESS(errorCode) && 0 < destLength && destLength <= destCapacity) { in ustrcase_mapWithOverlap()
1323 u_memmove(dest, temp, destLength); in ustrcase_mapWithOverlap()
1330 return u_terminateUChars(dest, destCapacity, destLength, &errorCode); in ustrcase_mapWithOverlap()
Ducnv.cpp1723 int32_t destLength; in ucnv_fromUChars() local
1751 destLength=(int32_t)(dest-originalDest); in ucnv_fromUChars()
1762 destLength+=(int32_t)(dest-buffer); in ucnv_fromUChars()
1766 destLength=0; in ucnv_fromUChars()
1769 return u_terminateChars(originalDest, destCapacity, destLength, pErrorCode); in ucnv_fromUChars()
1779 int32_t destLength; in ucnv_toUChars() local
1807 destLength=(int32_t)(dest-originalDest); in ucnv_toUChars()
1819 destLength+=(int32_t)(dest-buffer); in ucnv_toUChars()
1824 destLength=0; in ucnv_toUChars()
1827 return u_terminateUChars(originalDest, destCapacity, destLength, pErrorCode); in ucnv_toUChars()
Dubidiln.cpp1324 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()
/external/icu/icu4c/source/test/cintltst/
Dcustrtrn.c890 int32_t destLength; in Test_FromUTF8() local
895 destLength=-99; in Test_FromUTF8()
896 destPointer=u_strFromUTF8(NULL, 0, &destLength, (const char *)bytes, 3, &errorCode); in Test_FromUTF8()
897 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || destPointer!=NULL || destLength!=1) { in Test_FromUTF8()
899 (long)destLength, u_errorName(errorCode)); in Test_FromUTF8()
904 destLength=-99; in Test_FromUTF8()
905 destPointer=u_strFromUTF8(NULL, 0, &destLength, (const char *)bytes, 4, &errorCode); in Test_FromUTF8()
906 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || destPointer!=NULL || destLength!=2) { in Test_FromUTF8()
908 (long)destLength, u_errorName(errorCode)); in Test_FromUTF8()
913 destLength=-99; in Test_FromUTF8()
[all …]
/external/icu/icu4c/source/tools/toolutil/
Duparse.cpp243 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/
Dtestutil.cpp89 int32_t srcLength, int32_t destLength, int32_t index) { in srcIndexFromDest() argument
91 int32_t destIndex = destLength; in srcIndexFromDest()
116 int32_t srcLength, int32_t destLength, int32_t index) { in destIndexFromSrc() argument
118 int32_t destIndex = destLength; in destIndexFromSrc()
245 int32_t destLength = expDestIndex; in checkEditsIter() local
275 destIndexes.push_back(destLength); in checkEditsIter()
277 destIndexes.push_back(destLength + 1); in checkEditsIter()
287 destIndexFromSrc(expected, expLength, srcLength, destLength, si), in checkEditsIter()
298 srcIndexFromDest(expected, expLength, srcLength, destLength, di), in checkEditsIter()
Dstrcase.cpp835 int32_t destLength = u_strToUpper(dest, result.getCapacity(), in TestLongUpper() local
837 result.releaseBuffer(destLength); in TestLongUpper()
840 errorCode.errorName(), (long)destLength); in TestLongUpper()
854 int32_t destLength; in TestMalformedUTF8() local
856 destLength = ucasemap_utf8ToTitle(csm.getAlias(), dest, 3, src, 1, errorCode); in TestMalformedUTF8()
857 if (errorCode.isFailure() || destLength != 1 || dest[0] != src[0]) { in TestMalformedUTF8()
859 errorCode.errorName(), (int)destLength, dest[0]); in TestMalformedUTF8()
865 destLength = ucasemap_utf8ToLower(csm.getAlias(), dest, 3, src, 1, errorCode); in TestMalformedUTF8()
866 if (errorCode.isFailure() || destLength != 1 || dest[0] != src[0]) { in TestMalformedUTF8()
868 errorCode.errorName(), (int)destLength, dest[0]); in TestMalformedUTF8()
[all …]
/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/icu/android_icu4j/src/main/java/android/icu/impl/
DUTS46.java217 int destLength=dest.length(); in processUnicode() local
219 while(labelLimit<destLength) { in processUnicode()
226 destLength+=newLength-labelLength; in processUnicode()
234 destLength=mapDevChars(dest, labelStart, labelLimit); in processUnicode()
242 (labelLimit+1)==destLength || in processUnicode()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUTS46.java216 int destLength=dest.length(); in processUnicode() local
218 while(labelLimit<destLength) { in processUnicode()
225 destLength+=newLength-labelLength; in processUnicode()
233 destLength=mapDevChars(dest, labelStart, labelLimit); in processUnicode()
241 (labelLimit+1)==destLength || in processUnicode()
/external/conscrypt/common/src/main/java/org/conscrypt/
DNativeSsl.java528 int readDirectByteBuffer(long destAddress, int destLength) in readDirectByteBuffer() argument
533 ssl, this, destAddress, destLength, handshakeCallbacks); in readDirectByteBuffer()
627 int readDirectByteBuffer(long destAddress, int destLength) throws IOException { in readDirectByteBuffer() argument
629 ssl, NativeSsl.this, bio, destAddress, destLength, handshakeCallbacks); in readDirectByteBuffer()
/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.java1362 int destLength=destBuilder.length(); in concatenate() local
1363 if(destLength<=(destLimit-destStart)) { in concatenate()
1364 destBuilder.getChars(0, destLength, dest, destStart); in concatenate()
1365 return destLength; in concatenate()
1367 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()
/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/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DNativeSsl.java529 int readDirectByteBuffer(long destAddress, int destLength) in readDirectByteBuffer() argument
534 ssl, this, destAddress, destLength, handshakeCallbacks); in readDirectByteBuffer()
628 int readDirectByteBuffer(long destAddress, int destLength) throws IOException { in readDirectByteBuffer() argument
630 ssl, NativeSsl.this, bio, destAddress, destLength, handshakeCallbacks); in readDirectByteBuffer()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUCharacterCaseTest.java819 EditChange expected[], int srcLength, int destLength, int index) { in srcIndexFromDest() argument
821 int destIndex = destLength; in srcIndexFromDest()
846 EditChange expected[], int srcLength, int destLength, int index) { in destIndexFromSrc() argument
848 int destIndex = destLength; in destIndexFromSrc()
962 int destLength = expDestIndex; in checkEditsIter() local
992 destIndexes.add(destLength); in checkEditsIter()
994 destIndexes.add(destLength + 1); in checkEditsIter()
1002 destIndexFromSrc(expected, srcLength, destLength, si), in checkEditsIter()
1012 srcIndexFromDest(expected, srcLength, destLength, di), in checkEditsIter()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUCharacterCaseTest.java822 EditChange expected[], int srcLength, int destLength, int index) { in srcIndexFromDest() argument
824 int destIndex = destLength; in srcIndexFromDest()
849 EditChange expected[], int srcLength, int destLength, int index) { in destIndexFromSrc() argument
851 int destIndex = destLength; in destIndexFromSrc()
965 int destLength = expDestIndex; in checkEditsIter() local
995 destIndexes.add(destLength); in checkEditsIter()
997 destIndexes.add(destLength + 1); in checkEditsIter()
1005 destIndexFromSrc(expected, srcLength, destLength, si), in checkEditsIter()
1015 srcIndexFromDest(expected, srcLength, destLength, di), in checkEditsIter()
/external/icu/icu4c/source/i18n/
Ducol.cpp140 int32_t destLength=src1Length+src2Length; in ucol_mergeSortkeys() local
141 if(destLength>destCapacity) { in ucol_mergeSortkeys()
143 return destLength; in ucol_mergeSortkeys()

12