Searched refs:MAXREPEAT (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython3/Lib/ |
D | sre_constants.py | 18 from _sre import MAXREPEAT, MAXGROUPS 67 MAXREPEAT = _NamedIntConstant(MAXREPEAT, 'MAXREPEAT') variable
|
D | sre_parse.py | 181 i = MAXREPEAT - 1 220 self.width = min(lo, MAXREPEAT - 1), min(hi, MAXREPEAT) 608 min, max = 0, MAXREPEAT 611 min, max = 1, MAXREPEAT 617 min, max = 0, MAXREPEAT 633 if min >= MAXREPEAT: 637 if max >= MAXREPEAT:
|
D | sre_compile.py | 714 if max == MAXREPEAT: 730 if max == MAXREPEAT:
|
/external/python/cpython2/Lib/ |
D | sre_constants.py | 19 from _sre import MAXREPEAT 22 MAXREPEAT = _sre.MAXREPEAT = 65535 variable
|
D | sre_parse.py | 161 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/ |
D | test_re.py | 1071 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/ |
D | test_re.py | 1704 from _sre import MAXREPEAT 1708 self.assertIsNone(re.match(r".{%d}" % (MAXREPEAT - 1), string)) 1709 self.assertEqual(re.match(r".{,%d}" % (MAXREPEAT - 1), string).span(), 1711 self.assertIsNone(re.match(r".{%d,}?" % (MAXREPEAT - 1), string)) 1712 self.assertRaises(OverflowError, re.compile, r".{%d}" % MAXREPEAT) 1713 self.assertRaises(OverflowError, re.compile, r".{,%d}" % MAXREPEAT) 1714 self.assertRaises(OverflowError, re.compile, r".{%d,}?" % MAXREPEAT)
|