Home
last modified time | relevance | path

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

/external/webkit/Source/WebCore/dom/
DCharacterData.cpp42 unsigned oldLength = length(); in setData() local
44 setDataAndUpdate(dataImpl, 0, oldLength, dataImpl->length()); in setData()
45 document()->textRemoved(this, 0, oldLength); in setData()
59 unsigned oldLength = m_data->length(); in parserAppendData() local
61 unsigned end = min(dataLength, lengthLimit - oldLength); in parserAppendData()
80 updateRenderer(oldLength, 0); in parserAppendData()
171 …PassRefPtr<StringImpl> newData, unsigned offsetOfReplacedData, unsigned oldLength, unsigned newLen… in setDataAndUpdate() argument
174 …document()->frame()->selection()->textWillBeReplaced(this, offsetOfReplacedData, oldLength, newLen… in setDataAndUpdate()
177 updateRenderer(offsetOfReplacedData, oldLength); in setDataAndUpdate()
DInputElement.cpp185 …unsigned oldLength = numGraphemeClusters(toRenderTextControlSingleLine(element->renderer())->text(… in handleBeforeTextInsertedEvent() local
193 ASSERT(oldLength >= selectionLength); in handleBeforeTextInsertedEvent()
196 unsigned baseLength = oldLength - selectionLength; in handleBeforeTextInsertedEvent()
DProcessingInstruction.cpp69 int oldLength = m_data.length(); in setData() local
71 document()->textRemoved(this, 0, oldLength); in setData()
DCharacterData.h68 …void setDataAndUpdate(PassRefPtr<StringImpl>, unsigned offsetOfReplacedData, unsigned oldLength, u…
DDocument.cpp3760 int oldLength = domain().length(); in setDomain() local
3763 if (newLength >= oldLength) { in setDomain()
3770 if (test[oldLength - newLength - 1] != '.') { in setDomain()
3777 test.remove(0, oldLength - newLength); in setDomain()
/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.cpp1081 int32_t oldLength, in findAndReplace() argument
1091 oldText.pinIndices(oldStart, oldLength); in findAndReplace()
1094 if(oldLength == 0) { in findAndReplace()
1098 while(length > 0 && length >= oldLength) { in findAndReplace()
1099 int32_t pos = indexOf(oldText, oldStart, oldLength, start, length); in findAndReplace()
1105 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace()
1106 length -= pos + oldLength - start; in findAndReplace()
1306 int32_t oldLength = this->length(); in doReplace() local
1315 setLength(oldLength - length); in doReplace()
1319 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.cpp1889 int32_t oldLength; in repTextReplace() local
1898 oldLength=rep->length(); // will subtract from new length in repTextReplace()
1904 int32_t start32 = pinIndex(start, oldLength); in repTextReplace()
1905 int32_t limit32 = pinIndex(limit, oldLength); in repTextReplace()
1908 if (start32<oldLength && U16_IS_TRAIL(rep->charAt(start32)) && in repTextReplace()
1913 if (limit32<oldLength && U16_IS_LEAD(rep->charAt(limit32-1)) && in repTextReplace()
1923 int32_t lengthDelta = newLength - oldLength; in repTextReplace()
2162 int32_t oldLength; in unistrTextReplace() local
2174 oldLength=us->length(); in unistrTextReplace()
2175 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/skia/tests/
DPointTest.cpp32 SkScalar oldLength = point.length(); in test_Normalize() local
35 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(returned, oldLength)); in test_Normalize()
/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/icu4c/tools/makeconv/
Dgenmbcs.cpp1067 uint32_t i, value, oldLength, old3Top; 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=(old3Top*(oldLength-1))/oldLength; in transformEUC()
1109 if(oldLength==3) { in transformEUC()
1111 for(i=0; i<old3Top; i+=oldLength) { in transformEUC()
/external/webkit/Source/WebCore/editing/
DSelectionController.cpp282 …tion, EndPointType type, CharacterData* node, unsigned offset, unsigned oldLength, unsigned newLen… in shouldRemovePositionAfterAdoptingTextReplacement() argument
289 if (positionOffset > offset && positionOffset < offset + oldLength) in shouldRemovePositionAfterAdoptingTextReplacement()
295 …f ((positionOffset > offset + oldLength) || (positionOffset == offset + oldLength && (type == EndP… in shouldRemovePositionAfterAdoptingTextReplacement()
296 position.moveToOffset(positionOffset - oldLength + newLength); in shouldRemovePositionAfterAdoptingTextReplacement()
301 …ller::textWillBeReplaced(CharacterData* node, unsigned offset, unsigned oldLength, unsigned newLen… in textWillBeReplaced() argument
311 …, m_selection.isBaseFirst() ? EndPointIsStart : EndPointIsEnd, node, offset, oldLength, newLength); in textWillBeReplaced()
312 …, m_selection.isBaseFirst() ? EndPointIsEnd : EndPointIsStart, node, offset, oldLength, newLength); in textWillBeReplaced()
313 …vePositionAfterAdoptingTextReplacement(start, EndPointIsStart, node, offset, oldLength, newLength); in textWillBeReplaced()
314 …RemovePositionAfterAdoptingTextReplacement(end, EndPointIsEnd, node, offset, oldLength, newLength); in textWillBeReplaced()
DSelectionController.h137 … void textWillBeReplaced(CharacterData*, unsigned offset, unsigned oldLength, unsigned newLength);
DTextIterator.cpp2003 size_t oldLength = m_buffer.size(); in append() local
2004 size_t usableLength = min(m_buffer.capacity() - oldLength, length); in append()
2007 foldQuoteMarksAndSoftHyphens(m_buffer.data() + oldLength, usableLength); in append()
/external/okhttp/src/main/java/com/squareup/okhttp/internal/
DDiskLruCache.java475 long oldLength = entry.lengths[i]; in completeEdit() local
478 size = size - oldLength + newLength; in completeEdit()
/external/webkit/Source/JavaScriptCore/runtime/
DJSArray.cpp773 unsigned oldLength = storage->m_length; in shiftCount() local
775 if (!oldLength) in shiftCount()
778 if (oldLength != storage->m_numValuesInVector) { in shiftCount()
783 for (unsigned i = count; i < oldLength; ++i) { in shiftCount()
/external/icu4c/test/intltest/
Dalphaindextst.cpp31 int32_t oldLength = dest.length(); in joinLabelsAndAppend() local
34 if (dest.length() > oldLength) { in joinLabelsAndAppend()
/external/webkit/Source/WebCore/inspector/
DInspectorStyleSheet.cpp223 unsigned oldLength = propertyEnd - propertyStart; in setPropertyText() local
225 propertyLengthDelta = newLength - oldLength; in setPropertyText()
/external/icu4c/i18n/
Ducol.cpp2235 int32_t oldLength = data->writableBuffer.length(); in insertBufferEnd() local
2236 return data->writableBuffer.append(ch).getTerminatedBuffer() + oldLength; in insertBufferEnd()
2250 int32_t oldLength = data->writableBuffer.length(); in insertBufferEnd() local
2251 return data->writableBuffer.append(str, length).getTerminatedBuffer() + oldLength; in insertBufferEnd()
/external/icu4c/common/unicode/
Dunistr.h2453 int32_t oldLength,
/external/webkit/Source/WebCore/
DChangeLog-2011-02-1636732 and renamed lengthOfReplacedData to oldLength; calls textWillBeReplaced.