Home
last modified time | relevance | path

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

123

/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/model/
DFormatSpec.java132 int minLength = national.minLength(); in of() local
135 national, carrier, intl, local, minLength, maxLength, nationalPrefixOptional, comment); in of()
150 local.minLength(), in localFormat()
172 public abstract int minLength(); in minLength() method in FormatSpec
194 return RangeTree.from(IntStream.rangeClosed(minLength(), maxLength()) in getLengthBasedBounds()
204 out.append(", minLength=").append(minLength()); in toString()
262 checkArgument(local.minLength() < national.minLength(), in parseLocalSpec()
428 public int minLength() {
429 return getLength(this, FormatGroup::minLength);
449 return (getGroups().size() == 1) ? maxLength() : getGroups().get(0).minLength();
[all …]
/third_party/node/deps/npm/node_modules/gauge/lib/
Dtemplate-item.js24 this.minLength = null
43 if (isPercent(this.minLength)) {
44 this.minLength = Math.round(this.overallOutputLength * percent(this.minLength))
60 this.minLength == null
83 if (this.minLength == null) {
86 return this.minLength + this.padLeft + this.padRight
Drender-template.js47 item.minLength = null
112 item.minLength = null
177 if (!item.minLength) {
181 finishSizing(item, item.minLength)
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/
DPrefixTree.java87 public static PrefixTree minimal(RangeTree include, RangeTree exclude, int minLength) { in minimal() argument
89 checkArgument(minLength >= 0, "invalid minimum prefix length: %s", minLength); in minimal()
105 minimal = emit(root, RangeSpecification.empty(), RangeTree.empty(), minLength); in minimal()
108 root, RangeSpecification.empty(), exclude.getInitial(), RangeTree.empty(), minLength); in minimal()
301 DfaNode node, RangeSpecification path, DfaNode exclude, RangeTree minimal, int minLength) { in recursivelyMinimize() argument
322 recursivelyMinimize(target, path.extendByMask(m), ex.getTarget(), minimal, minLength); in recursivelyMinimize()
329 minimal = emit(target, path.extendByMask(mask), minimal, minLength); in recursivelyMinimize()
340 DfaNode node, RangeSpecification path, RangeTree minimal, int minLength) { in emit() argument
341 if (path.length() >= minLength || node.equals(RangeTree.getTerminal())) { in emit()
346 emit(e.getTarget(), path.extendByMask(e.getDigitMask()), minimal, minLength)); in emit()
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/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; i < rangeCount && 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 …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/
DCollationWeights.java101 int minLength=ranges[0].length; in allocWeights() local
103 if(allocWeightsInShortRanges(n, minLength)) { break; } in allocWeights()
105 if(minLength == 4) { in allocWeights()
111 if(allocWeightsInMinLengthRanges(n, minLength)) { break; } in allocWeights()
115 for (int i = 0; i < rangeCount && ranges[i].length == minLength; ++i) { in allocWeights()
461 private boolean allocWeightsInShortRanges(int n, int minLength) { in allocWeightsInShortRanges() argument
463 for(int i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges()
466 if(ranges[i].length > minLength) { in allocWeightsInShortRanges()
486 private boolean allocWeightsInMinLengthRanges(int n, int minLength) { in allocWeightsInMinLengthRanges() argument
493 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges()
[all …]
/third_party/icu/icu4c/source/test/perf/normperf/
Dsimplenormperf.cpp27 static UnicodeString getMixed(int32_t minLength) { in getMixed() argument
28 return extend(UnicodeString(latin1).append(japanese).append(arabic), minLength); in getMixed()
30 static UnicodeString getLatin1(int32_t minLength) { return extend(latin1, minLength); } in getLatin1() argument
31 …static UnicodeString getLowercaseLatin1(int32_t minLength) { return extend(lowercaseLatin1, minLen… in getLowercaseLatin1() argument
32 static UnicodeString getASCII(int32_t minLength) { return extend(ascii, minLength); } in getASCII() argument
33 static UnicodeString getJapanese(int32_t minLength) { return extend(japanese, minLength); } in getJapanese() argument
55 static UnicodeString extend(const UnicodeString &s, int32_t minLength) { in extend() argument
57 while (result.length() < minLength) { in extend()
/third_party/icu/icu4c/source/i18n/
Dcollationweights.cpp392 CollationWeights::allocWeightsInShortRanges(int32_t n, int32_t minLength) { in allocWeightsInShortRanges() argument
394 for(int32_t i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges()
397 if(ranges[i].length > minLength) { in allocWeightsInShortRanges()
423 CollationWeights::allocWeightsInMinLengthRanges(int32_t n, int32_t minLength) { in allocWeightsInMinLengthRanges() argument
430 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges()
435 int32_t nextCountBytes = countBytes(minLength + 1); in allocWeightsInMinLengthRanges()
478 ranges[0].end = incWeightByOffset(start, minLength, count1 - 1); in allocWeightsInMinLengthRanges()
481 ranges[1].start = incWeight(ranges[0].end, minLength); in allocWeightsInMinLengthRanges()
483 ranges[1].length = minLength; // +1 when lengthened in allocWeightsInMinLengthRanges()
512 int32_t minLength=ranges[0].length; in allocWeights() local
[all …]
Dsortkey.cpp195 int32_t minLength = getLength(); in compareTo() local
197 if (minLength < targetLength) { in compareTo()
199 } else if (minLength == targetLength) { in compareTo()
202 minLength = targetLength; in compareTo()
206 if (minLength > 0) { in compareTo()
207 int diff = uprv_memcmp(src, tgt, minLength); in compareTo()
Dcollationweights.h99 UBool allocWeightsInShortRanges(int32_t n, int32_t minLength);
100 UBool allocWeightsInMinLengthRanges(int32_t n, int32_t minLength);
/third_party/node/deps/icu-small/source/i18n/
Dcollationweights.cpp392 CollationWeights::allocWeightsInShortRanges(int32_t n, int32_t minLength) { in allocWeightsInShortRanges() argument
394 for(int32_t i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges()
397 if(ranges[i].length > minLength) { in allocWeightsInShortRanges()
423 CollationWeights::allocWeightsInMinLengthRanges(int32_t n, int32_t minLength) { in allocWeightsInMinLengthRanges() argument
430 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges()
435 int32_t nextCountBytes = countBytes(minLength + 1); in allocWeightsInMinLengthRanges()
478 ranges[0].end = incWeightByOffset(start, minLength, count1 - 1); in allocWeightsInMinLengthRanges()
481 ranges[1].start = incWeight(ranges[0].end, minLength); in allocWeightsInMinLengthRanges()
483 ranges[1].length = minLength; // +1 when lengthened in allocWeightsInMinLengthRanges()
512 int32_t minLength=ranges[0].length; in allocWeights() local
[all …]
Dsortkey.cpp195 int32_t minLength = getLength(); in compareTo() local
197 if (minLength < targetLength) { in compareTo()
199 } else if (minLength == targetLength) { in compareTo()
202 minLength = targetLength; in compareTo()
206 if (minLength > 0) { in compareTo()
207 int diff = uprv_memcmp(src, tgt, minLength); in compareTo()
Dcollationweights.h99 UBool allocWeightsInShortRanges(int32_t n, int32_t minLength);
100 UBool allocWeightsInMinLengthRanges(int32_t n, int32_t minLength);
/third_party/skia/third_party/externals/icu/source/i18n/
Dcollationweights.cpp392 CollationWeights::allocWeightsInShortRanges(int32_t n, int32_t minLength) { in allocWeightsInShortRanges() argument
394 for(int32_t i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges()
397 if(ranges[i].length > minLength) { in allocWeightsInShortRanges()
423 CollationWeights::allocWeightsInMinLengthRanges(int32_t n, int32_t minLength) { in allocWeightsInMinLengthRanges() argument
430 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges()
435 int32_t nextCountBytes = countBytes(minLength + 1); in allocWeightsInMinLengthRanges()
478 ranges[0].end = incWeightByOffset(start, minLength, count1 - 1); in allocWeightsInMinLengthRanges()
481 ranges[1].start = incWeight(ranges[0].end, minLength); in allocWeightsInMinLengthRanges()
483 ranges[1].length = minLength; // +1 when lengthened in allocWeightsInMinLengthRanges()
512 int32_t minLength=ranges[0].length; in allocWeights() local
[all …]
Dsortkey.cpp195 int32_t minLength = getLength(); in compareTo() local
197 if (minLength < targetLength) { in compareTo()
199 } else if (minLength == targetLength) { in compareTo()
202 minLength = targetLength; in compareTo()
206 if (minLength > 0) { in compareTo()
207 int diff = uprv_memcmp(src, tgt, minLength); in compareTo()
Dcollationweights.h99 UBool allocWeightsInShortRanges(int32_t n, int32_t minLength);
100 UBool allocWeightsInMinLengthRanges(int32_t n, int32_t minLength);
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/
DDataDisplayTable.java302 private static String padString(String s, Align alignment, int minLength) { in padString() argument
304 return padRight(s, minLength); in padString()
306 return padLeft(s, minLength); in padString()
322 private static String padLeft(String s, int minLength) { in padLeft() argument
323 return String.format("%1$" + minLength + "s", s); in padLeft()
336 private static String padRight(String s, int minLength) { in padRight() argument
337 return String.format("%1$-" + minLength + "s", s); in padRight()
/third_party/node/deps/icu-small/source/common/
Duinvchar.cpp462 int32_t minLength; in uprv_compareInvAscii() local
477 minLength= outLength<localLength ? outLength : localLength; in uprv_compareInvAscii()
479 while(minLength>0) { in uprv_compareInvAscii()
496 --minLength; in uprv_compareInvAscii()
508 int32_t minLength; in uprv_compareInvEbcdic() local
523 minLength= outLength<localLength ? outLength : localLength; in uprv_compareInvEbcdic()
525 while(minLength>0) { in uprv_compareInvEbcdic()
544 --minLength; in uprv_compareInvEbcdic()
Ducnv_ext.cpp953 extSetUseMapping(UConverterUnicodeSet which, int32_t minLength, uint32_t value) { in extSetUseMapping() argument
974 return UCNV_EXT_FROM_U_GET_LENGTH(value)>=minLength; in extSetUseMapping()
982 int32_t minLength, in ucnv_extGetUnicodeSetString() argument
1000 if(extSetUseMapping(which, minLength, value)) { in ucnv_extGetUnicodeSetString()
1019 sharedData, cx, sa, which, minLength, in ucnv_extGetUnicodeSetString()
1023 } else if(extSetUseMapping(which, minLength, value)) { in ucnv_extGetUnicodeSetString()
1040 int32_t st1, stage1Length, st2, st3, minLength; in ucnv_extGetUnicodeSet() local
1061 minLength=3; in ucnv_extGetUnicodeSet()
1066 minLength=2; in ucnv_extGetUnicodeSet()
1068 minLength=1; in ucnv_extGetUnicodeSet()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Duinvchar.cpp462 int32_t minLength; in uprv_compareInvAscii() local
477 minLength= outLength<localLength ? outLength : localLength; in uprv_compareInvAscii()
479 while(minLength>0) { in uprv_compareInvAscii()
496 --minLength; in uprv_compareInvAscii()
508 int32_t minLength; in uprv_compareInvEbcdic() local
523 minLength= outLength<localLength ? outLength : localLength; in uprv_compareInvEbcdic()
525 while(minLength>0) { in uprv_compareInvEbcdic()
544 --minLength; in uprv_compareInvEbcdic()
Ducnv_ext.cpp953 extSetUseMapping(UConverterUnicodeSet which, int32_t minLength, uint32_t value) { in extSetUseMapping() argument
974 return UCNV_EXT_FROM_U_GET_LENGTH(value)>=minLength; in extSetUseMapping()
982 int32_t minLength, in ucnv_extGetUnicodeSetString() argument
1000 if(extSetUseMapping(which, minLength, value)) { in ucnv_extGetUnicodeSetString()
1019 sharedData, cx, sa, which, minLength, in ucnv_extGetUnicodeSetString()
1023 } else if(extSetUseMapping(which, minLength, value)) { in ucnv_extGetUnicodeSetString()
1040 int32_t st1, stage1Length, st2, st3, minLength; in ucnv_extGetUnicodeSet() local
1061 minLength=3; in ucnv_extGetUnicodeSet()
1066 minLength=2; in ucnv_extGetUnicodeSet()
1068 minLength=1; in ucnv_extGetUnicodeSet()
[all …]
/third_party/icu/icu4c/source/common/
Duinvchar.cpp462 int32_t minLength; in uprv_compareInvAscii() local
477 minLength= outLength<localLength ? outLength : localLength; in uprv_compareInvAscii()
479 while(minLength>0) { in uprv_compareInvAscii()
496 --minLength; in uprv_compareInvAscii()
508 int32_t minLength; in uprv_compareInvEbcdic() local
523 minLength= outLength<localLength ? outLength : localLength; in uprv_compareInvEbcdic()
525 while(minLength>0) { in uprv_compareInvEbcdic()
544 --minLength; in uprv_compareInvEbcdic()
Ducnv_ext.cpp953 extSetUseMapping(UConverterUnicodeSet which, int32_t minLength, uint32_t value) { in extSetUseMapping() argument
974 return UCNV_EXT_FROM_U_GET_LENGTH(value)>=minLength; in extSetUseMapping()
982 int32_t minLength, in ucnv_extGetUnicodeSetString() argument
1000 if(extSetUseMapping(which, minLength, value)) { in ucnv_extGetUnicodeSetString()
1019 sharedData, cx, sa, which, minLength, in ucnv_extGetUnicodeSetString()
1023 } else if(extSetUseMapping(which, minLength, value)) { in ucnv_extGetUnicodeSetString()
1040 int32_t st1, stage1Length, st2, st3, minLength; in ucnv_extGetUnicodeSet() local
1061 minLength=3; in ucnv_extGetUnicodeSet()
1066 minLength=2; in ucnv_extGetUnicodeSet()
1068 minLength=1; in ucnv_extGetUnicodeSet()
[all …]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DRopeByteStringTest.java71 assertEquals(a, RopeByteString.minLength(i)); in testMinLength()
76 assertEquals(Integer.MAX_VALUE, RopeByteString.minLength(i)); in testMinLength()
77 assertEquals(Integer.MAX_VALUE, RopeByteString.minLength(i + 1)); in testMinLength()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DRopeByteString.java214 if (newLength >= minLength(newDepth)) { in concatenate()
262 static int minLength(int depth) { in minLength() method in RopeByteString
347 return totalLength >= minLength(treeDepth); in isBalanced()
675 int binEnd = minLength(depthBin + 1); in insert()
684 int binStart = minLength(depthBin); in insert()
699 binEnd = minLength(depthBin + 1); in insert()

123