Home
last modified time | relevance | path

Searched refs:destIndex (Results 1 – 25 of 37) sorted by relevance

12

/external/icu/icu4c/source/common/
Dustrcase.cpp43 int32_t checkOverflowAndEditsError(int32_t destIndex, int32_t destCapacity, in checkOverflowAndEditsError() argument
46 if (destIndex > destCapacity) { in checkOverflowAndEditsError()
52 return destIndex; in checkOverflowAndEditsError()
57 appendResult(UChar *dest, int32_t destIndex, int32_t destCapacity, in appendResult() argument
70 return destIndex; in appendResult()
73 if(destIndex<destCapacity && c<=0xffff) { // BMP slightly-fastpath in appendResult()
74 dest[destIndex++]=(UChar)c; in appendResult()
75 return destIndex; in appendResult()
82 } else if(destIndex<destCapacity && result<=0xffff) { // BMP slightly-fastpath in appendResult()
83 dest[destIndex++]=(UChar)result; in appendResult()
[all …]
Dedits.cpp403 srcIndex(0), replIndex(0), destIndex(0) {} in Iterator()
429 destIndex += newLength_; in updateNextIndexes()
437 destIndex -= newLength_; in updatePreviousIndexes()
660 spanStart = destIndex; in findIndex()
670 spanStart = findSource ? srcIndex : destIndex; in findIndex()
688 destIndex -= n * newLength_; in findIndex()
695 destIndex -= num * newLength_; in findIndex()
702 index = remaining = oldLength_ = newLength_ = srcIndex = replIndex = destIndex = 0; in findIndex()
712 spanStart = destIndex; in findIndex()
727 destIndex += n * newLength_; in findIndex()
[all …]
Dusprep.cpp516 int32_t destIndex=0; in usprep_map() local
567 if(destIndex < destCapacity ){ in usprep_map()
568 dest[destIndex] = profile->mappingData[index+i]; in usprep_map()
570 destIndex++; /* for pre-flighting */ in usprep_map()
584 if(destIndex < destCapacity ){ in usprep_map()
585 dest[destIndex] = (UChar)ch; in usprep_map()
587 destIndex++; in usprep_map()
589 if(destIndex+1 < destCapacity ){ in usprep_map()
590 dest[destIndex] = U16_LEAD(ch); in usprep_map()
591 dest[destIndex+1] = U16_TRAIL(ch); in usprep_map()
[all …]
Dutext.cpp503 int64_t destIndex, in utext_copy() argument
514 ut->pFuncs->copy(ut, nativeStart, nativeLimit, destIndex, move, status); in utext_copy()
1958 int64_t destIndex, in repTextCopy() argument
1968 if (start>limit || (start<destIndex && destIndex<limit)) in repTextCopy()
1976 int32_t destIndex32 = pinIndex(destIndex, length); in repTextCopy()
2222 int64_t destIndex, in unistrTextCopy() argument
2233 int32_t destIndex32 = pinIndex(destIndex, length); in unistrTextCopy()
/external/guava/guava/src/com/google/common/escape/
DCharEscaper.java87 int destIndex = 0; in escapeSlow() local
106 int sizeNeeded = destIndex + charsSkipped + rlen; in escapeSlow()
109 dest = growBuffer(dest, destIndex, destSize); in escapeSlow()
114 s.getChars(lastEscape, index, dest, destIndex); in escapeSlow()
115 destIndex += charsSkipped; in escapeSlow()
120 System.arraycopy(r, 0, dest, destIndex, rlen); in escapeSlow()
121 destIndex += rlen; in escapeSlow()
129 int sizeNeeded = destIndex + charsLeft; in escapeSlow()
133 dest = growBuffer(dest, destIndex, sizeNeeded); in escapeSlow()
135 s.getChars(lastEscape, slen, dest, destIndex); in escapeSlow()
[all …]
DUnicodeEscaper.java181 int destIndex = 0; in escapeSlow() local
200 int sizeNeeded = destIndex + charsSkipped + escaped.length; in escapeSlow()
203 dest = growBuffer(dest, destIndex, destLength); in escapeSlow()
207 s.getChars(unescapedChunkStart, index, dest, destIndex); in escapeSlow()
208 destIndex += charsSkipped; in escapeSlow()
211 System.arraycopy(escaped, 0, dest, destIndex, escaped.length); in escapeSlow()
212 destIndex += escaped.length; in escapeSlow()
224 int endIndex = destIndex + charsSkipped; in escapeSlow()
226 dest = growBuffer(dest, destIndex, endIndex); in escapeSlow()
228 s.getChars(unescapedChunkStart, end, dest, destIndex); in escapeSlow()
[all …]
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/external/com/google/gdata/util/common/base/
DUnicodeEscaper.java192 int destIndex = 0; in escapeSlow() local
207 int sizeNeeded = destIndex + charsSkipped + escaped.length; in escapeSlow()
210 dest = growBuffer(dest, destIndex, destLength); in escapeSlow()
214 s.getChars(unescapedChunkStart, index, dest, destIndex); in escapeSlow()
215 destIndex += charsSkipped; in escapeSlow()
218 System.arraycopy(escaped, 0, dest, destIndex, escaped.length); in escapeSlow()
219 destIndex += escaped.length; in escapeSlow()
231 int endIndex = destIndex + charsSkipped; in escapeSlow()
233 dest = growBuffer(dest, destIndex, endIndex); in escapeSlow()
235 s.getChars(unescapedChunkStart, end, dest, destIndex); in escapeSlow()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DEdits.java288 private int srcIndex, replIndex, destIndex; field in Edits.Iterator
321 destIndex += newLength_; in updateNextIndexes()
329 destIndex -= newLength_; in updatePreviousIndexes()
596 spanStart = destIndex; in findIndex()
605 spanStart = findSource ? srcIndex : destIndex; in findIndex()
623 destIndex -= n * newLength_; in findIndex()
630 destIndex -= num * newLength_; in findIndex()
637 index = remaining = oldLength_ = newLength_ = srcIndex = replIndex = destIndex = 0; in findIndex()
647 spanStart = destIndex; in findIndex()
662 destIndex += n * newLength_; in findIndex()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DEdits.java278 private int srcIndex, replIndex, destIndex; field in Edits.Iterator
311 destIndex += newLength_; in updateNextIndexes()
319 destIndex -= newLength_; in updatePreviousIndexes()
583 spanStart = destIndex; in findIndex()
592 spanStart = findSource ? srcIndex : destIndex; in findIndex()
610 destIndex -= n * newLength_; in findIndex()
617 destIndex -= num * newLength_; in findIndex()
624 index = remaining = oldLength_ = newLength_ = srcIndex = replIndex = destIndex = 0; in findIndex()
634 spanStart = destIndex; in findIndex()
649 destIndex += n * newLength_; in findIndex()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUCharacterCaseTest.java821 int destIndex = destLength; in srcIndexFromDest() local
823 while (index < destIndex && i > 0) { in srcIndexFromDest()
826 int prevDestIndex = destIndex - expected[i].newLength; in srcIndexFromDest()
839 destIndex = prevDestIndex; in srcIndexFromDest()
848 int destIndex = destLength; in destIndexFromSrc() local
853 int prevDestIndex = destIndex - expected[i].newLength; in destIndexFromSrc()
859 return destIndex; in destIndexFromSrc()
866 destIndex = prevDestIndex; in destIndexFromSrc()
869 return destIndex; in destIndexFromSrc()
968 int destIndex = 0; in checkEditsIter() local
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUCharacterCaseTest.java824 int destIndex = destLength; in srcIndexFromDest() local
826 while (index < destIndex && i > 0) { in srcIndexFromDest()
829 int prevDestIndex = destIndex - expected[i].newLength; in srcIndexFromDest()
842 destIndex = prevDestIndex; in srcIndexFromDest()
851 int destIndex = destLength; in destIndexFromSrc() local
856 int prevDestIndex = destIndex - expected[i].newLength; in destIndexFromSrc()
862 return destIndex; in destIndexFromSrc()
869 destIndex = prevDestIndex; in destIndexFromSrc()
872 return destIndex; in destIndexFromSrc()
971 int destIndex = 0; in checkEditsIter() local
[all …]
/external/icu/icu4c/source/test/intltest/
Dtestutil.cpp91 int32_t destIndex = destLength; in srcIndexFromDest() local
93 while (index < destIndex && i > 0) { in srcIndexFromDest()
96 int32_t prevDestIndex = destIndex - expected[i].newLength; in srcIndexFromDest()
109 destIndex = prevDestIndex; in srcIndexFromDest()
118 int32_t destIndex = destLength; in destIndexFromSrc() local
123 int32_t prevDestIndex = destIndex - expected[i].newLength; in destIndexFromSrc()
129 return destIndex; in destIndexFromSrc()
136 destIndex = prevDestIndex; in destIndexFromSrc()
139 return destIndex; in destIndexFromSrc()
251 int32_t destIndex = 0; in checkEditsIter() local
[all …]
Dstrcase.cpp1656 for (int32_t destIndex=0; destIndex<inputLength; destIndex++) { in TestCaseMapEditsIteratorDocs() local
1657 fineIterator.findDestinationIndex(destIndex, status); in TestCaseMapEditsIteratorDocs()
1658 fineChangesIterator.findDestinationIndex(destIndex, status); in TestCaseMapEditsIteratorDocs()
1659 coarseIterator.findDestinationIndex(destIndex, status); in TestCaseMapEditsIteratorDocs()
1660 coarseChangesIterator.findDestinationIndex(destIndex, status); in TestCaseMapEditsIteratorDocs()
1662 assertEquals(UnicodeString("Destination index: ") + destIndex, in TestCaseMapEditsIteratorDocs()
1663 expectedSrcFineEditIndices[destIndex], in TestCaseMapEditsIteratorDocs()
1665 assertEquals(UnicodeString("Destination index: ") + destIndex, in TestCaseMapEditsIteratorDocs()
1666 expectedSrcFineEditIndices[destIndex], in TestCaseMapEditsIteratorDocs()
1668 assertEquals(UnicodeString("Destination index: ") + destIndex, in TestCaseMapEditsIteratorDocs()
[all …]
Dutxttest.cpp308 int destIndex = 0; // Code point index of the destination for a copy/move test. in TestCMR() local
347 case 1: destIndex = 0; break; in TestCMR()
348 case 2: destIndex = 1; break; in TestCMR()
349 case 3: destIndex = srcIndex - 1; break; in TestCMR()
350 case 4: destIndex = srcIndex + srcLength + 1; break; in TestCMR()
351 case 5: destIndex = cpCount-1; break; in TestCMR()
352 case 6: destIndex = cpCount; break; in TestCMR()
354 if (destIndex<0 || destIndex>cpCount) { in TestCMR()
361 nativeDest = nativeMap[destIndex].nativeIdx; in TestCMR()
365 u16Dest = u16Map[destIndex].nativeIdx; in TestCMR()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DAttributeResolution10.java418 int destIndex = ii * STYLE_NUM_ENTRIES; in ApplyStyle() local
420 out_values[destIndex + STYLE_TYPE] = res_value.dataType; in ApplyStyle()
421 out_values[destIndex + STYLE_DATA] = res_value.data; in ApplyStyle()
422 out_values[destIndex + STYLE_ASSET_COOKIE] = ApkAssetsCookieToJavaCookie(cookie); in ApplyStyle()
423 out_values[destIndex + STYLE_RESOURCE_ID] = resid.get(); in ApplyStyle()
424 out_values[destIndex + STYLE_CHANGING_CONFIGURATIONS] = type_set_flags.get(); in ApplyStyle()
425 out_values[destIndex + STYLE_DENSITY] = config.get().density; in ApplyStyle()
426 out_values[destIndex + STYLE_SOURCE_STYLE_RESOURCE_ID] = source_style_resid; in ApplyStyle()
DAttributeResolution9.java409 int destIndex = ii * STYLE_NUM_ENTRIES; in ApplyStyle() local
411 out_values[destIndex + STYLE_TYPE] = res_value.dataType; in ApplyStyle()
412 out_values[destIndex + STYLE_DATA] = res_value.data; in ApplyStyle()
413 out_values[destIndex + STYLE_ASSET_COOKIE] = ApkAssetsCookieToJavaCookie(cookie); in ApplyStyle()
414 out_values[destIndex + STYLE_RESOURCE_ID] = resid.get(); in ApplyStyle()
415 out_values[destIndex + STYLE_CHANGING_CONFIGURATIONS] = type_set_flags.get(); in ApplyStyle()
416 out_values[destIndex + STYLE_DENSITY] = config.get().density; in ApplyStyle()
DAttributeResolution.java399 int destIndex = ii * STYLE_NUM_ENTRIES; in ApplyStyle() local
401 outValues[destIndex + STYLE_TYPE] = res_value.dataType; in ApplyStyle()
402 outValues[destIndex + STYLE_DATA] = res_value.data; in ApplyStyle()
403 outValues[destIndex + STYLE_ASSET_COOKIE] = in ApplyStyle()
405 outValues[destIndex + STYLE_RESOURCE_ID] = resid.get(); in ApplyStyle()
406 outValues[destIndex + STYLE_CHANGING_CONFIGURATIONS] = typeSetFlags.get(); in ApplyStyle()
407 outValues[destIndex + STYLE_DENSITY] = config.get().density; in ApplyStyle()
/external/icu/icu4c/source/common/unicode/
Dedits.h209 srcIndex(0), replIndex(0), destIndex(0) {} in Iterator()
389 int32_t destinationIndex() const { return destIndex; } in destinationIndex()
424 int32_t srcIndex, replIndex, destIndex; member
/external/apache-xml/src/main/java/org/apache/xml/utils/
DXMLStringDefault.java146 int destIndex = dstBegin; in getChars() local
149 dst[destIndex++] = m_str.charAt(i); in getChars()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/
DTestStringPrep.java113 int destIndex = destString.indexOf('@'); in TestNFS4MixedPrep() local
114 if(destIndex < 0){ in TestNFS4MixedPrep()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/
DTestStringPrep.java116 int destIndex = destString.indexOf('@'); in TestNFS4MixedPrep() local
117 if(destIndex < 0){ in TestNFS4MixedPrep()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DReadableBuffers.java163 public void readBytes(byte[] dest, int destIndex, int length) { in readBytes() argument
164 System.arraycopy(bytes, offset, dest, destIndex, length); in readBytes()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DXMPUtilsImpl.java672 int destIndex = XMPNodeUtils.lookupLanguageItem(destNode, in appendSubtree() local
678 if (destIndex != -1) in appendSubtree()
680 destNode.removeChild(destIndex); in appendSubtree()
687 else if (destIndex == -1) in appendSubtree()
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationDataBuilder.java757 int destIndex = dest.addConditionalCE32( in copyCE32() local
759 ce32 = CollationDataBuilder.makeBuilderContextCE32(destIndex); in copyCE32()
762 ConditionalCE32 prevDestCond = dest.getConditionalCE32(destIndex); in copyCE32()
763 destIndex = dest.addConditionalCE32( in copyCE32()
767 prevDestCond.next = destIndex; in copyCE32()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationDataBuilder.java756 int destIndex = dest.addConditionalCE32( in copyCE32() local
758 ce32 = CollationDataBuilder.makeBuilderContextCE32(destIndex); in copyCE32()
761 ConditionalCE32 prevDestCond = dest.getConditionalCE32(destIndex); in copyCE32()
762 destIndex = dest.addConditionalCE32( in copyCE32()
766 prevDestCond.next = destIndex; in copyCE32()

12