C# Class Pchp.Library.PerlRegex.RegexParser

Show file Open project: iolevel/peachpie Class Usage Examples

Public Methods

Method Description
IsDelimiterChar ( char ch ) : bool
ParsePcreRegexOption ( char option ) : PerlRegexOptions

Gets PCRE option value.

Private Methods

Method Description
AddAlternate ( ) : void
AddConcatenate ( ) : void
AddConcatenate ( bool lazy, int min, int max ) : void
AddConcatenate ( int pos, int cch, bool isReplacement ) : void
AddGroup ( ) : void
AddUnitNode ( RegexNode node ) : void
AddUnitNotone ( char ch ) : void
AddUnitOne ( char ch ) : void
AddUnitSet ( string cc ) : void
AddUnitType ( int type ) : void
AssignNameSlots ( ) : void
CaptureSlotFromName ( string capname ) : int
CharAt ( int i ) : char
CharsRight ( ) : int
CountCaptures ( ) : void
EmptyOptionsStack ( ) : bool
EmptyStack ( ) : bool
Escape ( string input ) : string
HexDigit ( char ch ) : int
IsCaptureName ( string capname ) : bool
IsCaptureSlot ( int i ) : bool
IsMetachar ( char ch ) : bool
IsOnlyTopOption ( RegexOptions option ) : bool
IsQuantifier ( char ch ) : bool
IsSpace ( char ch ) : bool
IsSpecial ( char ch ) : bool
IsStopperX ( char ch ) : bool
IsTrueQuantifier ( ) : bool
MakeException ( string message ) : ArgumentException
MoveLeft ( ) : void
MoveRight ( ) : void
MoveRight ( int i ) : void
MoveRightGetChar ( ) : char
NoteCaptureName ( string name, int pos ) : void
NoteCaptureSlot ( int i, int pos ) : void
NoteCaptures ( int>.Dictionary caps, int capsize, int>.Dictionary capnames ) : void
OptionFromCode ( char ch ) : RegexOptions
Parse ( string re, RegexOptions op ) : RegexTree
ParseProperty ( ) : string
ParseReplacement ( string rep, int>.Dictionary caps, int capsize, int>.Dictionary capnames, RegexOptions op ) : RegexReplacement
PopGroup ( ) : void
PopKeepOptions ( ) : void
PopOptions ( ) : void
PushGroup ( ) : void
PushOptions ( ) : void
RegexParser ( CultureInfo culture ) : System
Reset ( RegexOptions topopts ) : void
RightChar ( ) : char
RightChar ( int i ) : char
ScanBackslash ( ) : RegexNode
ScanBasicBackslash ( ) : RegexNode
ScanBlank ( ) : void
ScanCapname ( ) : string
ScanCharClass ( bool caseInsensitive ) : RegexCharClass
ScanCharClass ( bool caseInsensitive, bool scanOnly ) : RegexCharClass
ScanCharEscape ( ) : char
ScanControl ( ) : char
ScanDecimal ( ) : int
ScanDollar ( ) : RegexNode
ScanGroupOpen ( ) : RegexNode
ScanHex ( int c ) : char
ScanOctal ( ) : char
ScanOptions ( ) : void
ScanRegex ( ) : RegexNode
ScanReplacement ( ) : RegexNode
SetPattern ( string Re ) : void
StartGroup ( RegexNode openGroup ) : void
Textpos ( ) : int
Textto ( int pos ) : void
TrimDelimiters ( string re, int end ) : string

Matches end and start delimiters and returns enclosed pattern.

TrimPcreRegexOption ( string pattern, int &end ) : PerlRegexOptions

Trims PCRE options and gets new pattern end. The remaining string is the pattern enclosed in PCRE delimiters.

TypeFromCode ( char ch ) : int
Unescape ( string input ) : string
Unit ( ) : RegexNode
UseOptionE ( ) : bool
UseOptionI ( ) : bool
UseOptionM ( ) : bool
UseOptionN ( ) : bool
UseOptionS ( ) : bool
UseOptionX ( ) : bool

Method Details

IsDelimiterChar() public static method

public static IsDelimiterChar ( char ch ) : bool
ch char
return bool

ParsePcreRegexOption() public static method

Gets PCRE option value.
public static ParsePcreRegexOption ( char option ) : PerlRegexOptions
option char
return PerlRegexOptions