Detailed Description

Definition at line 32 of file Scanner.h.

Public Types

enum  CharClass {
  ALL, DIGIT, LETTER, LETTER_DIGIT,
  LETTER_DIGIT_DASH_UNDERSCORE, LETTER_DIGIT_DASH_DOT_SLASH, LETTER_DIGIT_DASH_DOT_SLASH_UNDERSCORE, LETTER_DIGIT_DOT,
  LETTER_DIGIT_DOT_PLUS_MINUS, LETTER_DIGIT_DOT_UNDERSCORE, LETTER_DIGIT_UNDERSCORE, LETTER_DIGIT_UNDERSCORE_COLON,
  LOWERLETTER, LOWERLETTER_DIGIT, LOWERLETTER_DIGIT_UNDERSCORE, NON_ZERO_DIGIT,
  SPACE, UPPERLETTER
}
 

Public Member Functions

 Scanner (StringPiece source)
 
ScannerOne (CharClass clz)
 
ScannerZeroOrOneLiteral (StringPiece s)
 
ScannerOneLiteral (StringPiece s)
 
ScannerAny (CharClass clz)
 
ScannerMany (CharClass clz)
 
ScannerRestartCapture ()
 
ScannerStopCapture ()
 
ScannerEos ()
 
ScannerAnySpace ()
 
ScannerScanUntil (char end_ch)
 
ScannerScanEscapedUntil (char end_ch)
 
char Peek (char default_value='\0') const
 
int empty () const
 
bool GetResult (StringPiece *remaining=nullptr, StringPiece *capture=nullptr)
 

Static Public Member Functions

static bool Matches (CharClass clz, char ch)
 

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