C# Class Alsing.SourceCode.Pattern

Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Méthodes publiques

Свойство Type Description
BracketType BracketType
Category string
DefaultSeparators string
IsComplex bool
IsKeyword bool
IsMultiLineBracket bool
IsSeparator bool
LowerStringPattern string
MatchingBracket Pattern
Parent PatternList

Méthodes publiques

Méthode Description
HasSeparators ( string text, int position ) : bool

For public use only

IndexIn ( string text, int startPosition, bool matchCase, string separators ) : PatternScanResult

Returns the index of the pattern in a string

Pattern ( string pattern, bool iscomplex ) : System.Text.RegularExpressions

Pattern ( string pattern, bool iscomplex, bool separator, bool keyword ) : System.Text.RegularExpressions

Pattern ( string pattern, bool separator, bool keyword, string escapeChar ) : System.Text.RegularExpressions

Private Methods

Méthode Description
CharIsSeparator ( string Text, int Position ) : bool
ComplexFind ( string text, int startPosition ) : PatternScanResult
ComplexFindKeyword ( string text, int startPosition ) : PatternScanResult
Init ( string pattern, bool isComplex, bool separator, bool keyword ) : void
SimpleFind ( string text, int startPosition, bool matchCase ) : PatternScanResult
SimpleFindKeyword ( string text, int startPosition, bool matchCase ) : PatternScanResult

Method Details

HasSeparators() public méthode

For public use only
public HasSeparators ( string text, int position ) : bool
text string
position int
Résultat bool

IndexIn() public méthode

Returns the index of the pattern in a string
public IndexIn ( string text, int startPosition, bool matchCase, string separators ) : PatternScanResult
text string The string in which to find the pattern
startPosition int Start index in the string
matchCase bool true if a case sensitive match should be performed
separators string
Résultat PatternScanResult

Pattern() public méthode

public Pattern ( string pattern, bool iscomplex ) : System.Text.RegularExpressions
pattern string
iscomplex bool
Résultat System.Text.RegularExpressions

Pattern() public méthode

public Pattern ( string pattern, bool iscomplex, bool separator, bool keyword ) : System.Text.RegularExpressions
pattern string
iscomplex bool
separator bool
keyword bool
Résultat System.Text.RegularExpressions

Pattern() public méthode

public Pattern ( string pattern, bool separator, bool keyword, string escapeChar ) : System.Text.RegularExpressions
pattern string
separator bool
keyword bool
escapeChar string
Résultat System.Text.RegularExpressions

Property Details

BracketType public_oe property

public BracketType BracketType
Résultat BracketType

Category public_oe property

Category of the pattern Built in categories are: URL MAIL FILE
public string Category
Résultat string

DefaultSeparators public_oe static_oe property

public static string DefaultSeparators
Résultat string

IsComplex public_oe property

Gets if the pattern is a simple string or a RegEx pattern
public bool IsComplex
Résultat bool

IsKeyword public_oe property

Get or Sets if this pattern needs separator chars before and after it in order to be valid.
public bool IsKeyword
Résultat bool

IsMultiLineBracket public_oe property

public bool IsMultiLineBracket
Résultat bool

IsSeparator public_oe property

Gets or Sets if the pattern is a separator pattern . A separator pattern can be "End Sub" in VB6 , whenever that pattern is found , the SyntaxBoxControl will render a horizontal separator line. NOTE: this should not be mixed up with separator chars.
public bool IsSeparator
Résultat bool

LowerStringPattern public_oe property

For internal use only
public string LowerStringPattern
Résultat string

MatchingBracket public_oe property

public Pattern MatchingBracket
Résultat Pattern

Parent public_oe property

The owning PatternList , eg a specific KeywordList or OperatorList
public PatternList,Alsing.SourceCode Parent
Résultat PatternList