/third_party/python/Lib/json/ |
D | __init__.py | 274 def load(fp, *, cls=None, object_hook=None, parse_float=None, argument 295 parse_float=parse_float, parse_int=parse_int, 299 def loads(s, *, cls=None, object_hook=None, parse_float=None, argument 344 parse_int is None and parse_float is None and 353 if parse_float is not None: 354 kw['parse_float'] = parse_float
|
D | scanner.py | 21 parse_float = context.parse_float 52 res = parse_float(integer + (frac or '') + (exp or ''))
|
D | decoder.py | 284 def __init__(self, *, object_hook=None, parse_float=None, argument 320 self.parse_float = parse_float or float
|
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-random/ |
D | _common.rs | 123 pub fn parse_float<'a, F>(bytes: &'a [u8]) -> (F, &'a [u8]) in parse_float() function 152 minimal_lexical::parse_float(integer_slc.iter(), fraction_slc.iter(), exponent); in parse_float() 166 let x: f64 = parse_float(text.as_bytes()).0; in validate() 168 let x: f32 = parse_float(text.as_bytes()).0; in validate()
|
D | long-fractions.rs | 13 use self::_common::{parse_float, validate}; 22 if parse_float::<f64>(s.as_bytes()).1.len() == 0 { in main()
|
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-golang/ |
D | main.rs | 116 fn parse_float<'a, F>(bytes: &'a [u8]) -> (F, &'a [u8]) in parse_float() function 145 minimal_lexical::parse_float(integer_slc.iter(), fraction_slc.iter(), exponent); in parse_float() 194 let float32: f32 = parse_float(string.as_bytes()).0; in run_test() 195 let float64: f64 = parse_float(string.as_bytes()).0; in run_test()
|
/third_party/rust/crates/minimal-lexical/tests/ |
D | integration_tests.rs | 130 pub fn parse_float<'a, F>(bytes: &'a [u8]) -> (F, &'a [u8]) in parse_float() function 200 minimal_lexical::parse_float(integer_slc.iter(), fraction_slc.iter(), exponent); in parse_float() 218 parse_float::<f32>(b"000184467440737095516150\x00\x00006") in f32_test() 226 parse_float::<f64>(b"000184467440737095516150\x00\x00006") in f64_test()
|
D | parse_tests.rs | 7 assert!(expected == parse::parse_float::<F, _, _>(integer, fraction, exponent)); in check_parse_float()
|
/third_party/rust/crates/minimal-lexical/etc/correctness/rng-tests/ |
D | f32.rs | 5 use self::_common::parse_float; 16 let (output, rest) = parse_float::<f32>(printed.as_bytes()); in main()
|
D | smoke.rs | 13 use self::_common::parse_float; 22 let (output, rest) = parse_float::<f64>(printed.as_bytes()); in main()
|
D | _common.rs | 109 pub fn parse_float<'a, F>(bytes: &'a [u8]) -> (F, &'a [u8]) in parse_float() function 138 minimal_lexical::parse_float(integer_slc.iter(), fraction_slc.iter(), exponent); in parse_float()
|
/third_party/rust/crates/minimal-lexical/examples/ |
D | simple.rs | 151 fn parse_float<'a, F>(bytes: &'a [u8]) -> (F, &'a [u8]) in parse_float() function 198 minimal_lexical::parse_float(integer_slc.iter(), fraction_slc.iter(), exponent); in parse_float() 208 |s: &str, v, t: &str| assert_eq!(parse_float(s.as_bytes()), (v, t.as_bytes())); in main()
|
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-unittests/ |
D | main.rs | 123 fn parse_float<'a, F>(bytes: &'a [u8]) -> (F, &'a [u8]) in parse_float() function 152 minimal_lexical::parse_float(integer_slc.iter(), fraction_slc.iter(), exponent); in parse_float() 211 let float: f64 = parse_float(string.as_bytes()).0; in run_test()
|
/third_party/rust/crates/minimal-lexical/fuzz/fuzz_targets/ |
D | parse.rs | 130 pub fn parse_float<'a, F>(bytes: &'a [u8]) -> (F, &'a [u8]) in parse_float() function 200 minimal_lexical::parse_float(integer_slc.iter(), fraction_slc.iter(), exponent); in parse_float()
|
D | parse-float-f32.rs | 9 let _ = parse::parse_float::<f32>(data);
|
D | parse-float-f64.rs | 9 let _ = parse::parse_float::<f64>(data);
|
/third_party/rust/crates/minimal-lexical/src/ |
D | lib.rs | 68 pub use self::parse::parse_float;
|
D | parse.rs | 146 pub fn parse_float<'a, F, Iter1, Iter2>(integer: Iter1, fraction: Iter2, exponent: i32) -> F in parse_float() function
|
/third_party/rust/crates/minimal-lexical/.github/ISSUE_TEMPLATE/ |
D | documentation.md | 13 Ex: Documentation for `parse_float` contains a typo.
|
D | bug_report.md | 35 let float: f64 = minimal_lexical::parse_float(integer.iter(), fraction.iter(), 0);
|
/third_party/python/Modules/ |
D | _json.c | 34 PyObject *parse_float; member 44 {"parse_float", T_OBJECT, offsetof(PyScannerObject, parse_float), READONLY, "parse_float"}, 656 Py_VISIT(self->parse_float); in scanner_traverse() 668 Py_CLEAR(self->parse_float); in scanner_clear() 985 if (is_float && s->parse_float != (PyObject *)&PyFloat_Type) in _match_number_unicode() 986 custom_func = s->parse_float; in _match_number_unicode() 1197 s->parse_float = PyObject_GetAttrString(ctx, "parse_float"); in scanner_new() 1198 if (s->parse_float == NULL) in scanner_new()
|
/third_party/rust/crates/minimal-lexical/.github/PULL_REQUEST_TEMPLATE/ |
D | documentation.md | 18 Ex: Updated outdated doc comments in `parse_float`.
|
/third_party/python/Lib/test/test_json/ |
D | test_decode.py | 10 rval = self.loads('1.1', parse_float=decimal.Decimal)
|
/third_party/python/Doc/library/ |
D | json.rst | 87 >>> json.loads('1.1', parse_float=decimal.Decimal) 232 .. function:: load(fp, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_const… 253 *parse_float*, if specified, will be called with the string of every JSON 291 .. function:: loads(s, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_const… 313 .. class:: JSONDecoder(*, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, … 358 *parse_float*, if specified, will be called with the string of every JSON
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | hb-common.cc | 825 parse_float (const char **pp, const char *end, float *pv) in parse_float() function 1099 return parse_float (pp, end, &variation->value); in parse_variation_value()
|