Home
last modified time | relevance | path

Searched refs:parse_float (Results 1 – 25 of 28) sorted by relevance

12

/third_party/python/Lib/json/
D__init__.py274 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
Dscanner.py21 parse_float = context.parse_float
52 res = parse_float(integer + (frac or '') + (exp or ''))
Ddecoder.py284 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.rs123 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()
Dlong-fractions.rs13 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/
Dmain.rs116 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/
Dintegration_tests.rs130 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()
Dparse_tests.rs7 assert!(expected == parse::parse_float::<F, _, _>(integer, fraction, exponent)); in check_parse_float()
/third_party/rust/crates/minimal-lexical/etc/correctness/rng-tests/
Df32.rs5 use self::_common::parse_float;
16 let (output, rest) = parse_float::<f32>(printed.as_bytes()); in main()
Dsmoke.rs13 use self::_common::parse_float;
22 let (output, rest) = parse_float::<f64>(printed.as_bytes()); in main()
D_common.rs109 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/
Dsimple.rs151 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/
Dmain.rs123 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/
Dparse.rs130 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()
Dparse-float-f32.rs9 let _ = parse::parse_float::<f32>(data);
Dparse-float-f64.rs9 let _ = parse::parse_float::<f64>(data);
/third_party/rust/crates/minimal-lexical/src/
Dlib.rs68 pub use self::parse::parse_float;
Dparse.rs146 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/
Ddocumentation.md13 Ex: Documentation for `parse_float` contains a typo.
Dbug_report.md35 let float: f64 = minimal_lexical::parse_float(integer.iter(), fraction.iter(), 0);
/third_party/python/Modules/
D_json.c34 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/
Ddocumentation.md18 Ex: Updated outdated doc comments in `parse_float`.
/third_party/python/Lib/test/test_json/
Dtest_decode.py10 rval = self.loads('1.1', parse_float=decimal.Decimal)
/third_party/python/Doc/library/
Djson.rst87 >>> 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/
Dhb-common.cc825 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()

12