Home
last modified time | relevance | path

Searched refs:maxdigits (Results 1 - 12 of 12) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_int.py626 maxdigits = sys.get_int_max_str_digits()
628 int_class('1' * maxdigits)
629 int_class(' ' + '1' * maxdigits)
630 int_class('1' * maxdigits + ' ')
631 int_class('+' + '1' * maxdigits)
632 int_class('-' + '1' * maxdigits)
633 self.assertEqual(len(str(10 ** (maxdigits - 1))), maxdigits)
643 maxdigits = sys.get_int_max_str_digits()
645 self.check('1' * (maxdigits
[all...]
H A Dtest_xmlrpc.py294 maxdigits = 5000
295 with support.adjust_int_max_str_digits(maxdigits):
296 s = '1' * (maxdigits + 1)
/third_party/python/Lib/test/test_json/
H A Dtest_decode.py100 maxdigits = 5000
101 with support.adjust_int_max_str_digits(maxdigits):
102 self.loads('1' * maxdigits)
104 self.loads('1' * (maxdigits + 1))
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/
H A DPeriodFormatterData.java413 public void appendInteger(int num, int mindigits, int maxdigits, in appendInteger() argument
427 case ENumberSystem.DEFAULT: appendDigits(num, mindigits, maxdigits, sb); break; in appendInteger()
445 * @param maxdigits the maximum number of digits to append
448 public void appendDigits(long num, int mindigits, int maxdigits, in appendDigits() argument
450 char[] buf = new char[maxdigits]; in appendDigits()
451 int ix = maxdigits; in appendDigits()
456 for (int e = maxdigits - mindigits; ix > e;) { in appendDigits()
459 sb.append(buf, ix, maxdigits - ix); in appendDigits()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/impl/
H A DPeriodFormatterData.java415 public void appendInteger(int num, int mindigits, int maxdigits, in appendInteger() argument
429 case ENumberSystem.DEFAULT: appendDigits(num, mindigits, maxdigits, sb); break; in appendInteger()
447 * @param maxdigits the maximum number of digits to append
450 public void appendDigits(long num, int mindigits, int maxdigits, in appendDigits() argument
452 char[] buf = new char[maxdigits]; in appendDigits()
453 int ix = maxdigits; in appendDigits()
458 for (int e = maxdigits - mindigits; ix > e;) { in appendDigits()
461 sb.append(buf, ix, maxdigits - ix); in appendDigits()
/third_party/python/Python/clinic/
H A Dsysmodule.c.h691 "set_int_max_str_digits($module, /, maxdigits)\n"
700 sys_set_int_max_str_digits_impl(PyObject *module, int maxdigits);
706 static const char * const _keywords[] = {"maxdigits", NULL}; in sys_set_int_max_str_digits()
709 int maxdigits; in sys_set_int_max_str_digits() local
715 maxdigits = _PyLong_AsInt(args[0]); in sys_set_int_max_str_digits()
716 if (maxdigits == -1 && PyErr_Occurred()) { in sys_set_int_max_str_digits()
719 return_value = sys_set_int_max_str_digits_impl(module, maxdigits); in sys_set_int_max_str_digits()
/third_party/python/Python/
H A Dinitconfig.c1738 int maxdigits; in config_init_int_max_str_digits() local
1743 if (!_Py_str_to_int(env, &maxdigits)) { in config_init_int_max_str_digits()
1744 valid = ((maxdigits == 0) || (maxdigits >= _PY_LONG_MAX_STR_DIGITS_THRESHOLD)); in config_init_int_max_str_digits()
1754 _Py_global_config_int_max_str_digits = maxdigits; in config_init_int_max_str_digits()
1762 if (!config_wstr_to_int(sep + 1, &maxdigits)) { in config_init_int_max_str_digits()
1763 valid = ((maxdigits == 0) || (maxdigits >= _PY_LONG_MAX_STR_DIGITS_THRESHOLD)); in config_init_int_max_str_digits()
1774 _Py_global_config_int_max_str_digits = maxdigits; in config_init_int_max_str_digits()
H A Dsysmodule.c1640 maxdigits: int
1646 sys_set_int_max_str_digits_impl(PyObject *module, int maxdigits) in sys_set_int_max_str_digits_impl() argument
1650 if ((!maxdigits) || (maxdigits >= _PY_LONG_MAX_STR_DIGITS_THRESHOLD)) { in sys_set_int_max_str_digits_impl()
1651 tstate->interp->int_max_str_digits = maxdigits; in sys_set_int_max_str_digits_impl()
1655 PyExc_ValueError, "maxdigits must be 0 or larger than %d", in sys_set_int_max_str_digits_impl()
/third_party/icu/icu4c/source/i18n/
H A DdecNumber.cpp3844 Int maxdigits; /* longest logical length */ in decAddOp() local
4060 maxdigits=rhs->digits+padding; /* virtual length of RHS */ in decAddOp()
4061 if (lhs->digits>maxdigits) maxdigits=lhs->digits; in decAddOp()
4068 /* [Might be worth more sophisticated tests when maxdigits==reqdigits] */ in decAddOp()
4069 if ((maxdigits>=reqdigits) /* is, or could be, too large */ in decAddOp()
4071 /* buffer needed, choose it; units for maxdigits digits will be */ in decAddOp()
4073 Int need=D2U(maxdigits)+1; in decAddOp()
4130 if (res->digits<maxdigits) { in decAddOp()
4132 res->digits=maxdigits; in decAddOp()
4280 Int maxdigits; /* longest LHS or required acc length */ decDivideOp() local
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A DdecNumber.cpp3844 Int maxdigits; /* longest logical length */ in decAddOp() local
4060 maxdigits=rhs->digits+padding; /* virtual length of RHS */ in decAddOp()
4061 if (lhs->digits>maxdigits) maxdigits=lhs->digits; in decAddOp()
4068 /* [Might be worth more sophisticated tests when maxdigits==reqdigits] */ in decAddOp()
4069 if ((maxdigits>=reqdigits) /* is, or could be, too large */ in decAddOp()
4071 /* buffer needed, choose it; units for maxdigits digits will be */ in decAddOp()
4073 Int need=D2U(maxdigits)+1; in decAddOp()
4130 if (res->digits<maxdigits) { in decAddOp()
4132 res->digits=maxdigits; in decAddOp()
4280 Int maxdigits; /* longest LHS or required acc length */ decDivideOp() local
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/
H A DdecNumber.cpp3844 Int maxdigits; /* longest logical length */ in decAddOp() local
4060 maxdigits=rhs->digits+padding; /* virtual length of RHS */ in decAddOp()
4061 if (lhs->digits>maxdigits) maxdigits=lhs->digits; in decAddOp()
4068 /* [Might be worth more sophisticated tests when maxdigits==reqdigits] */ in decAddOp()
4069 if ((maxdigits>=reqdigits) /* is, or could be, too large */ in decAddOp()
4071 /* buffer needed, choose it; units for maxdigits digits will be */ in decAddOp()
4073 Int need=D2U(maxdigits)+1; in decAddOp()
4130 if (res->digits<maxdigits) { in decAddOp()
4132 res->digits=maxdigits; in decAddOp()
4280 Int maxdigits; /* longest LHS or required acc length */ decDivideOp() local
[all...]
/third_party/skia/third_party/externals/sfntly/java/lib/
H A Dicu4j-4_8_1_1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/ibm/ com/ibm/icu/ com/ibm/icu/impl/ ...

Completed in 42 milliseconds