Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/json/
D__init__.py258 def load(fp, encoding=None, cls=None, object_hook=None, parse_float=None, argument
289 parse_float=parse_float, parse_int=parse_int,
294 def loads(s, encoding=None, cls=None, object_hook=None, parse_float=None, argument
337 parse_int is None and parse_float is None and
346 if parse_float is not None:
347 kw['parse_float'] = parse_float
Dscanner.py22 parse_float = context.parse_float
52 res = parse_float(integer + (frac or '') + (exp or ''))
Ddecoder.py302 def __init__(self, encoding=None, object_hook=None, parse_float=None, argument
350 self.parse_float = parse_float or float
/external/python/cpython3/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
/external/python/cpython2/Lib/test/crashers/
Ddecref_before_assignment.py24 parse_float = None variable in Ctx1
/external/python/cpython3/Modules/
D_json.c34 PyObject *parse_float; member
44 {"parse_float", T_OBJECT, offsetof(PyScannerObject, parse_float), READONLY, "parse_float"},
653 Py_VISIT(self->parse_float); in scanner_traverse()
665 Py_CLEAR(self->parse_float); in scanner_clear()
982 if (is_float && s->parse_float != (PyObject *)&PyFloat_Type) in _match_number_unicode()
983 custom_func = s->parse_float; in _match_number_unicode()
1194 s->parse_float = PyObject_GetAttrString(ctx, "parse_float"); in scanner_new()
1195 if (s->parse_float == NULL) in scanner_new()
/external/python/cpython2/Modules/
D_json.c39 PyObject *parse_float; member
49 {"parse_float", T_OBJECT, offsetof(PyScannerObject, parse_float), READONLY, "parse_float"},
859 Py_VISIT(s->parse_float); in scanner_traverse()
875 Py_CLEAR(s->parse_float); in scanner_clear()
1372 if (s->parse_float != (PyObject *)&PyFloat_Type) { in _match_number_str()
1373 rval = PyObject_CallFunctionObjArgs(s->parse_float, numstr, NULL); in _match_number_str()
1472 if (s->parse_float != (PyObject *)&PyFloat_Type) { in _match_number_unicode()
1473 rval = PyObject_CallFunctionObjArgs(s->parse_float, numstr, NULL); in _match_number_unicode()
1749 s->parse_float = PyObject_GetAttrString(ctx, "parse_float"); in scanner_new()
1750 if (s->parse_float == NULL) in scanner_new()
/external/python/cpython2/Lib/json/tests/
Dtest_decode.py9 rval = self.loads('1.1', parse_float=decimal.Decimal)
/external/rust/crates/grpcio-sys/grpc/third_party/re2/util/
Dpcre.h586 MAKE_PARSER(float, parse_float);
620 static bool parse_float (const char* str, size_t n, void* dest);
Dpcre.cc994 bool PCRE::Arg::parse_float(const char* str, size_t n, void* dest) { in parse_float() function in re2::PCRE::Arg
/external/python/cpython3/Lib/test/test_json/
Dtest_decode.py9 rval = self.loads('1.1', parse_float=decimal.Decimal)
/external/python/cpython2/Doc/library/
Djson.rst79 >>> json.loads('1.1', parse_float=decimal.Decimal)
213 .. function:: load(fp[, encoding[, cls[, object_hook[, parse_float[, parse_int[, parse_constant[, o…
242 *parse_float*, if specified, will be called with the string of every JSON
265 .. function:: loads(s[, encoding[, cls[, object_hook[, parse_float[, parse_int[, parse_constant[, o…
282 .. class:: JSONDecoder([encoding[, object_hook[, parse_float[, parse_int[, parse_constant[, strict[…
336 *parse_float*, if specified, will be called with the string of every JSON
/external/python/cpython3/Doc/library/
Djson.rst82 >>> json.loads('1.1', parse_float=decimal.Decimal)
227 .. function:: load(fp, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_const…
248 *parse_float*, if specified, will be called with the string of every JSON
280 .. function:: loads(s, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_const…
302 .. class:: JSONDecoder(*, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, …
347 *parse_float*, if specified, will be called with the string of every JSON
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/
Dre2.h806 MAKE_PARSER(float, parse_float) in MAKE_PARSER()
839 static bool parse_float (const char* str, size_t n, void* dest);
Dre2.cc1295 bool RE2::Arg::parse_float(const char* str, size_t n, void* dest) { in GlobalReplace() function in re2::RE2::Arg
/external/mesa3d/src/gallium/tools/trace/
Dparse.py287 def parse_float(self): member in TraceParser
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_text.c231 static boolean parse_float( const char **pcur, float *val ) in parse_float() function
1254 ret = parse_float(&ctx->cur, &values[i].Float); in parse_immediate_data()
/external/virglrenderer/src/gallium/auxiliary/tgsi/
Dtgsi_text.c239 static boolean parse_float( const char **pcur, float *val ) in parse_float() function
1229 ret = parse_float(&ctx->cur, &values[i].Float); in parse_immediate_data()