Home
last modified time | relevance | path

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

/external/icu4c/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.cpp1034 int32_t oldLength, in findAndReplace() argument
1044 oldText.pinIndices(oldStart, oldLength); in findAndReplace()
1047 if(oldLength == 0) { in findAndReplace()
1051 while(length > 0 && length >= oldLength) { in findAndReplace()
1052 int32_t pos = indexOf(oldText, oldStart, oldLength, start, length); in findAndReplace()
1058 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace()
1059 length -= pos + oldLength - start; in findAndReplace()
1234 int32_t oldLength = this->length(); in doReplace() local
1243 setLength(oldLength - length); in doReplace()
1247 if(length >= (oldLength - start)) { in doReplace()
[all …]
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()
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 …]
Dmessagepattern.cpp90 UBool ensureCapacityForOneMore(int32_t oldLength, UErrorCode &errorCode);
115 MessagePatternList<T, stackCapacity>::ensureCapacityForOneMore(int32_t oldLength, UErrorCode &error… in ensureCapacityForOneMore() argument
119 if(a.getCapacity()>oldLength || a.resize(2*oldLength, oldLength)!=NULL) { in ensureCapacityForOneMore()
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/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/skia/tests/
DPointTest.cpp30 SkScalar oldLength = point.length(); in test_Normalize() local
33 REPORTER_ASSERT(reporter, 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/icu4c/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/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.cpp2001 size_t oldLength = m_buffer.size(); in append() local
2002 size_t usableLength = min(m_buffer.capacity() - oldLength, length); in append()
2005 foldQuoteMarksAndSoftHyphens(m_buffer.data() + oldLength, usableLength); in append()
/external/okhttp/src/main/java/libcore/io/
DDiskLruCache.java469 long oldLength = entry.lengths[i]; in completeEdit() local
472 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/webkit/Source/WebCore/inspector/
DInspectorStyleSheet.cpp223 unsigned oldLength = propertyEnd - propertyStart; in setPropertyText() local
225 propertyLengthDelta = newLength - oldLength; in setPropertyText()
/external/icu4c/i18n/
Ducol.cpp2211 int32_t oldLength = data->writableBuffer.length(); in insertBufferEnd() local
2212 return data->writableBuffer.append(ch).getTerminatedBuffer() + oldLength; in insertBufferEnd()
2226 int32_t oldLength = data->writableBuffer.length(); in insertBufferEnd() local
2227 return data->writableBuffer.append(str, length).getTerminatedBuffer() + oldLength; in insertBufferEnd()
/external/icu4c/common/unicode/
Dunistr.h2392 int32_t oldLength,
/external/webkit/Source/WebCore/
DChangeLog-2011-02-1636732 and renamed lengthOfReplacedData to oldLength; calls textWillBeReplaced.