Home
last modified time | relevance | path

Searched refs:oldLength (Results 1 – 25 of 29) sorted by relevance

12

/external/chromium_org/third_party/icu/source/common/
Dunistr_case.cpp110 int32_t oldLength; in caseMap() local
116 oldLength = fShortLength; in caseMap()
119 oldLength = length(); in caseMap()
123 if(oldLength <= US_STACKBUF_SIZE) { in caseMap()
126 capacity = oldLength + 20; in caseMap()
140 oldArray, oldLength, in caseMap()
144 oldArray, oldLength, in caseMap()
151 oldArray, oldLength, in caseMap()
156 oldArray, oldLength, in caseMap()
Dunistr_props.cpp34 int32_t oldLength = this->length(); in trim() local
35 int32_t i = oldLength, length; in trim()
48 if(length < oldLength) { in trim()
Dunistr.cpp1033 int32_t oldLength, in findAndReplace() argument
1043 oldText.pinIndices(oldStart, oldLength); in findAndReplace()
1046 if(oldLength == 0) { in findAndReplace()
1050 while(length > 0 && length >= oldLength) { in findAndReplace()
1051 int32_t pos = indexOf(oldText, oldStart, oldLength, start, length); in findAndReplace()
1057 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace()
1058 length -= pos + oldLength - start; in findAndReplace()
1233 int32_t oldLength = this->length(); in doReplace() local
1242 setLength(oldLength - length); in doReplace()
1246 if(length >= (oldLength - start)) { in doReplace()
[all …]
Dutext.cpp2235 int32_t oldLength; in repTextReplace() local
2244 oldLength=rep->length(); // will subtract from new length in repTextReplace()
2250 int32_t start32 = pinIndex(start, oldLength); in repTextReplace()
2251 int32_t limit32 = pinIndex(limit, oldLength); in repTextReplace()
2254 if (start32<oldLength && U16_IS_TRAIL(rep->charAt(start32)) && in repTextReplace()
2259 if (limit32<oldLength && U16_IS_LEAD(rep->charAt(limit32-1)) && in repTextReplace()
2269 int32_t lengthDelta = newLength - oldLength; in repTextReplace()
2508 int32_t oldLength; in unistrTextReplace() local
2520 oldLength=us->length(); in unistrTextReplace()
2521 int32_t start32 = pinIndex(start, oldLength); in unistrTextReplace()
[all …]
Duhash.c395 int32_t oldLength = hash->length; in _uhash_rehash() local
415 hash->length = oldLength; in _uhash_rehash()
419 for (i = oldLength - 1; i >= 0; --i) { in _uhash_rehash()
/external/chromium_org/third_party/WebKit/Source/core/dom/
DCharacterData.cpp54 unsigned oldLength = length(); in setData() local
56 setDataAndUpdate(nonNullData, 0, oldLength, nonNullData.length()); in setData()
57 document().didRemoveText(this, 0, oldLength); in setData()
72 unsigned oldLength = m_data.length(); in parserAppendData() local
77 toText(this)->updateTextRenderer(oldLength, 0); in parserAppendData()
169 …ndUpdate(const String& newData, unsigned offsetOfReplacedData, unsigned oldLength, unsigned newLen… in setDataAndUpdate() argument
176 toText(this)->updateTextRenderer(offsetOfReplacedData, oldLength, recalcStyleBehavior); in setDataAndUpdate()
182 …nt().frame()->selection().didUpdateCharacterData(this, offsetOfReplacedData, oldLength, newLength); in setDataAndUpdate()
DCharacterData.h77 …void setDataAndUpdate(const String&, unsigned offsetOfReplacedData, unsigned oldLength, unsigned n…
/external/icu4c/common/
Dunistr_case.cpp101 int32_t oldLength; in caseMap() local
107 oldLength = fShortLength; in caseMap()
110 oldLength = length(); in caseMap()
114 if(oldLength <= US_STACKBUF_SIZE) { in caseMap()
117 capacity = oldLength + 20; in caseMap()
130 oldArray, oldLength, &errorCode); in caseMap()
Dunistr.cpp1079 int32_t oldLength, in findAndReplace() argument
1089 oldText.pinIndices(oldStart, oldLength); in findAndReplace()
1092 if(oldLength == 0) { in findAndReplace()
1096 while(length > 0 && length >= oldLength) { in findAndReplace()
1097 int32_t pos = indexOf(oldText, oldStart, oldLength, start, length); in findAndReplace()
1103 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace()
1104 length -= pos + oldLength - start; in findAndReplace()
1304 int32_t oldLength = this->length(); in doReplace() local
1313 setLength(oldLength - length); in doReplace()
1317 if(length >= (oldLength - start)) { in doReplace()
[all …]
Dunistr_props.cpp35 int32_t oldLength = this->length(); in trim() local
36 int32_t i = oldLength, length; in trim()
49 if(length < oldLength) { in trim()
Dutext.cpp1875 int32_t oldLength; in repTextReplace() local
1884 oldLength=rep->length(); // will subtract from new length in repTextReplace()
1890 int32_t start32 = pinIndex(start, oldLength); in repTextReplace()
1891 int32_t limit32 = pinIndex(limit, oldLength); in repTextReplace()
1894 if (start32<oldLength && U16_IS_TRAIL(rep->charAt(start32)) && in repTextReplace()
1899 if (limit32<oldLength && U16_IS_LEAD(rep->charAt(limit32-1)) && in repTextReplace()
1909 int32_t lengthDelta = newLength - oldLength; in repTextReplace()
2148 int32_t oldLength; in unistrTextReplace() local
2160 oldLength=us->length(); in unistrTextReplace()
2161 int32_t start32 = pinIndex(start, oldLength); in unistrTextReplace()
[all …]
Dmessagepattern.cpp95 UBool ensureCapacityForOneMore(int32_t oldLength, UErrorCode &errorCode);
123 MessagePatternList<T, stackCapacity>::ensureCapacityForOneMore(int32_t oldLength, UErrorCode &error… in ensureCapacityForOneMore() argument
127 if(a.getCapacity()>oldLength || a.resize(2*oldLength, oldLength)!=NULL) { in ensureCapacityForOneMore()
Duhash.c396 int32_t oldLength = hash->length; in _uhash_rehash() local
416 hash->length = oldLength; in _uhash_rehash()
420 for (i = oldLength - 1; i >= 0; --i) { in _uhash_rehash()
/external/proguard/src/proguard/classfile/editor/
DCodeAttributeEditor.java513 int oldLength = codeAttribute.u4codeLength; in updateInstructions() local
516 if (instructionOffsetMap.length < oldLength + 1) in updateInstructions()
518 instructionOffsetMap = new int[oldLength + 1]; in updateInstructions()
523 oldLength); in updateInstructions()
539 oldLength); in updateInstructions()
552 private int mapInstructions(byte[] oldCode, int oldLength) in mapInstructions() argument
574 while (oldOffset < oldLength); in mapInstructions()
635 int oldLength) in moveInstructions() argument
655 while (oldOffset < oldLength); in moveInstructions()
/external/robolectric/src/main/java/android/net/
DUri__FromAndroid.java1690 int oldLength = s.length(); in encode() local
1696 while (current < oldLength) { in encode()
1701 while (nextToEncode < oldLength in encode()
1707 if (nextToEncode == oldLength) { in encode()
1713 encoded.append(s, current, oldLength); in encode()
1734 while (nextAllowed < oldLength in encode()
1805 int oldLength = s.length(); in decode() local
1811 while (current < oldLength) { in decode()
1823 decoded.append(s, current, oldLength); in decode()
1834 decoded = new StringBuilder(oldLength); in decode()
[all …]
/external/skia/tests/
DPointTest.cpp30 SkScalar oldLength = point.length(); in test_Normalize() local
33 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(returned, oldLength)); in test_Normalize()
/external/chromium_org/third_party/icu/source/tools/makeconv/
Dgenmbcs.c1067 uint32_t i, value, oldLength, old3Top, new3Top; in transformEUC() local
1070 oldLength=mbcsData->ucm->states.maxCharLength; in transformEUC()
1071 if(oldLength<3) { in transformEUC()
1083 if(oldLength==4) { in transformEUC()
1088 for(i=0; i<old3Top; i+=oldLength) { in transformEUC()
1099 mbcsData->ucm->states.outputType=(int8_t)(MBCS_OUTPUT_3_EUC+oldLength-3); in transformEUC()
1100 mbcsData->stage3Top=new3Top=(old3Top*(oldLength-1))/oldLength; in transformEUC()
1109 if(oldLength==3) { in transformEUC()
1111 for(i=0; i<old3Top; i+=oldLength) { in transformEUC()
/external/icu4c/tools/makeconv/
Dgenmbcs.cpp1072 uint32_t i, value, oldLength, old3Top; in transformEUC() local
1075 oldLength=mbcsData->ucm->states.maxCharLength; in transformEUC()
1076 if(oldLength<3) { in transformEUC()
1088 if(oldLength==4) { in transformEUC()
1093 for(i=0; i<old3Top; i+=oldLength) { in transformEUC()
1104 mbcsData->ucm->states.outputType=(int8_t)(MBCS_OUTPUT_3_EUC+oldLength-3); in transformEUC()
1105 mbcsData->stage3Top=(old3Top*(oldLength-1))/oldLength; in transformEUC()
1114 if(oldLength==3) { in transformEUC()
1116 for(i=0; i<old3Top; i+=oldLength) { in transformEUC()
/external/chromium_org/third_party/WebKit/Source/core/editing/
DFrameSelection.cpp379 …onst Position& position, CharacterData* node, unsigned offset, unsigned oldLength, unsigned newLen… in updatePositionAfterAdoptingTextReplacement() argument
388 if (positionOffset >= offset && positionOffset <= offset + oldLength) in updatePositionAfterAdoptingTextReplacement()
393 if (positionOffset > offset + oldLength) in updatePositionAfterAdoptingTextReplacement()
394 positionOffset = positionOffset - oldLength + newLength; in updatePositionAfterAdoptingTextReplacement()
402 …::didUpdateCharacterData(CharacterData* node, unsigned offset, unsigned oldLength, unsigned newLen… in didUpdateCharacterData() argument
408 …updatePositionAfterAdoptingTextReplacement(m_selection.base(), node, offset, oldLength, newLength); in didUpdateCharacterData()
409 …datePositionAfterAdoptingTextReplacement(m_selection.extent(), node, offset, oldLength, newLength); in didUpdateCharacterData()
410 …pdatePositionAfterAdoptingTextReplacement(m_selection.start(), node, offset, oldLength, newLength); in didUpdateCharacterData()
411 … updatePositionAfterAdoptingTextReplacement(m_selection.end(), node, offset, oldLength, newLength); in didUpdateCharacterData()
450 unsigned oldLength = oldNode.length(); in updatePostionAfterAdoptingTextNodeSplit() local
[all …]
DFrameSelection.h155 …void didUpdateCharacterData(CharacterData*, unsigned offset, unsigned oldLength, unsigned newLengt…
DTextIterator.cpp1796 size_t oldLength = m_buffer.size(); in append() local
1797 size_t usableLength = min(m_buffer.capacity() - oldLength, length); in append()
1799 m_buffer.resize(oldLength + usableLength); in append()
1800 UChar* destination = m_buffer.data() + oldLength; in append()
/external/chromium_org/third_party/WebKit/Source/core/html/forms/
DTextFieldInputType.cpp439 unsigned oldLength = element().innerTextValue().length(); in handleBeforeTextInsertedEvent() local
447 ASSERT(oldLength >= selectionLength); in handleBeforeTextInsertedEvent()
450 unsigned baseLength = oldLength - selectionLength; in handleBeforeTextInsertedEvent()
/external/icu4c/test/intltest/
Dalphaindextst.cpp31 int32_t oldLength = dest.length(); in joinLabelsAndAppend() local
34 if (dest.length() > oldLength) { in joinLabelsAndAppend()
/external/okhttp/src/main/java/com/squareup/okhttp/internal/
DDiskLruCache.java530 long oldLength = entry.lengths[i]; in completeEdit() local
533 size = size - oldLength + newLength; in completeEdit()
/external/chromium_org/third_party/WebKit/Source/core/inspector/
DInjectedScriptCanvasModuleSource.js3356 var oldLength = this._calls.length;
3358 toIndex = oldLength;
3360 toIndex = Math.min(toIndex, oldLength);
3361 var newIndex = Math.min(fromIndex, oldLength);

12