Home
last modified time | relevance | path

Searched refs:maxDigits (Results 1 – 25 of 33) sorted by relevance

12

/third_party/decimal.js/test/modules/
Drandom.js4 var i, sd, maxDigits;
10 maxDigits = 100;
13 sd = Math.random() * maxDigits + 1 | 0;
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DVersionInfo.java653 public String getVersionString(int minDigits, int maxDigits) { in getVersionString() argument
654 if (minDigits < 1 || maxDigits < 1 in getVersionString()
655 || minDigits > 4 || maxDigits > 4 || minDigits > maxDigits) { in getVersionString()
665 int numDigits = maxDigits; in getVersionString()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DVersionInfo.java638 public String getVersionString(int minDigits, int maxDigits) { in getVersionString() argument
639 if (minDigits < 1 || maxDigits < 1 in getVersionString()
640 || minDigits > 4 || maxDigits > 4 || minDigits > maxDigits) { in getVersionString()
650 int numDigits = maxDigits; in getVersionString()
/third_party/skia/third_party/externals/icu/source/i18n/
Dnumber_utils.cpp163 void DecNum::_setTo(const char* str, int32_t maxDigits, UErrorCode& status) { in _setTo() argument
164 if (maxDigits > kDefaultDigits) { in _setTo()
165 fData.resize(maxDigits, 0); in _setTo()
166 fContext.digits = maxDigits; in _setTo()
Dunesctrn.cpp191 int32_t maxDigits = spec[ipat++]; in handleTransliterate() local
237 if (++digitCount == maxDigits) { in handleTransliterate()
Dnumber_decnum.h77 void _setTo(const char* str, int32_t maxDigits, UErrorCode& status);
Dtzfmt.cpp1900 uint8_t maxDigits = forceSingleHourDigit ? 1 : 2; in parseOffsetFieldsWithPattern() local
1901 … offsetH = parseOffsetFieldWithLocalizedDigits(text, idx, 1, maxDigits, 0, MAX_OFFSET_HOUR, len); in parseOffsetFieldsWithPattern()
2106 …ts(const UnicodeString& text, int32_t start, uint8_t minDigits, uint8_t maxDigits, uint16_t minVal… in parseOffsetFieldWithLocalizedDigits() argument
2114 while (idx < text.length() && numDigits < maxDigits) { in parseOffsetFieldWithLocalizedDigits()
2214 int32_t maxDigits = 2 * (maxFields + 1); in parseAbuttingAsciiOffsetFields() local
2216 U_ASSERT(maxDigits <= MAX_OFFSET_DIGITS); in parseAbuttingAsciiOffsetFields()
2221 while (numDigits < maxDigits && idx < text.length()) { in parseAbuttingAsciiOffsetFields()
/third_party/icu/icu4c/source/i18n/
Dnumber_utils.cpp163 void DecNum::_setTo(const char* str, int32_t maxDigits, UErrorCode& status) { in _setTo() argument
164 if (maxDigits > kDefaultDigits) { in _setTo()
165 fData.resize(maxDigits, 0); in _setTo()
166 fContext.digits = maxDigits; in _setTo()
Dunesctrn.cpp191 int32_t maxDigits = spec[ipat++]; in handleTransliterate() local
237 if (++digitCount == maxDigits) { in handleTransliterate()
Dnumber_decnum.h84 void _setTo(const char* str, int32_t maxDigits, UErrorCode& status);
Dtzfmt.cpp1900 uint8_t maxDigits = forceSingleHourDigit ? 1 : 2; in parseOffsetFieldsWithPattern() local
1901 … offsetH = parseOffsetFieldWithLocalizedDigits(text, idx, 1, maxDigits, 0, MAX_OFFSET_HOUR, len); in parseOffsetFieldsWithPattern()
2106 …ts(const UnicodeString& text, int32_t start, uint8_t minDigits, uint8_t maxDigits, uint16_t minVal… in parseOffsetFieldWithLocalizedDigits() argument
2114 while (idx < text.length() && numDigits < maxDigits) { in parseOffsetFieldWithLocalizedDigits()
2214 int32_t maxDigits = 2 * (maxFields + 1); in parseAbuttingAsciiOffsetFields() local
2216 U_ASSERT(maxDigits <= MAX_OFFSET_DIGITS); in parseAbuttingAsciiOffsetFields()
2221 while (numDigits < maxDigits && idx < text.length()) { in parseAbuttingAsciiOffsetFields()
Dsmpdtfmt.cpp2187 int32_t value, int32_t minDigits, int32_t maxDigits) const in zeroPaddingNumber()
2193 if (maxDigits == 10) { in zeroPaddingNumber()
2203 } else if (maxDigits == 2) { in zeroPaddingNumber()
2235 nf->setMaximumIntegerDigits(maxDigits); in zeroPaddingNumber()
3958 int32_t maxDigits, in parseInt() argument
3977 if (maxDigits > 0) { in parseInt()
3981 if (nDigits > maxDigits) { in parseInt()
3983 nDigits -= maxDigits; in parseInt()
3988 pos.setIndex(oldPos + maxDigits); in parseInt()
/third_party/node/deps/icu-small/source/i18n/
Dnumber_utils.cpp163 void DecNum::_setTo(const char* str, int32_t maxDigits, UErrorCode& status) { in _setTo() argument
164 if (maxDigits > kDefaultDigits) { in _setTo()
165 fData.resize(maxDigits, 0); in _setTo()
166 fContext.digits = maxDigits; in _setTo()
Dunesctrn.cpp191 int32_t maxDigits = spec[ipat++]; in handleTransliterate() local
237 if (++digitCount == maxDigits) { in handleTransliterate()
Dnumber_decnum.h84 void _setTo(const char* str, int32_t maxDigits, UErrorCode& status);
Dtzfmt.cpp1900 uint8_t maxDigits = forceSingleHourDigit ? 1 : 2; in parseOffsetFieldsWithPattern() local
1901 … offsetH = parseOffsetFieldWithLocalizedDigits(text, idx, 1, maxDigits, 0, MAX_OFFSET_HOUR, len); in parseOffsetFieldsWithPattern()
2106 …ts(const UnicodeString& text, int32_t start, uint8_t minDigits, uint8_t maxDigits, uint16_t minVal… in parseOffsetFieldWithLocalizedDigits() argument
2114 while (idx < text.length() && numDigits < maxDigits) { in parseOffsetFieldWithLocalizedDigits()
2214 int32_t maxDigits = 2 * (maxFields + 1); in parseAbuttingAsciiOffsetFields() local
2216 U_ASSERT(maxDigits <= MAX_OFFSET_DIGITS); in parseAbuttingAsciiOffsetFields()
2221 while (numDigits < maxDigits && idx < text.length()) { in parseAbuttingAsciiOffsetFields()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DUnescapeTransliterator.java167 int maxDigits = spec[ipat++]; in handleTransliterate() local
213 if (++digitCount == maxDigits) { in handleTransliterate()
DSimpleDateFormat.java2235 int minDigits, int maxDigits) { in zeroPaddingNumber() argument
2240 fastZeroPaddingNumber(buf, value, minDigits, maxDigits); in zeroPaddingNumber()
2243 nf.setMaximumIntegerDigits(maxDigits); in zeroPaddingNumber()
2314 private void fastZeroPaddingNumber(StringBuffer buf, int value, int minDigits, int maxDigits) { in fastZeroPaddingNumber() argument
2315 int limit = decimalBuf.length < maxDigits ? decimalBuf.length : maxDigits; in fastZeroPaddingNumber()
2342 protected String zeroPaddingNumber(long value, int minDigits, int maxDigits) in zeroPaddingNumber() argument
2345 numberFormat.setMaximumIntegerDigits(maxDigits); in zeroPaddingNumber()
3783 int maxDigits, in parseInt() argument
3809 if (maxDigits > 0) { in parseInt()
3813 if (nDigits > maxDigits) { in parseInt()
[all …]
DTimeZoneFormat.java2360 int maxDigits = forceSingleHourDigit ? 1 : 2;
2361 …offsetH = parseOffsetFieldWithLocalizedDigits(text, idx, 1, maxDigits, 0, MAX_OFFSET_HOUR, tmpPars…
2594 …ivate int parseOffsetFieldWithLocalizedDigits(String text, int start, int minDigits, int maxDigits,
2603 while (idx < text.length() && numDigits < maxDigits) {
2771 int maxDigits = 2 * (maxFields.ordinal() + 1);
2773 int[] digits = new int[maxDigits];
/third_party/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DUnescapeTransliterator.java166 int maxDigits = spec[ipat++]; in handleTransliterate() local
212 if (++digitCount == maxDigits) { in handleTransliterate()
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dsmpdtfmt.h1299 int32_t maxDigits) const;
1436 int32_t maxDigits,
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DSimpleDateFormat.java2247 int minDigits, int maxDigits) { in zeroPaddingNumber() argument
2252 fastZeroPaddingNumber(buf, value, minDigits, maxDigits); in zeroPaddingNumber()
2255 nf.setMaximumIntegerDigits(maxDigits); in zeroPaddingNumber()
2328 private void fastZeroPaddingNumber(StringBuffer buf, int value, int minDigits, int maxDigits) { in fastZeroPaddingNumber() argument
2329 int limit = decimalBuf.length < maxDigits ? decimalBuf.length : maxDigits; in fastZeroPaddingNumber()
2357 protected String zeroPaddingNumber(long value, int minDigits, int maxDigits) in zeroPaddingNumber() argument
2360 numberFormat.setMaximumIntegerDigits(maxDigits); in zeroPaddingNumber()
3906 int maxDigits, in parseInt() argument
3932 if (maxDigits > 0) { in parseInt()
3936 if (nDigits > maxDigits) { in parseInt()
[all …]
DTimeZoneFormat.java2430 int maxDigits = forceSingleHourDigit ? 1 : 2;
2431 …offsetH = parseOffsetFieldWithLocalizedDigits(text, idx, 1, maxDigits, 0, MAX_OFFSET_HOUR, tmpPars…
2664 …ivate int parseOffsetFieldWithLocalizedDigits(String text, int start, int minDigits, int maxDigits,
2673 while (idx < text.length() && numDigits < maxDigits) {
2841 int maxDigits = 2 * (maxFields.ordinal() + 1);
2843 int[] digits = new int[maxDigits];
/third_party/icu/icu4c/source/i18n/unicode/
Dsmpdtfmt.h1299 int32_t maxDigits) const;
1452 int32_t maxDigits,
/third_party/node/deps/icu-small/source/i18n/unicode/
Dsmpdtfmt.h1300 int32_t maxDigits) const;
1453 int32_t maxDigits,

12