Home
last modified time | relevance | path

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

12

/external/webkit/Source/JavaScriptCore/wtf/text/
DStringBuffer.h54 void shrink(unsigned newLength) in shrink() argument
56 ASSERT(newLength <= m_length); in shrink()
57 m_length = newLength; in shrink()
60 void resize(unsigned newLength) in resize() argument
62 if (newLength > m_length) { in resize()
63 if (newLength > std::numeric_limits<unsigned>::max() / sizeof(UChar)) in resize()
65 m_data = static_cast<UChar*>(fastRealloc(m_data, newLength * sizeof(UChar))); in resize()
67 m_length = newLength; in resize()
/external/webkit/Source/WebCore/storage/
DStorageMap.cpp116 unsigned newLength = m_currentLength; in setItem() local
117 bool overflow = newLength + value.length() < newLength; in setItem()
118 newLength += value.length(); in setItem()
121 overflow |= newLength - oldValue.length() > newLength; in setItem()
122 newLength -= oldValue.length(); in setItem()
125 overflow |= newLength + adjustedKeyLength < newLength; in setItem()
126 newLength += adjustedKeyLength; in setItem()
129 bool overQuota = newLength > m_quotaSize / sizeof(UChar); in setItem()
134 m_currentLength = newLength; in setItem()
/external/proguard/src/proguard/classfile/editor/
DConstantPoolSorter.java78 int newLength = 1; in visitProgramClass() local
89 newIndex = newLength; in visitProgramClass()
94 newConstantPool[newLength++] = constant; in visitProgramClass()
101 newConstantPool[newLength++] = null; in visitProgramClass()
112 System.arraycopy(newConstantPool, 0, programClass.constantPool, 0, newLength); in visitProgramClass()
115 for (int index = newLength; index < constantPoolCount; index++) in visitProgramClass()
120 programClass.u2constantPoolCount = newLength; in visitProgramClass()
/external/icu4c/common/
Dunistr_case.cpp135 int32_t newLength; in caseMap() local
139 newLength = ustr_toLower(csp, getArrayStart(), getCapacity(), in caseMap()
143 newLength = ustr_toUpper(csp, getArrayStart(), getCapacity(), in caseMap()
150 newLength = ustr_toTitle(csp, getArrayStart(), getCapacity(), in caseMap()
155 newLength = ustr_foldCase(csp, getArrayStart(), getCapacity(), in caseMap()
160 setLength(newLength); in caseMap()
161 } while(errorCode==U_BUFFER_OVERFLOW_ERROR && cloneArrayIfNeeded(newLength, newLength, FALSE)); in caseMap()
Dcharstr.cpp30 CharString &CharString::truncate(int32_t newLength) { in truncate() argument
31 if(newLength<0) { in truncate()
32 newLength=0; in truncate()
34 if(newLength<len) { in truncate()
35 buffer[len=newLength]=0; in truncate()
Dunistr.cpp1036 int32_t newLength) in findAndReplace() argument
1044 newText.pinIndices(newStart, newLength); in findAndReplace()
1057 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace()
1059 start = pos + newLength; in findAndReplace()
1497 UnicodeString::releaseBuffer(int32_t newLength) { in releaseBuffer() argument
1498 if(fFlags&kOpenGetBuffer && newLength>=-1) { in releaseBuffer()
1501 if(newLength==-1) { in releaseBuffer()
1507 newLength=(int32_t)(p-array); in releaseBuffer()
1508 } else if(newLength>capacity) { in releaseBuffer()
1509 newLength=capacity; in releaseBuffer()
[all …]
/external/webkit/Source/WebCore/bindings/js/
DJSHTMLOptionsCollectionCustom.cpp48 unsigned newLength = 0; in setLength() local
54 newLength = UINT_MAX; in setLength()
56 newLength = static_cast<unsigned>(lengthValue); in setLength()
59 imp->setLength(newLength, ec); in setLength()
/external/icu4c/test/intltest/
Dwinnmtst.cpp193 int newLength = GetCurrencyFormatW(lcid, 0, nBuffer, NULL, NULL, 0); in getWindowsFormat() local
195 buffer = NEW_ARRAY(UChar, newLength); in getWindowsFormat()
197 GetCurrencyFormatW(lcid, 0, nBuffer, NULL, buffer, newLength); in getWindowsFormat()
207 int newLength = GetNumberFormatW(lcid, 0, nBuffer, NULL, NULL, 0); in getWindowsFormat() local
209 buffer = NEW_ARRAY(UChar, newLength); in getWindowsFormat()
211 GetNumberFormatW(lcid, 0, nBuffer, NULL, buffer, newLength); in getWindowsFormat()
/external/skia/src/core/
DSkAdvancedTypefaceMetrics.cpp55 int newLength; in finishRange() local
57 newLength = endId - range->fStartId + 1; in finishRange()
59 newLength = 1; in finishRange()
61 SkASSERT(range->fAdvance.count() >= newLength); in finishRange()
62 range->fAdvance.setCount(newLength); in finishRange()
/external/webkit/Source/WebCore/websockets/
DWebSocketChannel.cpp324 size_t newLength = length * 128; in processBuffer() local
327 if (newLength > std::numeric_limits<size_t>::max() - lengthMsgByte) { in processBuffer()
328 …LOG(Network, "frame length overflow %lu+%u", static_cast<unsigned long>(newLength), lengthMsgByte); in processBuffer()
332 newLength += lengthMsgByte; in processBuffer()
333 if (newLength < length) { // sanity check in processBuffer()
334 …integer wrap %lu->%lu", static_cast<unsigned long>(length), static_cast<unsigned long>(newLength)); in processBuffer()
338 length = newLength; in processBuffer()
/external/proguard/src/proguard/evaluation/value/
DInstructionOffsetValue.java158 int newLength = this.values.length; in generalize() local
163 newLength++; in generalize()
169 if (newLength == other.values.length) in generalize()
182 int[] newValues = new int[newLength]; in generalize()
/external/webkit/Source/WebCore/platform/network/
DBlobRegistryImpl.cpp113 long long newLength = currentLength > length ? length : currentLength; in appendStorageItems() local
115 blobStorageData->m_data.appendData(iter->data, iter->offset + offset, newLength); in appendStorageItems()
118 …blobStorageData->m_data.appendFile(iter->path, iter->offset + offset, newLength, iter->expectedMod… in appendStorageItems()
120 length -= newLength; in appendStorageItems()
/external/icu4c/i18n/
Dwinnmfmt.cpp308 … int newLength = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, NULL, 0); in format() local
310 buffer = NEW_ARRAY(UChar, newLength); in format()
312 GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, newLength); in format()
328 int newLength = GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, NULL, 0); in format() local
330 buffer = NEW_ARRAY(UChar, newLength); in format()
332 GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, buffer, newLength); in format()
Dwindtfmt.cpp245 … int newLength = GetDateFormatW(fLCID, dfFlags[fDateStyle - kDateOffset], st, NULL, NULL, 0); in formatDate() local
247 buffer = NEW_ARRAY(UChar, newLength); in formatDate()
248 GetDateFormatW(fLCID, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, newLength); in formatDate()
271 int newLength = GetTimeFormatW(fLCID, tfFlags[fTimeStyle], st, NULL, NULL, 0); in formatTime() local
273 buffer = NEW_ARRAY(UChar, newLength); in formatTime()
274 GetDateFormatW(fLCID, tfFlags[fTimeStyle], st, NULL, buffer, newLength); in formatTime()
/external/webkit/Source/JavaScriptCore/runtime/
DJSArray.cpp331 unsigned newLength = value.toUInt32(exec); in put() local
332 if (value.toNumber(exec) != static_cast<double>(newLength)) { in put()
336 setLength(newLength); in put()
584 bool JSArray::increaseVectorLength(unsigned newLength) in increaseVectorLength() argument
592 ASSERT(newLength > vectorLength); in increaseVectorLength()
593 ASSERT(newLength <= MAX_STORAGE_VECTOR_INDEX); in increaseVectorLength()
594 unsigned newVectorLength = getNewVectorLength(newLength); in increaseVectorLength()
614 bool JSArray::increaseVectorPrefixLength(unsigned newLength) in increaseVectorPrefixLength() argument
622 ASSERT(newLength > vectorLength); in increaseVectorPrefixLength()
623 ASSERT(newLength <= MAX_STORAGE_VECTOR_INDEX); in increaseVectorPrefixLength()
[all …]
DOperations.h179 unsigned newLength = ropeBuilder.length(); in jsString() local
180 if (newLength < length) in jsString()
182 length = newLength; in jsString()
225 unsigned newLength = ropeBuilder.length(); in jsString() local
226 if (newLength < length) in jsString()
228 length = newLength; in jsString()
DJSArray.h159 bool increaseVectorLength(unsigned newLength);
160 bool increaseVectorPrefixLength(unsigned newLength);
/external/guava/src/com/google/common/collect/
DObjectArrays.java106 private static <T> T[] arraysCopyOf(T[] original, int newLength) { in arraysCopyOf() argument
107 T[] copy = newArray(original, newLength); in arraysCopyOf()
109 original, 0, copy, 0, Math.min(original.length, newLength)); in arraysCopyOf()
/external/webkit/Source/WebCore/rendering/svg/
DSVGTextLayoutAttributesBuilder.h50 …tPosition(SVGTextPositioningElement* newElement = 0, unsigned newStart = 0, unsigned newLength = 0)
53 , length(newLength) in element()
/external/webkit/Source/WebCore/bindings/v8/custom/
DV8HTMLOptionsCollectionCustom.cpp101 unsigned newLength = 0; in lengthAccessorSetter() local
107 newLength = UINT_MAX; in lengthAccessorSetter()
109 newLength = static_cast<unsigned>(v); in lengthAccessorSetter()
/external/webrtc/src/modules/interface/
Dmodule_common_types.h410 WebRtc_Word32 SetLength(const WebRtc_UWord32 newLength);
415 WebRtc_UWord32& newLength,
548 VideoFrame::SetLength(const WebRtc_UWord32 newLength) in SetLength() argument
550 if (newLength >_bufferSize ) in SetLength()
554 _bufferLength = newLength; in SetLength()
582 VideoFrame::Swap(WebRtc_UWord8*& newMemory, WebRtc_UWord32& newLength, WebRtc_UWord32& newSize) in Swap() argument
588 _bufferLength = newLength; in Swap()
591 newLength = tmpLength; in Swap()
/external/webkit/Source/WebCore/dom/
DNamedNodeMap.cpp229 unsigned newLength = other.length(); in setAttributes() local
230 m_attributes.resize(newLength); in setAttributes()
231 for (unsigned i = 0; i < newLength; i++) in setAttributes()
238 for (unsigned i = 0; i < newLength; i++) in setAttributes()
DInputElement.cpp148 unsigned newLength = numCharactersInGraphemeClusters(string, maxLength); in replaceEOLAndLimitLength() local
149 for (unsigned i = 0; i < newLength; ++i) { in replaceEOLAndLimitLength()
152 newLength = i; in replaceEOLAndLimitLength()
156 return string.left(newLength); in replaceEOLAndLimitLength()
DCharacterData.cpp171 …sRefPtr<StringImpl> newData, unsigned offsetOfReplacedData, unsigned oldLength, unsigned newLength) in setDataAndUpdate() argument
174 …ment()->frame()->selection()->textWillBeReplaced(this, offsetOfReplacedData, oldLength, newLength); in setDataAndUpdate()
/external/icu4c/tools/toolutil/
Dpkg_gencmn.c493 int32_t newLength; in pathToFullPath() local
498 newLength = (length + 1 + (int32_t)uprv_strlen(source)); in pathToFullPath()
499 fullPath = uprv_malloc(newLength); in pathToFullPath()

12