C# Class Transformer.NET.TokenSelector

Show file Open project: extnet/Transformer.NET Class Usage Examples

Public Methods

Method Description
Matches ( string text, Token token ) : List
Place ( StringBuilder sb, Token token ) : void
ToTokenSelector ( ITextTransformer parser, string selector ) : TokenSelector
TrimTailingSlash ( string pattern ) : string

Protected Methods

Method Description
HandleMatch ( Match match, Token token, StringBuilder sb, int index, int count, int &offset ) : bool
IsPseudoMatch ( Group group, Token token, int index, int count ) : PseudoMatch

Private Methods

Method Description
BuildFlags ( string str ) : RegexOptions
IsIdSelector ( string selector ) : bool
IsInteger ( string value ) : bool

Method Details

HandleMatch() protected method

protected HandleMatch ( Match match, Token token, StringBuilder sb, int index, int count, int &offset ) : bool
match System.Text.RegularExpressions.Match
token Token
sb StringBuilder
index int
count int
offset int
return bool

IsPseudoMatch() protected method

protected IsPseudoMatch ( Group group, Token token, int index, int count ) : PseudoMatch
group System.Text.RegularExpressions.Group
token Token
index int
count int
return PseudoMatch

Matches() public method

public Matches ( string text, Token token ) : List
text string
token Token
return List

Place() public method

public Place ( StringBuilder sb, Token token ) : void
sb StringBuilder
token Token
return void

ToTokenSelector() public static method

public static ToTokenSelector ( ITextTransformer parser, string selector ) : TokenSelector
parser ITextTransformer
selector string
return TokenSelector

TrimTailingSlash() public static method

public static TrimTailingSlash ( string pattern ) : string
pattern string
return string