Searched refs:re_opts (Results 1 – 2 of 2) sorted by relevance
/external/python/parse_type/parse_type/ |
D | builder.py | 184 def make_variant(cls, converters, re_opts=None, compiled=False, strict=True): argument 210 if re_opts is None: 211 re_opts = cls.default_re_opts 221 re_opts, 224 convert_variant = cls.__create_convert_variant(re_opts, strict) 231 def __create_convert_variant(re_opts, strict): argument 236 if re.match(converter.pattern, text, re_opts): 244 def __create_convert_variant_compiled(converters, re_opts, strict): argument 249 converter.matcher = re.compile(converter.pattern, re_opts)
|
/external/python/parse_type/tests/ |
D | test_builder.py | 320 parse_variant3 = TypeBuilder.make_variant(type_converters, re_opts=0) 327 re_opts=re.IGNORECASE) 343 strict=True, re_opts=0) 353 parse_variant = TypeBuilder.make_variant(type_converters, re_opts=0, 371 compiled=True, re_opts=0, strict=True) 386 compiled=True, re_opts=0, strict=True)
|