/external/icu/icu4c/source/common/ |
D | unistr_case.cpp | 103 int32_t oldLength = length(); in caseMap() local 115 if (writable ? oldLength <= UPRV_LENGTHOF(oldBuffer) : oldLength < US_STACKBUF_SIZE) { in caseMap() 121 u_memcpy(oldBuffer, buffer, oldLength); in caseMap() 135 oldString.setTo(FALSE, oldArray, oldLength); in caseMap() 141 oldArray, oldLength, NULL, errorCode); in caseMap() 161 oldString.setTo(FALSE, oldArray, oldLength); in caseMap() 167 oldArray, oldLength, &edits, errorCode); in caseMap() 170 newLength = oldLength + edits.lengthDelta(); in caseMap() 171 if (newLength > oldLength && !cloneArrayIfNeeded(newLength, newLength)) { in caseMap() 175 doReplace(ei.destinationIndex(), ei.oldLength(), in caseMap() [all …]
|
D | unistr.cpp | 1166 int32_t oldLength, in findAndReplace() argument 1176 oldText.pinIndices(oldStart, oldLength); in findAndReplace() 1179 if(oldLength == 0) { in findAndReplace() 1183 while(length > 0 && length >= oldLength) { in findAndReplace() 1184 int32_t pos = indexOf(oldText, oldStart, oldLength, start, length); in findAndReplace() 1190 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace() 1191 length -= pos + oldLength - start; in findAndReplace() 1423 int32_t oldLength = this->length(); in doReplace() local 1432 setLength(oldLength - length); in doReplace() 1436 if(length >= (oldLength - start)) { in doReplace() [all …]
|
D | edits.cpp | 141 void Edits::addReplace(int32_t oldLength, int32_t newLength) { in addReplace() argument 143 if(oldLength < 0 || newLength < 0) { in addReplace() 147 if (oldLength == 0 && newLength == 0) { in addReplace() 151 int32_t newDelta = newLength - oldLength; in addReplace() 162 if(0 < oldLength && oldLength <= MAX_SHORT_CHANGE_OLD_LENGTH && in addReplace() 165 int32_t u = (oldLength << 12) | (newLength << 9); in addReplace() 178 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 179 head |= oldLength << 6; in addReplace() 184 if(oldLength < LENGTH_IN_1TRAIL) { in addReplace() 185 head |= oldLength << 6; in addReplace() [all …]
|
D | unistr_props.cpp | 37 int32_t oldLength = this->length(); in trim() local 38 int32_t i = oldLength, length; in trim() 51 if(length < oldLength) { in trim()
|
D | utext.cpp | 1904 int32_t oldLength; in repTextReplace() local 1913 oldLength=rep->length(); // will subtract from new length in repTextReplace() 1919 int32_t start32 = pinIndex(start, oldLength); in repTextReplace() 1920 int32_t limit32 = pinIndex(limit, oldLength); in repTextReplace() 1923 if (start32<oldLength && U16_IS_TRAIL(rep->charAt(start32)) && in repTextReplace() 1928 if (limit32<oldLength && U16_IS_LEAD(rep->charAt(limit32-1)) && in repTextReplace() 1938 int32_t lengthDelta = newLength - oldLength; in repTextReplace() 2180 int32_t oldLength; in unistrTextReplace() local 2192 oldLength=us->length(); in unistrTextReplace() 2193 int32_t start32 = pinIndex(start, oldLength); in unistrTextReplace() [all …]
|
D | messagepattern.cpp | 97 UBool ensureCapacityForOneMore(int32_t oldLength, UErrorCode &errorCode); 125 MessagePatternList<T, stackCapacity>::ensureCapacityForOneMore(int32_t oldLength, UErrorCode &error… in ensureCapacityForOneMore() argument 129 if(a.getCapacity()>oldLength || a.resize(2*oldLength, oldLength)!=NULL) { in ensureCapacityForOneMore()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | Edits.java | 144 public void addReplace(int oldLength, int newLength) { in addReplace() argument 145 if(oldLength < 0 || newLength < 0) { in addReplace() 147 "addReplace(" + oldLength + ", " + newLength + in addReplace() 150 if (oldLength == 0 && newLength == 0) { in addReplace() 154 int newDelta = newLength - oldLength; in addReplace() 164 if(0 < oldLength && oldLength <= MAX_SHORT_CHANGE_OLD_LENGTH && in addReplace() 167 int u = (oldLength << 12) | (newLength << 9); in addReplace() 180 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 181 head |= oldLength << 6; in addReplace() 186 if(oldLength < LENGTH_IN_1TRAIL) { in addReplace() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | Edits.java | 138 public void addReplace(int oldLength, int newLength) { in addReplace() argument 139 if(oldLength < 0 || newLength < 0) { in addReplace() 141 "addReplace(" + oldLength + ", " + newLength + in addReplace() 144 if (oldLength == 0 && newLength == 0) { in addReplace() 148 int newDelta = newLength - oldLength; in addReplace() 158 if(0 < oldLength && oldLength <= MAX_SHORT_CHANGE_OLD_LENGTH && in addReplace() 161 int u = (oldLength << 12) | (newLength << 9); in addReplace() 174 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 175 head |= oldLength << 6; in addReplace() 180 if(oldLength < LENGTH_IN_1TRAIL) { in addReplace() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | testutil.cpp | 76 return UnicodeString() + ei.oldLength() + u"->" + ei.newLength(); in printOneEdit() 78 return UnicodeString() + ei.oldLength() + u"=" + ei.newLength(); in printOneEdit() 95 int32_t prevSrcIndex = srcIndex - expected[i].oldLength; in srcIndexFromDest() 122 int32_t prevSrcIndex = srcIndex - expected[i].oldLength; in destIndexFromSrc() 184 test.assertEquals(msg + u":" + __LINE__, expect.oldLength, ei1.oldLength()); in checkEditsIter() 191 if (expect.oldLength > 0) { in checkEditsIter() 194 test.assertEquals(msg + u":" + __LINE__, expect.oldLength, ei2.oldLength()); in checkEditsIter() 210 test.assertEquals(msg + u":" + __LINE__, expect.oldLength, ei2.oldLength()); in checkEditsIter() 223 expSrcIndex += expect.oldLength; in checkEditsIter() 232 test.assertEquals(msg + u":" + __LINE__, 0, ei1.oldLength()); in checkEditsIter() [all …]
|
D | testutil.h | 22 int32_t oldLength, newLength; member
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UCharacterCaseTest.java | 796 private int oldLength, newLength; field in UCharacterCaseTest.EditChange 797 EditChange(boolean change, int oldLength, int newLength) { in EditChange() argument 799 this.oldLength = oldLength; in EditChange() 806 return "" + ei.oldLength() + "->" + ei.newLength(); in printOneEdit() 808 return "" + ei.oldLength() + "=" + ei.newLength(); in printOneEdit() 825 int prevSrcIndex = srcIndex - expected[i].oldLength; in srcIndexFromDest() 852 int prevSrcIndex = srcIndex - expected[i].oldLength; in destIndexFromSrc() 901 assertEquals(msg, expect.oldLength, ei1.oldLength()); in checkEditsIter() 908 if (expect.oldLength > 0) { in checkEditsIter() 911 assertEquals(msg, expect.oldLength, ei2.oldLength()); in checkEditsIter() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
D | UCharacterCaseTest.java | 799 private int oldLength, newLength; field in UCharacterCaseTest.EditChange 800 EditChange(boolean change, int oldLength, int newLength) { in EditChange() argument 802 this.oldLength = oldLength; in EditChange() 809 return "" + ei.oldLength() + "->" + ei.newLength(); in printOneEdit() 811 return "" + ei.oldLength() + "=" + ei.newLength(); in printOneEdit() 828 int prevSrcIndex = srcIndex - expected[i].oldLength; in srcIndexFromDest() 855 int prevSrcIndex = srcIndex - expected[i].oldLength; in destIndexFromSrc() 904 assertEquals(msg, expect.oldLength, ei1.oldLength()); in checkEditsIter() 911 if (expect.oldLength > 0) { in checkEditsIter() 914 assertEquals(msg, expect.oldLength, ei2.oldLength()); in checkEditsIter() [all …]
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | rtcp_receiver_help.cc | 58 uint16_t oldLength = applicationLength; in AddApplicationData() local 71 memcpy(applicationData, oldData, oldLength); in AddApplicationData() 72 memcpy(applicationData+oldLength, data, copySize); in AddApplicationData()
|
/external/proguard/src/proguard/classfile/editor/ |
D | CodeAttributeEditor.java | 599 int oldLength = codeAttribute.u4codeLength; in updateInstructions() local 602 if (newInstructionOffsets.length < oldLength + 1) in updateInstructions() 604 newInstructionOffsets = new int[oldLength + 1]; in updateInstructions() 609 oldLength); in updateInstructions() 625 oldLength); in updateInstructions() 638 private int mapInstructions(byte[] oldCode, int oldLength) in mapInstructions() argument 660 while (oldOffset < oldLength); in mapInstructions() 721 int oldLength) in moveInstructions() argument 741 while (oldOffset < oldLength); in moveInstructions()
|
/external/archive-patcher/explainer/src/main/java/com/google/archivepatcher/explainer/ |
D | PatchExplainer.java | 170 long oldLength = qualifiedRecommendation.getOldEntry().getCompressedSize(); in explainPatch() local 172 uncompress(oldFile, oldOffset, oldLength, uncompressor, oldTemp.file); in explainPatch() 174 extractCopy(oldFile, oldOffset, oldLength, oldTemp.file); in explainPatch()
|
/external/icu/icu4c/source/tools/makeconv/ |
D | genmbcs.cpp | 1085 uint32_t i, value, oldLength, old3Top; in transformEUC() local 1088 oldLength=mbcsData->ucm->states.maxCharLength; in transformEUC() 1089 if(oldLength<3) { in transformEUC() 1101 if(oldLength==4) { in transformEUC() 1106 for(i=0; i<old3Top; i+=oldLength) { in transformEUC() 1117 mbcsData->ucm->states.outputType=(int8_t)(MBCS_OUTPUT_3_EUC+oldLength-3); in transformEUC() 1118 mbcsData->stage3Top=(old3Top*(oldLength-1))/oldLength; in transformEUC() 1127 if(oldLength==3) { in transformEUC() 1129 for(i=0; i<old3Top; i+=oldLength) { in transformEUC()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
D | OpenIntToDoubleHashMap.java | 437 final int oldLength = states.length; in growTable() local 442 final int newLength = RESIZE_MULTIPLIER * oldLength; in growTable() 447 for (int i = 0; i < oldLength; ++i) { in growTable()
|
D | OpenIntToFieldHashMap.java | 449 final int oldLength = states.length; in growTable() local 454 final int newLength = RESIZE_MULTIPLIER * oldLength; in growTable() 459 for (int i = 0; i < oldLength; ++i) { in growTable()
|
/external/skia/tests/ |
D | PointTest.cpp | 29 SkScalar oldLength = point.length(); in test_Normalize() local 32 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(returned, oldLength)); in test_Normalize()
|
/external/icu/icu4c/source/common/unicode/ |
D | edits.h | 151 void addReplace(int32_t oldLength, int32_t newLength); 340 int32_t oldLength() const { return oldLength_; } in oldLength() function
|
/external/skqp/tests/ |
D | PointTest.cpp | 29 SkScalar oldLength = point.length(); in test_Normalize() local 32 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(returned, oldLength)); in test_Normalize()
|
/external/protobuf/js/binary/ |
D | encoder.js | 411 var oldLength = this.buffer_.length; 428 var length = this.buffer_.length - oldLength;
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | CaseMapImpl.java | 422 result.append(src, i, i + ei.oldLength()); in applyEdits() 1400 int oldLength = nextIndex - i; in toUpper() local 1402 change |= oldLength != newLength; in toUpper() 1405 edits.addReplace(oldLength, newLength); in toUpper() 1409 edits.addUnchanged(oldLength); in toUpper()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | CaseMapImpl.java | 417 result.append(src, i, i + ei.oldLength()); in applyEdits() 1395 int oldLength = nextIndex - i; in toUpper() local 1397 change |= oldLength != newLength; in toUpper() 1400 edits.addReplace(oldLength, newLength); in toUpper() 1404 edits.addUnchanged(oldLength); in toUpper()
|
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/text/ |
D | Edits.java.patch | 14 … * starts at {@link #sourceIndex()} and runs for {@link #oldLength()} chars; the destination string
|