Home
last modified time | relevance | path

Searched refs:parse_constant (Results 1 – 18 of 18) sorted by relevance

/external/python/cpython2/Lib/json/
D__init__.py259 parse_int=None, parse_constant=None, object_pairs_hook=None, **kw): argument
290 parse_constant=parse_constant, object_pairs_hook=object_pairs_hook,
295 parse_int=None, parse_constant=None, object_pairs_hook=None, **kw): argument
338 parse_constant is None and object_pairs_hook is None and not kw):
350 if parse_constant is not None:
351 kw['parse_constant'] = parse_constant
Dscanner.py24 parse_constant = context.parse_constant
57 return parse_constant('NaN'), idx + 3
59 return parse_constant('Infinity'), idx + 8
61 return parse_constant('-Infinity'), idx + 9
Ddecoder.py303 parse_int=None, parse_constant=None, strict=True, argument
352 self.parse_constant = parse_constant or _CONSTANTS.__getitem__
/external/python/cpython3/Lib/json/
D__init__.py275 parse_int=None, parse_constant=None, object_pairs_hook=None, **kw): argument
296 parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
300 parse_int=None, parse_constant=None, object_pairs_hook=None, **kw): argument
356 parse_constant is None and object_pairs_hook is None and not kw):
368 if parse_constant is not None:
369 kw['parse_constant'] = parse_constant
Dscanner.py23 parse_constant = context.parse_constant
57 return parse_constant('NaN'), idx + 3
59 return parse_constant('Infinity'), idx + 8
61 return parse_constant('-Infinity'), idx + 9
Ddecoder.py285 parse_int=None, parse_constant=None, strict=True, argument
322 self.parse_constant = parse_constant or _CONSTANTS.__getitem__
/external/minijail/
Dsyscall_filter_unittest.cc98 c = parse_constant(const_cast<char*>(constant.data()), &end); in TEST()
103 c = parse_constant(const_cast<char*>(constant.data()), &end); in TEST()
115 c = parse_constant(const_cast<char*>(constant.data()), &end); in TEST()
121 c = parse_constant(const_cast<char*>(constant.data()), &end); in TEST()
131 c = parse_constant(const_cast<char*>(constant.data()), &end); in TEST()
142 c = parse_constant(const_cast<char*>(constant.data()), &end); in TEST()
148 c = parse_constant(const_cast<char*>(constant.data()), &end); in TEST()
161 c = parse_constant(const_cast<char*>(constant.data()), &end); in TEST()
164 c = parse_constant(const_cast<char*>(constant.data()), &end); in TEST()
169 c = parse_constant(const_cast<char*>(constant.data()), &end); in TEST()
[all …]
Dutil.h149 long int parse_constant(char *constant_str, char **endptr);
Dutil.c251 long int parse_constant(char *constant_str, char **endptr) in parse_constant() function
291 current_value = parse_constant(group, &end); in parse_constant()
Dsyscall_filter.c248 long int c = parse_constant(constant_str, &constant_str_ptr); in compile_atom()
292 int errno_val = parse_constant(errno_val_str, &errno_val_ptr); in compile_errno()
Dminijail0_cli.c273 mountflags = parse_constant(flags, &end); in add_mount()
/external/python/cpython2/Lib/test/crashers/
Ddecref_before_assignment.py26 parse_constant = None variable in Ctx1
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/
Drc_test_helpers.h52 int parse_constant(unsigned *index, float *data, const char *const_str);
Drc_test_helpers.c441 int parse_constant(unsigned *index, float *data, const char *const_str) in parse_constant() function
474 if (!parse_constant(&index, data, const_str)) { in add_constant()
/external/python/cpython3/Modules/
D_json.c36 PyObject *parse_constant; member
46 …{"parse_constant", T_OBJECT, offsetof(PyScannerObject, parse_constant), READONLY, "parse_constant"…
684 Py_VISIT(s->parse_constant); in scanner_traverse()
698 Py_CLEAR(s->parse_constant); in scanner_clear()
934 rval = PyObject_CallFunctionObjArgs(s->parse_constant, cstr, NULL); in _parse_constant()
1240 s->parse_constant = PyObject_GetAttrString(ctx, "parse_constant"); in scanner_new()
1241 if (s->parse_constant == NULL) in scanner_new()
/external/python/cpython2/Doc/library/
Djson.rst213 .. function:: load(fp[, encoding[, cls[, object_hook[, parse_float[, parse_int[, parse_constant[, o…
252 *parse_constant*, if specified, will be called with one of the following
258 *parse_constant* doesn't get called on 'null', 'true', 'false' anymore.
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[…
346 *parse_constant*, if specified, will be called with one of the following
562 behavior. In the deserializer, the *parse_constant* parameter can be used to
/external/python/cpython3/Doc/library/
Djson.rst227 …fp, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_p…
258 *parse_constant*, if specified, will be called with one of the following
264 *parse_constant* doesn't get called on 'null', 'true', 'false' anymore.
280 …(s, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_p…
303 .. class:: JSONDecoder(*, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, …
358 *parse_constant*, if specified, will be called with one of the following
612 behavior. In the deserializer, the *parse_constant* parameter can be used to
/external/python/cpython2/Modules/
D_json.c41 PyObject *parse_constant; member
51 …{"parse_constant", T_OBJECT, offsetof(PyScannerObject, parse_constant), READONLY, "parse_constant"…
861 Py_VISIT(s->parse_constant); in scanner_traverse()
877 Py_CLEAR(s->parse_constant); in scanner_clear()
1288 rval = PyObject_CallFunctionObjArgs(s->parse_constant, cstr, NULL); in _parse_constant()
1755 s->parse_constant = PyObject_GetAttrString(ctx, "parse_constant"); in scanner_new()
1756 if (s->parse_constant == NULL) in scanner_new()