Home
last modified time | relevance | path

Searched refs:destIndex (Results 1 – 25 of 44) 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.cpp404 srcIndex(0), replIndex(0), destIndex(0) {} in Iterator()
430 destIndex += newLength_; in updateNextIndexes()
438 destIndex -= newLength_; in updatePreviousIndexes()
661 spanStart = destIndex; in findIndex()
671 spanStart = findSource ? srcIndex : destIndex; in findIndex()
689 destIndex -= n * newLength_; in findIndex()
696 destIndex -= num * newLength_; in findIndex()
703 index = remaining = oldLength_ = newLength_ = srcIndex = replIndex = destIndex = 0; in findIndex()
713 spanStart = destIndex; in findIndex()
728 destIndex += n * newLength_; in findIndex()
[all …]
Dusprep.cpp515 int32_t destIndex=0; in usprep_map() local
566 if(destIndex < destCapacity ){ in usprep_map()
567 dest[destIndex] = profile->mappingData[index+i]; in usprep_map()
569 destIndex++; /* for pre-flighting */ in usprep_map()
583 if(destIndex < destCapacity ){ in usprep_map()
584 dest[destIndex] = (UChar)ch; in usprep_map()
586 destIndex++; in usprep_map()
588 if(destIndex+1 < destCapacity ){ in usprep_map()
589 dest[destIndex] = U16_LEAD(ch); in usprep_map()
590 dest[destIndex+1] = U16_TRAIL(ch); in usprep_map()
[all …]
/external/guava/guava/src/com/google/common/escape/
DCharEscaper.java102 int destIndex = 0; in escapeSlow() local
123 int sizeNeeded = destIndex + charsSkipped + rlen; in escapeSlow()
126 dest = growBuffer(dest, destIndex, destSize); in escapeSlow()
131 s.getChars(lastEscape, index, dest, destIndex); in escapeSlow()
132 destIndex += charsSkipped; in escapeSlow()
137 System.arraycopy(r, 0, dest, destIndex, rlen); in escapeSlow()
138 destIndex += rlen; in escapeSlow()
146 int sizeNeeded = destIndex + charsLeft; in escapeSlow()
150 dest = growBuffer(dest, destIndex, sizeNeeded); in escapeSlow()
152 s.getChars(lastEscape, slen, dest, destIndex); in escapeSlow()
[all …]
DUnicodeEscaper.java162 int destIndex = 0; in escapeSlow() local
180 int sizeNeeded = destIndex + charsSkipped + escaped.length; in escapeSlow()
183 dest = growBuffer(dest, destIndex, destLength); in escapeSlow()
187 s.getChars(unescapedChunkStart, index, dest, destIndex); in escapeSlow()
188 destIndex += charsSkipped; in escapeSlow()
191 System.arraycopy(escaped, 0, dest, destIndex, escaped.length); in escapeSlow()
192 destIndex += escaped.length; in escapeSlow()
204 int endIndex = destIndex + charsSkipped; in escapeSlow()
206 dest = growBuffer(dest, destIndex, endIndex); in escapeSlow()
208 s.getChars(unescapedChunkStart, end, dest, destIndex); in escapeSlow()
[all …]
/external/guava/android/guava/src/com/google/common/escape/
DCharEscaper.java102 int destIndex = 0; in escapeSlow() local
123 int sizeNeeded = destIndex + charsSkipped + rlen; in escapeSlow()
126 dest = growBuffer(dest, destIndex, destSize); in escapeSlow()
131 s.getChars(lastEscape, index, dest, destIndex); in escapeSlow()
132 destIndex += charsSkipped; in escapeSlow()
137 System.arraycopy(r, 0, dest, destIndex, rlen); in escapeSlow()
138 destIndex += rlen; in escapeSlow()
146 int sizeNeeded = destIndex + charsLeft; in escapeSlow()
150 dest = growBuffer(dest, destIndex, sizeNeeded); in escapeSlow()
152 s.getChars(lastEscape, slen, dest, destIndex); in escapeSlow()
[all …]
DUnicodeEscaper.java162 int destIndex = 0; in escapeSlow() local
180 int sizeNeeded = destIndex + charsSkipped + escaped.length; in escapeSlow()
183 dest = growBuffer(dest, destIndex, destLength); in escapeSlow()
187 s.getChars(unescapedChunkStart, index, dest, destIndex); in escapeSlow()
188 destIndex += charsSkipped; in escapeSlow()
191 System.arraycopy(escaped, 0, dest, destIndex, escaped.length); in escapeSlow()
192 destIndex += escaped.length; in escapeSlow()
204 int endIndex = destIndex + charsSkipped; in escapeSlow()
206 dest = growBuffer(dest, destIndex, endIndex); in escapeSlow()
208 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/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.cpp1681 for (int32_t destIndex=0; destIndex<inputLength; destIndex++) { in TestCaseMapEditsIteratorDocs() local
1682 fineIterator.findDestinationIndex(destIndex, status); in TestCaseMapEditsIteratorDocs()
1683 fineChangesIterator.findDestinationIndex(destIndex, status); in TestCaseMapEditsIteratorDocs()
1684 coarseIterator.findDestinationIndex(destIndex, status); in TestCaseMapEditsIteratorDocs()
1685 coarseChangesIterator.findDestinationIndex(destIndex, status); in TestCaseMapEditsIteratorDocs()
1687 assertEquals(UnicodeString("Destination index: ") + destIndex, in TestCaseMapEditsIteratorDocs()
1688 expectedSrcFineEditIndices[destIndex], in TestCaseMapEditsIteratorDocs()
1690 assertEquals(UnicodeString("Destination index: ") + destIndex, in TestCaseMapEditsIteratorDocs()
1691 expectedSrcFineEditIndices[destIndex], in TestCaseMapEditsIteratorDocs()
1693 assertEquals(UnicodeString("Destination index: ") + destIndex, in TestCaseMapEditsIteratorDocs()
[all …]
Dutxttest.cpp312 int destIndex = 0; // Code point index of the destination for a copy/move test. in TestCMR() local
351 case 1: destIndex = 0; break; in TestCMR()
352 case 2: destIndex = 1; break; in TestCMR()
353 case 3: destIndex = srcIndex - 1; break; in TestCMR()
354 case 4: destIndex = srcIndex + srcLength + 1; break; in TestCMR()
355 case 5: destIndex = cpCount-1; break; in TestCMR()
356 case 6: destIndex = cpCount; break; in TestCMR()
358 if (destIndex<0 || destIndex>cpCount) { in TestCMR()
365 nativeDest = nativeMap[destIndex].nativeIdx; in TestCMR()
369 u16Dest = u16Map[destIndex].nativeIdx; in TestCMR()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUCharacterCaseTest.java854 int destIndex = destLength; in srcIndexFromDest() local
856 while (index < destIndex && i > 0) { in srcIndexFromDest()
859 int prevDestIndex = destIndex - expected[i].newLength; in srcIndexFromDest()
872 destIndex = prevDestIndex; in srcIndexFromDest()
881 int destIndex = destLength; in destIndexFromSrc() local
886 int prevDestIndex = destIndex - expected[i].newLength; in destIndexFromSrc()
892 return destIndex; in destIndexFromSrc()
899 destIndex = prevDestIndex; in destIndexFromSrc()
902 return destIndex; in destIndexFromSrc()
1001 int destIndex = 0; in checkEditsIter() local
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUCharacterCaseTest.java857 int destIndex = destLength; in srcIndexFromDest() local
859 while (index < destIndex && i > 0) { in srcIndexFromDest()
862 int prevDestIndex = destIndex - expected[i].newLength; in srcIndexFromDest()
875 destIndex = prevDestIndex; in srcIndexFromDest()
884 int destIndex = destLength; in destIndexFromSrc() local
889 int prevDestIndex = destIndex - expected[i].newLength; in destIndexFromSrc()
895 return destIndex; in destIndexFromSrc()
902 destIndex = prevDestIndex; in destIndexFromSrc()
905 return destIndex; in destIndexFromSrc()
1004 int destIndex = 0; in checkEditsIter() local
[all …]
/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.h212 srcIndex(0), replIndex(0), destIndex(0) {} in Iterator()
392 int32_t destinationIndex() const { return destIndex; } in destinationIndex()
427 int32_t srcIndex, replIndex, destIndex; member
/external/icu/libicu/cts_headers/unicode/
Dedits.h212 srcIndex(0), replIndex(0), destIndex(0) {} in Iterator()
392 int32_t destinationIndex() const { return destIndex; } in destinationIndex()
427 int32_t srcIndex, replIndex, destIndex; member
/external/angle/src/libANGLE/renderer/d3d/d3d9/
DTextureStorage9.h104 const gl::ImageIndex &destIndex) override;
138 const gl::ImageIndex &destIndex) override;
175 const gl::ImageIndex &destIndex) override;
DTextureStorage9.cpp232 const gl::ImageIndex &destIndex) in generateMipmap() argument
240 getSurfaceLevel(context, gl::TextureTarget::_2D, destIndex.getLevelIndex(), true, &lower)); in generateMipmap()
515 const gl::ImageIndex &destIndex) in generateMipmap() argument
523 getSurfaceLevel(context, destIndex.getTarget(), destIndex.getLevelIndex(), true, &lower)); in generateMipmap()
/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/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/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()

12