Home
last modified time | relevance | path

Searched refs:parse_number (Results 1 – 25 of 44) sorted by relevance

12

/external/python/parse_type/tests/
Dtest_cardinality.py8 from .parse_type_test import ParseTypeTestCase, parse_number
119 "Number": parse_number,
162 "Number": parse_number,
210 parse_opt_number = TypeBuilder.with_zero_or_one(parse_number)
214 parse_opt_number = TypeBuilder.with_zero_or_one(parse_number)
219 parse_opt_number = TypeBuilder.with_optional(parse_number)
229 parse_numbers = TypeBuilder.with_zero_or_more(parse_number)
233 parse_numbers = TypeBuilder.with_zero_or_more(parse_number)
257 parse_numbers = TypeBuilder.with_one_or_more(parse_number)
261 parse_numbers2 = TypeBuilder.with_one_or_more(parse_number, listsep=';')
[all …]
Dtest_cardinality_field.py21 import TestCase, parse_number, unittest
142 (dict(NumberX=parse_number), "non-empty type_dict (wrong name)"),
156 type_converter=parse_number)
162 dict(Number=parse_number))
168 dict(Number=parse_number))
174 dict(Number=parse_number))
182 parse_number)
187 dict(Number=parse_number))
195 parse_number)
209 type_dict = dict(Number=parse_number)
[all …]
Dtest_cfparse.py9 from .parse_type_test import ParseTypeTestCase, parse_number, unittest
38 existing_types = dict(Number=parse_number)
49 existing_types = dict(Number=parse_number)
67 existing_types = dict(Number=parse_number)
90 existing_types = dict(Number=parse_number)
110 existing_types = dict(Number=parse_number)
143 existing_types = dict(Number=parse_number)
149 existing_types = dict(Number=parse_number)
Dtest_parse_decorator.py49 def parse_number(text): function
52 self.assert_decorated_with_pattern(parse_number, r"\d+")
53 self.assert_converter_call(parse_number, "123", 123)
80 def parse_number(text): function
83 parse_number.name = "Number" #< For test automation.
84 more_types = build_type_dict([parse_number])
Dtest_builder.py15 import parse_number, parse_yesno, parse_person_choice, parse_color, Color
274 TYPE_CONVERTERS = [ parse_number, parse_yesno ]
305 type_converters = [parse_yesno, parse_number]
311 type_converters = [parse_number, parse_yesno]
319 type_converters = [parse_number, parse_yesno]
325 type_converters = [parse_number, parse_yesno]
332 type_converters = [parse_number, parse_yesno]
341 type_converters = [parse_number, parse_yesno]
352 type_converters = [parse_number, parse_yesno]
366 type_converters = [parse_number, parse_yesno]
[all …]
Dparse_type_test.py16 def parse_number(text): function
18 parse_number.pattern = r"\d+" # Provide better regexp pattern than default.
19 parse_number.name = "Number" # For testing only.
Dtest_parse.py780 def parse_number(text): function
785 Number=parse_number)
823 def parse_number(text): function
825 parse_number.pattern = r"\d+"
826 parse_number.name = "Number" # For testing only.
828 extra_types = {parse_number.name: parse_number}
882 def parse_number(text): function
885 type_converters = dict(Number=parse_number, Unit=parse_unit)
909 def parse_number(text): function
920 type_converters = dict(Number=parse_number, Unit=parse_unit)
/external/python/parse_type/
DREADME.rst69 def parse_number(text):
71 parse_number.pattern = r"\d+" # -- REGULAR EXPRESSION pattern for type.
80 def parse_number(text):
82 assert hasattr(parse_number, "pattern")
83 assert parse_number.pattern == r"\d+"
90 parser = parse.Parser(schema, dict(Number=parse_number))
116 parse_numbers = TypeBuilder.with_many(parse_number, listsep=",")
134 parse_optional_number = TypeBuilder.with_optional(parse_number)
231 def parse_number(text):
236 parse_variant = TypeBuilder.make_variant([parse_number, parse_color])
[all …]
/external/bcc/src/cc/usdt/
Dusdt_args.cc136 new_pos = parse_number(pos, reg_num); in parse_register()
146 new_pos = parse_number(pos, arg_size); in parse_size()
167 new_pos = parse_number(pos, offset); in parse_mem()
215 new_pos = parse_number(cur_pos, &val); in parse()
342 return parse_number(pos, &dest->scale_); in parse_scale()
347 return parse_number(pos + 1, &dest->constant_); in parse_expr()
353 pos = parse_number(pos, &dest->deref_offset_); in parse_expr()
363 pos = parse_number(pos, &dest->deref_offset_); in parse_expr()
392 ssize_t m = parse_number(pos, &asize); in parse_1()
/external/iptables/extensions/
Dlibxt_u32.c89 static uint32_t parse_number(const char **s, int pos) in parse_number() function
184 parse_number(&arg, arg - start); in u32_parse()
222 parse_number(&arg, arg - start); in u32_parse()
230 parse_number(&arg, arg-start); in u32_parse()
/external/cpuinfo/src/linux/
Dcpulist.c42 inline static const char* parse_number(const char* string, const char* end, uint32_t number_ptr[res… in parse_number() function
81 const char* number_end = parse_number(entry_start, entry_end, &first_cpu); in parse_entry()
104 number_end = parse_number(number_start, entry_end, &last_cpu); in parse_entry()
Dprocessors.c43 inline static const char* parse_number(const char* start, const char* end, uint32_t number_ptr[rest… in parse_number() function
91 const char* parsed_end = parse_number(text_start, text_end, &kernel_max); in uint32_parser()
/external/llvm/test/CodeGen/X86/
D2009-02-09-ivs-different-sizes.ll7 define void @parse_number(i8* nocapture %p) nounwind {
/external/llvm-project/llvm/test/CodeGen/X86/
D2009-02-09-ivs-different-sizes.ll7 define void @parse_number(i8* nocapture %p) nounwind {
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors_format.inc19 static const char *parse_number(const char *p, int *out) {
30 const char *q = parse_number(p, &number);
207 p = parse_number(p, &dir->fieldWidth);
364 p = parse_number(p, out);
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors_format.inc18 static const char *parse_number(const char *p, int *out) {
29 const char *q = parse_number(p, &number);
206 p = parse_number(p, &dir->fieldWidth);
369 p = parse_number(p, out);
/external/python/cpython2/Objects/stringlib/
Dformatter.h413 parse_number(STRINGLIB_CHAR *ptr, Py_ssize_t len, in parse_number() function
1039 parse_number(p, n_digits, &n_remainder, &has_decimal); in format_float_internal()
1231 parse_number(p_re, n_re_digits, &n_re_remainder, &re_has_decimal); in format_complex_internal()
1232 parse_number(p_im, n_im_digits, &n_im_remainder, &im_has_decimal); in format_complex_internal()
/external/avb/
Davbtool.py318 def parse_number(string): function
4155 type=parse_number,
4159 type=parse_number,
4204 type=parse_number,
4257 type=parse_number,
4261 type=parse_number,
4294 type=parse_number,
4306 type=parse_number)
4339 type=parse_number,
4355 type=parse_number)
[all …]
Davbtool318 def parse_number(string): function
4155 type=parse_number,
4159 type=parse_number,
4204 type=parse_number,
4257 type=parse_number,
4261 type=parse_number,
4294 type=parse_number,
4306 type=parse_number)
4339 type=parse_number,
4355 type=parse_number)
[all …]
Daftltool2138 type=avbtool.parse_number,
2145 type=avbtool.parse_number,
2209 type=avbtool.parse_number,
2214 type=avbtool.parse_number,
2230 type=avbtool.parse_number,
Daftltool.py2138 type=avbtool.parse_number,
2145 type=avbtool.parse_number,
2209 type=avbtool.parse_number,
2214 type=avbtool.parse_number,
2230 type=avbtool.parse_number,
/external/python/cpython3/Python/
Dformatter_unicode.c443 parse_number(PyObject *s, Py_ssize_t pos, Py_ssize_t end, in parse_number() function
1127 parse_number(unicode_tmp, index, index + n_digits, &n_remainder, &has_decimal); in format_float_internal()
1303 parse_number(re_unicode_tmp, i_re, i_re + n_re_digits, in format_complex_internal()
1305 parse_number(im_unicode_tmp, i_im, i_im + n_im_digits, in format_complex_internal()
/external/swiftshader/third_party/llvm-subzero/lib/Demangle/
DItaniumDemangle.cpp62 static const char *parse_number(const char *first, const char *last) { in parse_number() function
693 const char *t1 = parse_number(t, last); in parse_function_param()
700 const char *t0 = parse_number(first + 2, last); in parse_function_param()
704 const char *t1 = parse_number(t, last); in parse_function_param()
1503 const char *t = parse_number(first + 1, last); in parse_array_type()
1574 const char *t = parse_number(first + 2, last); in parse_vector_type()
2298 const char *t = parse_number(first, last); in parse_integer_literal()
3665 const char *t1 = parse_number(t, last); in parse_local_name()
3799 const char *t = parse_number(first + 1, last); in parse_call_offset()
3804 const char *t = parse_number(first + 1, last); in parse_call_offset()
[all …]
/external/squashfs-tools/squashfs-tools/
Daction.c2033 static int parse_number(char *start, long long *size, int *range, char **error) in parse_number() function
2105 int res = parse_number(atom->argv[0], &size, &range, &error); in parse_number_arg()
2133 res = parse_number(atom->argv[0], &start, &type, &error); in parse_range_args()
2145 res = parse_number(atom->argv[1], &end, &type, &error); in parse_range_args()
2361 if(parse_number(atom->argv[0], &size, &range, &error)) { in parse_uid_arg()
2406 if(parse_number(atom->argv[0], &size, &range, &error)) { in parse_gid_arg()
/external/rust/crates/grpcio-sys/grpc/third_party/upb/cmake/upb/json/
Dparser.c907 static bool parse_number(upb_json_parser *p, bool is_quoted);
919 return parse_number(p, false); in end_number_nontop()
1073 static bool parse_number(upb_json_parser *p, bool is_quoted) { in parse_number() function
1185 parse_number(p, false); in end_null()
1398 ok = parse_number(p, true); in end_stringval_nontop()
1868 if (!parse_number(p, true)) { in parse_mapentry_key()

12