/external/chromium_org/third_party/WebKit/Source/wtf/text/ |
H A D | StringBuffer.h | 54 void shrink(unsigned newLength) argument 56 if (m_data->length() == newLength) 58 m_data->truncateAssumingIsolated(newLength); 61 void resize(unsigned newLength) argument 65 m_data = StringImpl::createUninitialized(newLength, characters); 68 if (newLength > m_data->length()) { 70 m_data = StringImpl::reallocate(m_data.release(), newLength, characters); 73 shrink(newLength);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
H A D | Arrays.java | 499 public static byte[] copyOf(byte[] data, int newLength) argument 501 byte[] tmp = new byte[newLength]; 503 if (newLength < data.length) 505 System.arraycopy(data, 0, tmp, 0, newLength); 515 public static char[] copyOf(char[] data, int newLength) argument 517 char[] tmp = new char[newLength]; 519 if (newLength < data.length) 521 System.arraycopy(data, 0, tmp, 0, newLength); 531 public static int[] copyOf(int[] data, int newLength) argument 533 int[] tmp = new int[newLength]; 547 copyOf(long[] data, int newLength) argument 563 copyOf(BigInteger[] data, int newLength) argument [all...] |
/external/proguard/src/proguard/classfile/editor/ |
H A D | ConstantPoolSorter.java | 78 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/chromium_org/third_party/WebKit/Source/platform/audio/ |
H A D | AudioChannel.cpp | 44 void AudioChannel::resizeSmaller(size_t newLength) argument 46 ASSERT(newLength <= m_length); 47 if (newLength <= m_length) 48 m_length = newLength;
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/ |
H A D | SVGTextLayoutAttributesBuilder.h | 56 TextPosition(SVGTextPositioningElement* newElement = 0, unsigned newStart = 0, unsigned newLength = 0) 59 , length(newLength)
|
/external/chromium_org/third_party/icu/source/common/ |
H A D | unistr_case.cpp | 135 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 D | charstr.cpp | 30 CharString &CharString::truncate(int32_t newLength) { argument 31 if(newLength<0) { 32 newLength=0; 34 if(newLength<len) { 35 buffer[len=newLength]=0;
|
/external/chromium_org/third_party/WebKit/Source/platform/exported/ |
H A D | WebAudioBus.cpp | 65 void WebAudioBus::resizeSmaller(size_t newLength) argument 70 ASSERT(newLength <= length()); 71 m_private->resizeSmaller(newLength);
|
/external/icu4c/common/ |
H A D | unistr_case.cpp | 126 int32_t newLength; local 129 newLength = stringCaseMapper(csm, getArrayStart(), getCapacity(), 131 setLength(newLength); 132 } while(errorCode==U_BUFFER_OVERFLOW_ERROR && cloneArrayIfNeeded(newLength, newLength, FALSE));
|
H A D | charstr.cpp | 30 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 D | unistr.cpp | 1082 int32_t newLength) 1090 newText.pinIndices(newStart, newLength); 1103 replace(pos, oldLength, newText, newStart, newLength); 1105 start = pos + newLength; 1334 int32_t newLength; local 1341 newLength = oldLength + srcLength; 1342 if(newLength <= getCapacity() && isBufferWritable()) { 1354 setLength(newLength); 1365 newLength = oldLength - length + srcLength; 1372 if((fFlags&kUsingStackBuffer) && (newLength > US_STACKBUF_SIZ 1075 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 1581 releaseBuffer(int32_t newLength) argument [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
H A D | ObjectArrays.java | 78 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/chromium_org/third_party/WebKit/Source/bindings/v8/custom/ |
H A D | V8HTMLOptionsCollectionCustom.cpp | 102 unsigned newLength = 0; local 108 newLength = UINT_MAX; 110 newLength = static_cast<unsigned>(v); 116 imp->setLength(newLength, exceptionState);
|
/external/chromium_org/third_party/WebKit/public/platform/ |
H A D | WebAudioBus.h | 54 void resizeSmaller(size_t newLength);
|
/external/guava/guava/src/com/google/common/collect/ |
H A D | ObjectArrays.java | 105 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 D | denseranges.cpp | 50 void truncate(int32_t newLength) { argument 51 if(newLength<length) { 52 length=newLength;
|
/external/proguard/src/proguard/evaluation/value/ |
H A D | InstructionOffsetValue.java | 158 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/chromium_org/third_party/icu/source/test/intltest/ |
H A D | winnmtst.cpp | 151 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/icu4c/test/intltest/ |
H A D | winnmtst.cpp | 151 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/chromium_org/v8/src/ |
H A D | typedarray.js | 69 var newLength; variable 76 newLength = newByteLength / ELEMENT_SIZE; 78 var newLength = ToPositiveInteger(length, "invalid_typed_array_length"); 79 newByteLength = newLength * ELEMENT_SIZE; 82 || (newLength > %MaxSmi())) { 168 var newLength = endInt - beginInt; 172 beginByteOffset, newLength);
|
/external/chromium_org/third_party/icu/source/i18n/ |
H A D | windtfmt.cpp | 245 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 D | winnmfmt.cpp | 257 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/ |
H A D | windtfmt.cpp | 245 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 D | winnmfmt.cpp | 257 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/chromium_org/third_party/WebKit/Source/core/html/forms/ |
H A D | TextFieldInputType.cpp | 410 unsigned newLength = std::min(maxLength, string.length()); local 413 for (unsigned i = 0; i < newLength; ++i) { 416 newLength = i; 420 if (newLength == string.length()) 422 if (newLength > 0 && U16_IS_LEAD(string[newLength - 1])) 423 --newLength; 424 return string.left(newLength);
|