/external/icu/icu4c/source/common/ |
H A D | charstr.cpp | 42 CharString &CharString::truncate(int32_t newLength) { argument 43 if(newLength<0) { 44 newLength=0; 46 if(newLength<len) { 47 buffer[len=newLength]=0;
|
H A D | unistr_case.cpp | 128 int32_t newLength; local 131 newLength = stringCaseMapper(csm, getArrayStart(), getCapacity(), 133 setLength(newLength); 134 } while(errorCode==U_BUFFER_OVERFLOW_ERROR && cloneArrayIfNeeded(newLength, newLength, FALSE));
|
H A D | ubiditransform.c | 216 * @param newLength A length of the new text in <code>UChar</code>s. 221 updateSrc(UBiDiTransform *pTransform, const UChar *newSrc, uint32_t newLength, argument 224 if (newSize < newLength) { 242 u_strncpy(pTransform->src, newSrc, newLength); 244 pTransform->srcSize, newLength, pErrorCode);
|
H A D | ucharstriebuilder.cpp | 351 int32_t newLength=ucharsLength+1; local 352 if(ensureCapacity(newLength)) { 353 ucharsLength=newLength; 361 int32_t newLength=ucharsLength+length; local 362 if(ensureCapacity(newLength)) { 363 ucharsLength=newLength;
|
/external/smali/util/src/main/java/org/jf/util/ |
H A D | StringWrapper.java | 175 private static String[] addString(@Nonnull String[] arr, String str, int index, int newLength) { argument 177 arr = enlargeArray(arr, newLength); 184 private static String[] enlargeArray(String[] arr, int newLength) { argument 185 String[] newArr = new String[newLength];
|
/external/guava/guava/src/com/google/common/collect/ |
H A D | ObjectArrays.java | 111 static <T> T[] arraysCopyOf(T[] original, int newLength) { argument 112 T[] copy = newArray(original, newLength); 114 original, 0, copy, 0, Math.min(original.length, newLength));
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
H A D | ObjectArrays.java | 82 static <T> T[] arraysCopyOf(T[] original, int newLength) { argument 83 T[] copy = newArray(original, newLength); 85 original, 0, copy, 0, Math.min(original.length, newLength));
|
/external/icu/icu4c/source/i18n/ |
H A D | sortkey.cpp | 114 void CollationKey::setLength(int32_t newLength) { argument 115 // U_ASSERT(newLength >= 0 && newLength <= getCapacity()); 116 fFlagAndLength = (fFlagAndLength & 0x80000000) | newLength;
|
H A D | rbt_rule.cpp | 454 int32_t newLength = output->toReplacer()->replace(text, pos.start, keyLimit, newStart); local 455 int32_t lenDelta = newLength - (keyLimit - pos.start);
|
H A D | winnmfmt.cpp | 266 int newLength; 269 newLength = _vscwprintf(fmt, args); 272 nBuffer = NEW_ARRAY(UChar, newLength + 1); 275 result = _vsnwprintf(nBuffer, newLength + 1, fmt, args); 317 int newLength = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, NULL, 0); local 319 buffer = NEW_ARRAY(wchar_t, newLength); 321 GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, newLength); 337 int newLength = GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, NULL, 0); local 339 buffer = NEW_ARRAY(wchar_t, newLength); 341 GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, buffer, newLength); [all...] |
H A D | windtfmt.cpp | 242 int newLength = GetDateFormatW(fLCID, dfFlags[fDateStyle - kDateOffset], st, NULL, NULL, 0); local 244 buffer = NEW_ARRAY(wchar_t, newLength); 245 GetDateFormatW(fLCID, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, newLength); 268 int newLength = GetTimeFormatW(fLCID, tfFlags[fTimeStyle], st, NULL, NULL, 0); local 270 buffer = NEW_ARRAY(wchar_t, newLength); 271 GetDateFormatW(fLCID, tfFlags[fTimeStyle], st, NULL, buffer, newLength);
|
/external/icu/icu4c/source/tools/toolutil/ |
H A D | denseranges.cpp | 52 void truncate(int32_t newLength) { argument 53 if(newLength<length) { 54 length=newLength;
|
H A D | pkg_gencmn.c | 512 int32_t newLength; local 517 newLength = (length + 1 + (int32_t)uprv_strlen(source)); 518 fullPath = uprv_malloc(newLength);
|
/external/skia/src/core/ |
H A D | SkLinearBitmapPipeline_matrix.h | 53 SkScalar newLength = length * fXScale; local 54 next->pointSpan(Span{newStart, newLength, count});
|
H A D | SkLinearBitmapPipeline_core.h | 111 SkScalar newLength = dxSteps * dx; local 120 if (this->startX() + newLength == breakX && dx > 0) { 123 newLength -= dx; 135 SkScalar lengthToStart = newLength + dx; 140 return Span{newStart, newLength, newCount};
|
/external/skia/tests/ |
H A D | Point3Test.cpp | 95 SkScalar newLength = point.length(); local 100 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, 0)); 104 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, SK_Scalar1));
|
H A D | PointTest.cpp | 31 SkScalar newLength = point.length(); local 33 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, SK_Scalar1));
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
H A D | Arrays.java | 730 public static byte[] copyOf(byte[] data, int newLength) argument 732 byte[] tmp = new byte[newLength]; 734 if (newLength < data.length) 736 System.arraycopy(data, 0, tmp, 0, newLength); 746 public static char[] copyOf(char[] data, int newLength) argument 748 char[] tmp = new char[newLength]; 750 if (newLength < data.length) 752 System.arraycopy(data, 0, tmp, 0, newLength); 762 public static int[] copyOf(int[] data, int newLength) argument 764 int[] tmp = new int[newLength]; 778 copyOf(long[] data, int newLength) argument 794 copyOf(BigInteger[] data, int newLength) argument [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
H A D | Edits.java | 101 public void addReplace(int oldLength, int newLength) { argument 102 if(oldLength == newLength && 0 < oldLength && oldLength <= MAX_SHORT_WIDTH) { 115 if(oldLength < 0 || newLength < 0) { 117 "addReplace(" + oldLength + ", " + newLength + 120 if (oldLength == 0 && newLength == 0) { 123 int newDelta = newLength - oldLength; 134 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { 136 head |= newLength; 150 if(newLength < LENGTH_IN_1TRAIL) { 151 head |= newLength; 419 public int newLength() { return newLength_; } method in class:Edits.Iterator [all...] |
/external/icu/icu4c/source/test/intltest/ |
H A D | winnmtst.cpp | 152 int newLength; 155 newLength = _vscwprintf(fmt, args); 158 nBuffer = NEW_ARRAY(UChar, newLength + 1); 161 result = _vsnwprintf(nBuffer, newLength + 1, fmt, args); 194 int newLength = GetCurrencyFormatW(lcid, 0, nBuffer, NULL, NULL, 0); local 196 buffer = NEW_ARRAY(wchar_t, newLength); 198 GetCurrencyFormatW(lcid, 0, nBuffer, NULL, buffer, newLength); 208 int newLength = GetNumberFormatW(lcid, 0, nBuffer, NULL, NULL, 0); local 210 buffer = NEW_ARRAY(wchar_t, newLength); 212 GetNumberFormatW(lcid, 0, nBuffer, NULL, buffer, newLength); [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | Edits.java | 104 public void addReplace(int oldLength, int newLength) { argument 105 if(oldLength == newLength && 0 < oldLength && oldLength <= MAX_SHORT_WIDTH) { 118 if(oldLength < 0 || newLength < 0) { 120 "addReplace(" + oldLength + ", " + newLength + 123 if (oldLength == 0 && newLength == 0) { 126 int newDelta = newLength - oldLength; 137 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { 139 head |= newLength; 153 if(newLength < LENGTH_IN_1TRAIL) { 154 head |= newLength; 430 public int newLength() { return newLength_; } method in class:Edits.Iterator [all...] |
/external/skia/src/pdf/ |
H A D | SkPDFMakeCIDGlyphWidthsArray.cpp | 95 int newLength; local 97 newLength = range->fEndId - range->fStartId + 1; 102 newLength = 1; 104 SkASSERT(range->fAdvance.count() >= newLength); 105 range->fAdvance.setCount(newLength);
|
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/bsdiff/ |
H A D | BsPatchTest.java | 165 10, // newLength 188 -10, // newLength (illegal) 197 Assert.fail("Read patch with negative newLength"); 211 Integer.MAX_VALUE + 1, // newLength (max supported is Integer.MAX_VALUE) 221 Assert.fail("Read patch with excessive newLength"); 235 10, // newLength 258 10, // newLength 281 10, // newLength 304 10, // newLength 326 // Make diffSegmentLength + copySegmentLength > newLength 754 makePatch( String signature, long newLength, long diffSegmentLength, long copySegmentLength, long offsetToNextInput, byte[] addends) argument [all...] |
/external/clang/lib/Rewrite/ |
H A D | Rewriter.cpp | 319 unsigned newLength = getRangeSize(replacementRange); local 324 return ReplaceText(start, origLength, MB.substr(newOffs, newLength));
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
H A D | UCharacterCaseTest.java | 717 private int oldLength, newLength; field in class:UCharacterCaseTest.EditChange 718 EditChange(boolean change, int oldLength, int newLength) { argument 721 this.newLength = newLength; 740 assertEquals(msg, expect.newLength, ei1.newLength()); 750 assertEquals(msg, expect.newLength, ei2.newLength()); 763 expDestIndex += expect.newLength; 765 expReplIndex += expect.newLength; [all...] |