Home
last modified time | relevance | path

Searched refs:minLength (Results 1 – 25 of 43) sorted by relevance

12

/external/guava/guava/src/com/google/common/base/
DStrings.java98 public static String padStart(String string, int minLength, char padChar) { in padStart() argument
100 if (string.length() >= minLength) { in padStart()
103 StringBuilder sb = new StringBuilder(minLength); in padStart()
104 for (int i = string.length(); i < minLength; i++) { in padStart()
130 public static String padEnd(String string, int minLength, char padChar) { in padEnd() argument
132 if (string.length() >= minLength) { in padEnd()
135 StringBuilder sb = new StringBuilder(minLength); in padEnd()
137 for (int i = string.length(); i < minLength; i++) { in padEnd()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationWeights.java97 int minLength=ranges[0].length; in allocWeights() local
99 if(allocWeightsInShortRanges(n, minLength)) { break; } in allocWeights()
101 if(minLength == 4) { in allocWeights()
107 if(allocWeightsInMinLengthRanges(n, minLength)) { break; } in allocWeights()
111 for(int i=0; ranges[i].length==minLength; ++i) { in allocWeights()
457 private boolean allocWeightsInShortRanges(int n, int minLength) { in allocWeightsInShortRanges() argument
459 for(int i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges()
462 if(ranges[i].length > minLength) { in allocWeightsInShortRanges()
482 private boolean allocWeightsInMinLengthRanges(int n, int minLength) { in allocWeightsInMinLengthRanges() argument
489 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationWeights.java99 int minLength=ranges[0].length; in allocWeights() local
101 if(allocWeightsInShortRanges(n, minLength)) { break; } in allocWeights()
103 if(minLength == 4) { in allocWeights()
109 if(allocWeightsInMinLengthRanges(n, minLength)) { break; } in allocWeights()
113 for(int i=0; ranges[i].length==minLength; ++i) { in allocWeights()
459 private boolean allocWeightsInShortRanges(int n, int minLength) { in allocWeightsInShortRanges() argument
461 for(int i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges()
464 if(ranges[i].length > minLength) { in allocWeightsInShortRanges()
484 private boolean allocWeightsInMinLengthRanges(int n, int minLength) { in allocWeightsInMinLengthRanges() argument
491 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges()
[all …]
/external/icu/icu4c/source/i18n/
Dcollationweights.cpp390 CollationWeights::allocWeightsInShortRanges(int32_t n, int32_t minLength) { in allocWeightsInShortRanges() argument
392 for(int32_t i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges()
395 if(ranges[i].length > minLength) { in allocWeightsInShortRanges()
421 CollationWeights::allocWeightsInMinLengthRanges(int32_t n, int32_t minLength) { in allocWeightsInMinLengthRanges() argument
428 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges()
433 int32_t nextCountBytes = countBytes(minLength + 1); in allocWeightsInMinLengthRanges()
476 ranges[0].end = incWeightByOffset(start, minLength, count1 - 1); in allocWeightsInMinLengthRanges()
479 ranges[1].start = incWeight(ranges[0].end, minLength); in allocWeightsInMinLengthRanges()
481 ranges[1].length = minLength; // +1 when lengthened in allocWeightsInMinLengthRanges()
510 int32_t minLength=ranges[0].length; in allocWeights() local
[all …]
Dsortkey.cpp193 int32_t minLength = getLength(); in compareTo() local
195 if (minLength < targetLength) { in compareTo()
197 } else if (minLength == targetLength) { in compareTo()
200 minLength = targetLength; in compareTo()
204 if (minLength > 0) { in compareTo()
205 int diff = uprv_memcmp(src, tgt, minLength); in compareTo()
Dcollationweights.h97 UBool allocWeightsInShortRanges(int32_t n, int32_t minLength);
98 UBool allocWeightsInMinLengthRanges(int32_t n, int32_t minLength);
/external/icu/icu4c/source/common/
Duinvchar.c452 int32_t minLength; in uprv_compareInvAscii() local
467 minLength= outLength<localLength ? outLength : localLength; in uprv_compareInvAscii()
469 while(minLength>0) { in uprv_compareInvAscii()
486 --minLength; in uprv_compareInvAscii()
497 int32_t minLength; in uprv_compareInvEbcdic() local
512 minLength= outLength<localLength ? outLength : localLength; in uprv_compareInvEbcdic()
514 while(minLength>0) { in uprv_compareInvEbcdic()
533 --minLength; in uprv_compareInvEbcdic()
Ducnv_ext.cpp947 extSetUseMapping(UConverterUnicodeSet which, int32_t minLength, uint32_t value) { in extSetUseMapping() argument
968 return UCNV_EXT_FROM_U_GET_LENGTH(value)>=minLength; in extSetUseMapping()
976 int32_t minLength, in ucnv_extGetUnicodeSetString() argument
994 if(extSetUseMapping(which, minLength, value)) { in ucnv_extGetUnicodeSetString()
1013 sharedData, cx, sa, which, minLength, in ucnv_extGetUnicodeSetString()
1017 } else if(extSetUseMapping(which, minLength, value)) { in ucnv_extGetUnicodeSetString()
1034 int32_t st1, stage1Length, st2, st3, minLength; in ucnv_extGetUnicodeSet() local
1055 minLength=3; in ucnv_extGetUnicodeSet()
1060 minLength=2; in ucnv_extGetUnicodeSet()
1062 minLength=1; in ucnv_extGetUnicodeSet()
[all …]
/external/guava/guava/src/com/google/common/primitives/
DBooleans.java225 boolean[] array, int minLength, int padding) { in ensureCapacity() argument
226 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
228 return (array.length < minLength) in ensureCapacity()
229 ? copyOf(array, minLength + padding) in ensureCapacity()
289 int minLength = Math.min(left.length, right.length); in compare() local
290 for (int i = 0; i < minLength; i++) { in compare()
DChars.java345 char[] array, int minLength, int padding) { in ensureCapacity() argument
346 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
348 return (array.length < minLength) in ensureCapacity()
349 ? copyOf(array, minLength + padding) in ensureCapacity()
410 int minLength = Math.min(left.length, right.length); in compare() local
411 for (int i = 0; i < minLength; i++) { in compare()
DFloats.java320 float[] array, int minLength, int padding) { in ensureCapacity() argument
321 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
323 return (array.length < minLength) in ensureCapacity()
324 ? copyOf(array, minLength + padding) in ensureCapacity()
389 int minLength = Math.min(left.length, right.length); in compare() local
390 for (int i = 0; i < minLength; i++) { in compare()
DDoubles.java324 double[] array, int minLength, int padding) { in ensureCapacity() argument
325 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
327 return (array.length < minLength) in ensureCapacity()
328 ? copyOf(array, minLength + padding) in ensureCapacity()
393 int minLength = Math.min(left.length, right.length); in compare() local
394 for (int i = 0; i < minLength; i++) { in compare()
DLongs.java423 long[] array, int minLength, int padding) { in ensureCapacity() argument
424 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
426 return (array.length < minLength) in ensureCapacity()
427 ? copyOf(array, minLength + padding) in ensureCapacity()
487 int minLength = Math.min(left.length, right.length); in compare() local
488 for (int i = 0; i < minLength; i++) { in compare()
DShorts.java389 short[] array, int minLength, int padding) { in ensureCapacity() argument
390 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
392 return (array.length < minLength) in ensureCapacity()
393 ? copyOf(array, minLength + padding) in ensureCapacity()
453 int minLength = Math.min(left.length, right.length); in compare() local
454 for (int i = 0; i < minLength; i++) { in compare()
DBytes.java201 byte[] array, int minLength, int padding) { in ensureCapacity() argument
202 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
204 return (array.length < minLength) in ensureCapacity()
205 ? copyOf(array, minLength + padding) in ensureCapacity()
DInts.java391 int[] array, int minLength, int padding) { in ensureCapacity() argument
392 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
394 return (array.length < minLength) in ensureCapacity()
395 ? copyOf(array, minLength + padding) in ensureCapacity()
454 int minLength = Math.min(left.length, right.length); in compare() local
455 for (int i = 0; i < minLength; i++) { in compare()
DSignedBytes.java192 int minLength = Math.min(left.length, right.length); in compare() local
193 for (int i = 0; i < minLength; i++) { in compare()
DUnsignedInts.java162 int minLength = Math.min(left.length, right.length); in compare() local
163 for (int i = 0; i < minLength; i++) { in compare()
DUnsignedBytes.java292 int minLength = Math.min(left.length, right.length); in compare() local
293 for (int i = 0; i < minLength; i++) { in compare()
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
DChars.java294 char[] array, int minLength, int padding) { in ensureCapacity() argument
295 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
297 return (array.length < minLength) in ensureCapacity()
298 ? copyOf(array, minLength + padding) in ensureCapacity()
359 int minLength = Math.min(left.length, right.length); in compare() local
360 for (int i = 0; i < minLength; i++) { in compare()
DFloats.java316 float[] array, int minLength, int padding) { in ensureCapacity() argument
317 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
319 return (array.length < minLength) in ensureCapacity()
320 ? copyOf(array, minLength + padding) in ensureCapacity()
385 int minLength = Math.min(left.length, right.length); in compare() local
386 for (int i = 0; i < minLength; i++) { in compare()
DDoubles.java319 double[] array, int minLength, int padding) { in ensureCapacity() argument
320 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
322 return (array.length < minLength) in ensureCapacity()
323 ? copyOf(array, minLength + padding) in ensureCapacity()
388 int minLength = Math.min(left.length, right.length); in compare() local
389 for (int i = 0; i < minLength; i++) { in compare()
DShorts.java337 short[] array, int minLength, int padding) { in ensureCapacity() argument
338 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
340 return (array.length < minLength) in ensureCapacity()
341 ? copyOf(array, minLength + padding) in ensureCapacity()
401 int minLength = Math.min(left.length, right.length); in compare() local
402 for (int i = 0; i < minLength; i++) { in compare()
DInts.java339 int[] array, int minLength, int padding) { in ensureCapacity() argument
340 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
342 return (array.length < minLength) in ensureCapacity()
343 ? copyOf(array, minLength + padding) in ensureCapacity()
402 int minLength = Math.min(left.length, right.length); in compare() local
403 for (int i = 0; i < minLength; i++) { in compare()
/external/libgdx/gdx/src/com/badlogic/gdx/utils/
DStringBuilder.java741 public StringBuilder append (int value, int minLength) { in append() argument
742 return append(value, minLength, '0'); in append()
753 public StringBuilder append (int value, final int minLength, final char prefix) { in append() argument
762 if (minLength > 1) { in append()
763 for (int j = minLength - numChars(value, 10); j > 0; --j) in append()
796 public StringBuilder append (long value, int minLength) { in append() argument
797 return append(value, minLength, '0'); in append()
807 public StringBuilder append (long value, int minLength, char prefix) { in append() argument
816 if (minLength > 1) { in append()
817 for (int j = minLength - numChars(value, 10); j > 0; --j) in append()

12