Searched refs:newLength (Results 1 - 25 of 63) sorted by relevance

123

/external/webkit/Source/JavaScriptCore/wtf/text/
H A DStringBuffer.h54 void shrink(unsigned newLength) argument
56 ASSERT(newLength <= m_length);
57 m_length = newLength;
60 void resize(unsigned newLength) argument
62 if (newLength > m_length) {
63 if (newLength > std::numeric_limits<unsigned>::max() / sizeof(UChar))
65 m_data = static_cast<UChar*>(fastRealloc(m_data, newLength * sizeof(UChar)));
67 m_length = newLength;
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
H A DArrays.java387 public static byte[] copyOf(byte[] data, int newLength) argument
389 byte[] tmp = new byte[newLength];
391 if (newLength < data.length)
393 System.arraycopy(data, 0, tmp, 0, newLength);
403 public static int[] copyOf(int[] data, int newLength) argument
405 int[] tmp = new int[newLength];
407 if (newLength < data.length)
409 System.arraycopy(data, 0, tmp, 0, newLength);
419 public static long[] copyOf(long[] data, int newLength) argument
421 long[] tmp = new long[newLength];
435 copyOf(BigInteger[] data, int newLength) argument
[all...]
/external/proguard/src/proguard/classfile/editor/
H A DConstantPoolSorter.java78 int newLength = 1;
89 newIndex = newLength;
94 newConstantPool[newLength++] = constant;
101 newConstantPool[newLength++] = null;
112 System.arraycopy(newConstantPool, 0, programClass.constantPool, 0, newLength);
115 for (int index = newLength; index < constantPoolCount; index++)
120 programClass.u2constantPoolCount = newLength;
/external/webkit/Source/WebCore/storage/
H A DStorageMap.cpp116 unsigned newLength = m_currentLength; local
117 bool overflow = newLength + value.length() < newLength;
118 newLength += value.length();
121 overflow |= newLength - oldValue.length() > newLength;
122 newLength -= oldValue.length();
125 overflow |= newLength + adjustedKeyLength < newLength;
126 newLength
[all...]
/external/icu4c/common/
H A Dunistr_case.cpp135 int32_t newLength; local
139 newLength = ustr_toLower(csp, getArrayStart(), getCapacity(),
143 newLength = ustr_toUpper(csp, getArrayStart(), getCapacity(),
150 newLength = ustr_toTitle(csp, getArrayStart(), getCapacity(),
155 newLength = ustr_foldCase(csp, getArrayStart(), getCapacity(),
160 setLength(newLength);
161 } while(errorCode==U_BUFFER_OVERFLOW_ERROR && cloneArrayIfNeeded(newLength, newLength, FALSE));
H A Dcharstr.cpp30 CharString &CharString::truncate(int32_t newLength) { argument
31 if(newLength<0) {
32 newLength=0;
34 if(newLength<len) {
35 buffer[len=newLength]=0;
H A Dunistr.cpp1037 int32_t newLength)
1045 newText.pinIndices(newStart, newLength);
1058 replace(pos, oldLength, newText, newStart, newLength);
1060 start = pos + newLength;
1264 int32_t newLength; local
1268 newLength = oldLength + srcLength;
1269 if(newLength <= getCapacity() && isBufferWritable()) {
1281 setLength(newLength);
1292 newLength = oldLength - length + srcLength;
1299 if((fFlags&kUsingStackBuffer) && (newLength > US_STACKBUF_SIZ
1030 findAndReplace(int32_t start, int32_t length, const UnicodeString& oldText, int32_t oldStart, int32_t oldLength, const UnicodeString& newText, int32_t newStart, int32_t newLength) argument
1508 releaseBuffer(int32_t newLength) argument
[all...]
H A Dbytestriebuilder.cpp399 int32_t newLength=bytesLength+1; local
400 if(ensureCapacity(newLength)) {
401 bytesLength=newLength;
409 int32_t newLength=bytesLength+length; local
410 if(ensureCapacity(newLength)) {
411 bytesLength=newLength;
/external/webkit/Source/WebCore/rendering/svg/
H A DSVGTextLayoutAttributesBuilder.h50 TextPosition(SVGTextPositioningElement* newElement = 0, unsigned newStart = 0, unsigned newLength = 0)
53 , length(newLength)
/external/webkit/Source/WebCore/bindings/js/
H A DJSHTMLOptionsCollectionCustom.cpp48 unsigned newLength = 0; local
54 newLength = UINT_MAX;
56 newLength = static_cast<unsigned>(lengthValue);
59 imp->setLength(newLength, ec);
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DObjectArrays.java78 static <T> T[] arraysCopyOf(T[] original, int newLength) { argument
79 T[] copy = newArray(original, newLength);
81 original, 0, copy, 0, Math.min(original.length, newLength));
/external/skia/tests/
H A DPointTest.cpp32 SkScalar newLength = point.length(); local
34 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, SK_Scalar1));
/external/guava/guava/src/com/google/common/collect/
H A DObjectArrays.java105 static <T> T[] arraysCopyOf(T[] original, int newLength) { argument
106 T[] copy = newArray(original, newLength);
108 original, 0, copy, 0, Math.min(original.length, newLength));
/external/icu4c/tools/toolutil/
H A Ddenseranges.cpp50 void truncate(int32_t newLength) { argument
51 if(newLength<length) {
52 length=newLength;
/external/proguard/src/proguard/evaluation/value/
H A DInstructionOffsetValue.java158 int newLength = this.values.length;
163 newLength++;
169 if (newLength == other.values.length)
176 //if (newLength == this.values.length)
182 int[] newValues = new int[newLength];
/external/webkit/Source/WebCore/platform/network/
H A DBlobRegistryImpl.cpp113 long long newLength = currentLength > length ? length : currentLength; local
115 blobStorageData->m_data.appendData(iter->data, iter->offset + offset, newLength);
118 blobStorageData->m_data.appendFile(iter->path, iter->offset + offset, newLength, iter->expectedModificationTime);
120 length -= newLength;
/external/icu4c/test/intltest/
H A Dwinnmtst.cpp151 int newLength;
154 newLength = _vscwprintf(fmt, args);
157 nBuffer = NEW_ARRAY(UChar, newLength + 1);
160 result = _vsnwprintf(nBuffer, newLength + 1, fmt, args);
193 int newLength = GetCurrencyFormatW(lcid, 0, nBuffer, NULL, NULL, 0); local
195 buffer = NEW_ARRAY(UChar, newLength);
197 GetCurrencyFormatW(lcid, 0, nBuffer, NULL, buffer, newLength);
207 int newLength = GetNumberFormatW(lcid, 0, nBuffer, NULL, NULL, 0); local
209 buffer = NEW_ARRAY(UChar, newLength);
211 GetNumberFormatW(lcid, 0, nBuffer, NULL, buffer, newLength);
[all...]
/external/webkit/Source/WebCore/websockets/
H A DWebSocketChannel.cpp324 size_t newLength = length * 128; local
327 if (newLength > std::numeric_limits<size_t>::max() - lengthMsgByte) {
328 LOG(Network, "frame length overflow %lu+%u", static_cast<unsigned long>(newLength), lengthMsgByte);
332 newLength += lengthMsgByte;
333 if (newLength < length) { // sanity check
334 LOG(Network, "frame length integer wrap %lu->%lu", static_cast<unsigned long>(length), static_cast<unsigned long>(newLength));
338 length = newLength;
/external/webkit/Source/WebCore/bindings/v8/custom/
H A DV8HTMLOptionsCollectionCustom.cpp101 unsigned newLength = 0; local
107 newLength = UINT_MAX;
109 newLength = static_cast<unsigned>(v);
/external/icu4c/i18n/
H A Dwindtfmt.cpp245 int newLength = GetDateFormatW(fLCID, dfFlags[fDateStyle - kDateOffset], st, NULL, NULL, 0); local
247 buffer = NEW_ARRAY(UChar, newLength);
248 GetDateFormatW(fLCID, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, newLength);
271 int newLength = GetTimeFormatW(fLCID, tfFlags[fTimeStyle], st, NULL, NULL, 0); local
273 buffer = NEW_ARRAY(UChar, newLength);
274 GetDateFormatW(fLCID, tfFlags[fTimeStyle], st, NULL, buffer, newLength);
H A Dwinnmfmt.cpp257 int newLength;
260 newLength = _vscwprintf(fmt, args);
263 nBuffer = NEW_ARRAY(UChar, newLength + 1);
266 result = _vsnwprintf(nBuffer, newLength + 1, fmt, args);
308 int newLength = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, NULL, 0); local
310 buffer = NEW_ARRAY(UChar, newLength);
312 GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, newLength);
328 int newLength = GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, NULL, 0); local
330 buffer = NEW_ARRAY(UChar, newLength);
332 GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, buffer, newLength);
[all...]
/external/icu4c/i18n/unicode/
H A Dsortkey.h254 void setLength(int32_t newLength);
/external/webkit/Source/WebCore/dom/
H A DCharacterData.h68 void setDataAndUpdate(PassRefPtr<StringImpl>, unsigned offsetOfReplacedData, unsigned oldLength, unsigned newLength);
/external/skia/src/core/
H A DSkAdvancedTypefaceMetrics.cpp107 int newLength; local
109 newLength = range->fEndId - range->fStartId + 1;
115 newLength = 1;
117 SkASSERT(range->fAdvance.count() >= newLength);
118 range->fAdvance.setCount(newLength);
/external/webkit/Source/JavaScriptCore/runtime/
H A DJSArray.cpp331 unsigned newLength = value.toUInt32(exec); local
332 if (value.toNumber(exec) != static_cast<double>(newLength)) {
336 setLength(newLength);
570 // increasedLength = (newLength * 3 + 1) / 2;
572 // increasedLength = (unsigned)ceil(newLength * 1.5));
584 bool JSArray::increaseVectorLength(unsigned newLength)
592 ASSERT(newLength > vectorLength);
593 ASSERT(newLength <= MAX_STORAGE_VECTOR_INDEX);
594 unsigned newVectorLength = getNewVectorLength(newLength);
614 bool JSArray::increaseVectorPrefixLength(unsigned newLength)
[all...]

Completed in 579 milliseconds

123