Let us walk on the 3-isogeny graph
|
Functions | |
make_charset (letters) | |
regex_opt_inner (strings, open_paren) | |
regex_opt (strings, prefix='', suffix='') | |
Variables | |
CS_ESCAPE = re.compile(r'[\[\^\\\-\]]') | |
FIRST_ELEMENT = itemgetter(0) | |
pygments.regexopt ~~~~~~~~~~~~~~~~~ An algorithm that generates optimized regexes for matching long lists of literal strings. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details.
make_charset | ( | letters | ) |
Definition at line 22 of file regexopt.py.
References i.
Referenced by pip._vendor.pygments.regexopt.regex_opt_inner().
regex_opt | ( | strings, | |
prefix = '' , |
|||
suffix = '' |
|||
) |
Return a compiled regex that matches any string in the given list. The strings to match must be literal strings, not regexes. They will be regex-escaped. *prefix* and *suffix* are pre- and appended to the final regex.
Definition at line 82 of file regexopt.py.
References pip._vendor.pygments.regexopt.regex_opt_inner().
regex_opt_inner | ( | strings, | |
open_paren | |||
) |
Return a regex that matches any string in the sorted list of strings.
Definition at line 26 of file regexopt.py.
References i, pip._vendor.pygments.regexopt.make_charset(), and pip._vendor.pygments.regexopt.regex_opt_inner().
Referenced by pip._vendor.pygments.regexopt.regex_opt(), and pip._vendor.pygments.regexopt.regex_opt_inner().
CS_ESCAPE = re.compile(r'[\[\^\\\-\]]') |
Definition at line 18 of file regexopt.py.
FIRST_ELEMENT = itemgetter(0) |
Definition at line 19 of file regexopt.py.