Home
last modified time | relevance | path

Searched refs:MAXREPEAT (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython3/Lib/
Dsre_constants.py18 from _sre import MAXREPEAT, MAXGROUPS
65 MAXREPEAT = _NamedIntConstant(MAXREPEAT, 'MAXREPEAT') variable
Dsre_parse.py181 i = MAXREPEAT - 1
220 self.width = min(lo, MAXREPEAT - 1), min(hi, MAXREPEAT)
626 min, max = 0, MAXREPEAT
629 min, max = 1, MAXREPEAT
635 min, max = 0, MAXREPEAT
651 if min >= MAXREPEAT:
655 if max >= MAXREPEAT:
Dsre_compile.py714 if max == MAXREPEAT:
730 if max == MAXREPEAT:
/external/python/cpython2/Lib/
Dsre_constants.py19 from _sre import MAXREPEAT
22 MAXREPEAT = _sre.MAXREPEAT = 65535 variable
Dsre_parse.py161 i = MAXREPEAT - 1
186 self.width = min(lo, MAXREPEAT - 1), min(hi, MAXREPEAT)
512 min, max = 0, MAXREPEAT
515 min, max = 1, MAXREPEAT
521 min, max = 0, MAXREPEAT
536 if min >= MAXREPEAT:
540 if max >= MAXREPEAT:
/external/python/cpython2/Lib/test/
Dtest_re.py1071 from _sre import MAXREPEAT
1075 self.assertIsNone(re.match(r".{%d}" % (MAXREPEAT - 1), string))
1076 self.assertEqual(re.match(r".{,%d}" % (MAXREPEAT - 1), string).span(),
1078 self.assertIsNone(re.match(r".{%d,}?" % (MAXREPEAT - 1), string))
1079 self.assertRaises(OverflowError, re.compile, r".{%d}" % MAXREPEAT)
1080 self.assertRaises(OverflowError, re.compile, r".{,%d}" % MAXREPEAT)
1081 self.assertRaises(OverflowError, re.compile, r".{%d,}?" % MAXREPEAT)
/external/python/cpython3/Lib/test/
Dtest_re.py1729 from _sre import MAXREPEAT
1733 self.assertIsNone(re.match(r".{%d}" % (MAXREPEAT - 1), string))
1734 self.assertEqual(re.match(r".{,%d}" % (MAXREPEAT - 1), string).span(),
1736 self.assertIsNone(re.match(r".{%d,}?" % (MAXREPEAT - 1), string))
1737 self.assertRaises(OverflowError, re.compile, r".{%d}" % MAXREPEAT)
1738 self.assertRaises(OverflowError, re.compile, r".{,%d}" % MAXREPEAT)
1739 self.assertRaises(OverflowError, re.compile, r".{%d,}?" % MAXREPEAT)