Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Functions | Variables
pip._vendor.pygments.regexopt Namespace Reference

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)
 

Detailed Description

    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.

Function Documentation

◆ regex_opt()

pip._vendor.pygments.regexopt.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.

◆ regex_opt_inner()

pip._vendor.pygments.regexopt.regex_opt_inner (   strings,
  open_paren 
)
Return a regex that matches any string in the sorted list of strings.