Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | Properties | List of all members
pip._vendor.pygments.scanner.Scanner Class Reference

Public Member Functions

 __init__ (self, text, flags=0)
 
 eos (self)
 
 check (self, pattern)
 
 test (self, pattern)
 
 scan (self, pattern)
 
 get_char (self)
 
 __repr__ (self)
 

Public Attributes

 data
 
 data_length
 
 start_pos
 
 pos
 
 flags
 
 last
 
 match
 

Protected Attributes

 _re_cache
 

Properties

 eos = property(eos, eos.__doc__)
 

Detailed Description

Simple scanner

All method patterns are regular expression strings (not
compiled expressions!)

Constructor & Destructor Documentation

◆ __init__()

pip._vendor.pygments.scanner.Scanner.__init__ (   self,
  text,
  flags = 0 
)
:param text:    The text which should be scanned
:param flags:   default regular expression flags

Member Function Documentation

◆ check()

pip._vendor.pygments.scanner.Scanner.check (   self,
  pattern 
)
Apply `pattern` on the current position and return
the match object. (Doesn't touch pos). Use this for
lookahead.

◆ eos()

pip._vendor.pygments.scanner.Scanner.eos (   self)
`True` if the scanner reached the end of text.

◆ get_char()

pip._vendor.pygments.scanner.Scanner.get_char (   self)
Scan exactly one char.

◆ scan()

pip._vendor.pygments.scanner.Scanner.scan (   self,
  pattern 
)
Scan the text for the given pattern and update pos/match
and related fields. The return value is a boolean that
indicates if the pattern matched. The matched value is
stored on the instance as ``match``, the last value is
stored as ``last``. ``start_pos`` is the position of the
pointer before the pattern was matched, ``pos`` is the
end position.

◆ test()

pip._vendor.pygments.scanner.Scanner.test (   self,
  pattern 
)
Apply a pattern on the current position and check
if it patches. Doesn't touch pos.

The documentation for this class was generated from the following file: