Home
last modified time | relevance | path

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

/third_party/python/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:
/third_party/python/Lib/test/
Dtest_re.py1730 from _sre import MAXREPEAT
1734 self.assertIsNone(re.match(r".{%d}" % (MAXREPEAT - 1), string))
1735 self.assertEqual(re.match(r".{,%d}" % (MAXREPEAT - 1), string).span(),
1737 self.assertIsNone(re.match(r".{%d,}?" % (MAXREPEAT - 1), string))
1738 self.assertRaises(OverflowError, re.compile, r".{%d}" % MAXREPEAT)
1739 self.assertRaises(OverflowError, re.compile, r".{,%d}" % MAXREPEAT)
1740 self.assertRaises(OverflowError, re.compile, r".{%d,}?" % MAXREPEAT)
2214 self.assertGreaterEqual(sre_compile.MAXREPEAT, 0)