/third_party/python/Lib/test/ |
D | test_int.py | 596 maxdigits = sys.get_int_max_str_digits() 598 int_class('1' * maxdigits) 599 int_class(' ' + '1' * maxdigits) 600 int_class('1' * maxdigits + ' ') 601 int_class('+' + '1' * maxdigits) 602 int_class('-' + '1' * maxdigits) 603 self.assertEqual(len(str(10 ** (maxdigits - 1))), maxdigits) 613 maxdigits = sys.get_int_max_str_digits() 615 self.check('1' * (maxdigits + 1)) 616 self.check(' ' + '1' * (maxdigits + 1)) [all …]
|
D | test_xmlrpc.py | 292 maxdigits = 5000 293 with support.adjust_int_max_str_digits(maxdigits): 294 s = '1' * (maxdigits + 1)
|
/third_party/python/Lib/test/test_json/ |
D | test_decode.py | 100 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/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/impl/ |
D | PeriodFormatterData.java | 415 public void appendInteger(int num, int mindigits, int maxdigits, in appendInteger() argument 429 case ENumberSystem.DEFAULT: appendDigits(num, mindigits, maxdigits, sb); break; in appendInteger() 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/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
D | PeriodFormatterData.java | 413 public void appendInteger(int num, int mindigits, int maxdigits, in appendInteger() argument 427 case ENumberSystem.DEFAULT: appendDigits(num, mindigits, maxdigits, sb); break; in appendInteger() 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/python/Python/clinic/ |
D | sysmodule.c.h | 678 sys_set_int_max_str_digits_impl(PyObject *module, int maxdigits); 687 int maxdigits; in sys_set_int_max_str_digits() local 693 maxdigits = _PyLong_AsInt(args[0]); in sys_set_int_max_str_digits() 694 if (maxdigits == -1 && PyErr_Occurred()) { in sys_set_int_max_str_digits() 697 return_value = sys_set_int_max_str_digits_impl(module, maxdigits); in sys_set_int_max_str_digits()
|
/third_party/python/Python/ |
D | initconfig.c | 1776 int maxdigits; in config_init_int_max_str_digits() local 1781 if (!_Py_str_to_int(env, &maxdigits)) { in config_init_int_max_str_digits() 1782 valid = ((maxdigits == 0) || (maxdigits >= _PY_LONG_MAX_STR_DIGITS_THRESHOLD)); in config_init_int_max_str_digits() 1792 _Py_global_config_int_max_str_digits = maxdigits; in config_init_int_max_str_digits() 1799 if (!config_wstr_to_int(sep + 1, &maxdigits)) { in config_init_int_max_str_digits() 1800 valid = ((maxdigits == 0) || (maxdigits >= _PY_LONG_MAX_STR_DIGITS_THRESHOLD)); in config_init_int_max_str_digits() 1811 _Py_global_config_int_max_str_digits = maxdigits; in config_init_int_max_str_digits()
|
D | sysmodule.c | 1680 sys_set_int_max_str_digits_impl(PyObject *module, int maxdigits) in sys_set_int_max_str_digits_impl() argument 1684 if ((!maxdigits) || (maxdigits >= _PY_LONG_MAX_STR_DIGITS_THRESHOLD)) { in sys_set_int_max_str_digits_impl() 1685 tstate->interp->int_max_str_digits = maxdigits; in sys_set_int_max_str_digits_impl()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | decNumber.cpp | 3844 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() 4069 if ((maxdigits>=reqdigits) /* is, or could be, too large */ in decAddOp() 4073 Int need=D2U(maxdigits)+1; in decAddOp() 4130 if (res->digits<maxdigits) { in decAddOp() 4132 res->digits=maxdigits; in decAddOp() 4140 if (res->digits<maxdigits) res->digits=maxdigits; in decAddOp() 4280 Int maxdigits; /* longest LHS or required acc length */ in decDivideOp() local 4460 maxdigits=rhs->digits+reqdigits-1; in decDivideOp() [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | decNumber.cpp | 3844 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() 4069 if ((maxdigits>=reqdigits) /* is, or could be, too large */ in decAddOp() 4073 Int need=D2U(maxdigits)+1; in decAddOp() 4130 if (res->digits<maxdigits) { in decAddOp() 4132 res->digits=maxdigits; in decAddOp() 4140 if (res->digits<maxdigits) res->digits=maxdigits; in decAddOp() 4280 Int maxdigits; /* longest LHS or required acc length */ in decDivideOp() local 4460 maxdigits=rhs->digits+reqdigits-1; in decDivideOp() [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | decNumber.cpp | 3844 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() 4069 if ((maxdigits>=reqdigits) /* is, or could be, too large */ in decAddOp() 4073 Int need=D2U(maxdigits)+1; in decAddOp() 4130 if (res->digits<maxdigits) { in decAddOp() 4132 res->digits=maxdigits; in decAddOp() 4140 if (res->digits<maxdigits) res->digits=maxdigits; in decAddOp() 4280 Int maxdigits; /* longest LHS or required acc length */ in decDivideOp() local 4460 maxdigits=rhs->digits+reqdigits-1; in decDivideOp() [all …]
|
/third_party/python/Doc/library/ |
D | decimal.rst | 2173 >>> maxdigits = 19 * ((500 * 1024**2) // 8) 2176 >>> c = Context(prec=maxdigits, Emax=MAX_EMAX, Emin=MIN_EMIN)
|