Home
last modified time | relevance | path

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

12

/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()
437 private boolean allocWeightsInShortRanges(int n, int minLength) { in allocWeightsInShortRanges() argument
439 for(int i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges()
442 if(ranges[i].length > minLength) { in allocWeightsInShortRanges()
462 private boolean allocWeightsInMinLengthRanges(int n, int minLength) { in allocWeightsInMinLengthRanges() argument
469 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges()
[all …]
/external/guava/guava/src/com/google/common/base/
DStrings.java97 public static String padStart(String string, int minLength, char padChar) { in padStart() argument
99 if (string.length() >= minLength) { in padStart()
102 StringBuilder sb = new StringBuilder(minLength); in padStart()
103 for (int i = string.length(); i < minLength; i++) { in padStart()
129 public static String padEnd(String string, int minLength, char padChar) { in padEnd() argument
131 if (string.length() >= minLength) { in padEnd()
134 StringBuilder sb = new StringBuilder(minLength); in padEnd()
136 for (int i = string.length(); i < minLength; i++) { in padEnd()
/external/icu/icu4c/source/i18n/
Dcollationweights.cpp365 CollationWeights::allocWeightsInShortRanges(int32_t n, int32_t minLength) { in allocWeightsInShortRanges() argument
367 for(int32_t i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges()
370 if(ranges[i].length > minLength) { in allocWeightsInShortRanges()
396 CollationWeights::allocWeightsInMinLengthRanges(int32_t n, int32_t minLength) { in allocWeightsInMinLengthRanges() argument
403 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges()
408 int32_t nextCountBytes = countBytes(minLength + 1); in allocWeightsInMinLengthRanges()
451 ranges[0].end = incWeightByOffset(start, minLength, count1 - 1); in allocWeightsInMinLengthRanges()
454 ranges[1].start = incWeight(ranges[0].end, minLength); in allocWeightsInMinLengthRanges()
456 ranges[1].length = minLength; // +1 when lengthened in allocWeightsInMinLengthRanges()
485 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 …]
Dunistr.cpp575 int32_t minLength; in doCompare() local
586 minLength = length; in doCompare()
589 minLength = srcLength; in doCompare()
593 minLength = length; in doCompare()
605 if(minLength > 0 && chars != srcChars) { in doCompare()
610 result = uprv_memcmp(chars, srcChars, minLength * sizeof(UChar)); in doCompare()
621 } while(--minLength > 0); in doCompare()
1676 int32_t minLength = oldLength; in cloneArrayIfNeeded() local
1678 if(newCapacity < minLength) { in cloneArrayIfNeeded()
1679 minLength = newCapacity; in cloneArrayIfNeeded()
[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()
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()
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()
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()
DUnsignedBytes.java292 int minLength = Math.min(left.length, right.length); in compare() local
293 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()
/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()
DInts.java337 int[] 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()
400 int minLength = Math.min(left.length, right.length); in compare() local
401 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()
/external/skia/tests/
DDeflateWStream.cpp60 uint32_t minLength = SkTMin(size, in DEF_TEST() local
62 for (uint32_t i = 0; i < minLength; ++i) { in DEF_TEST()

12