C# Класс Alsing.SourceCode.Pattern

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BracketType BracketType
Category string
DefaultSeparators string
IsComplex bool
IsKeyword bool
IsMultiLineBracket bool
IsSeparator bool
LowerStringPattern string
MatchingBracket Pattern
Parent PatternList

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

HasSeparators() публичный метод

For public use only
public HasSeparators ( string text, int position ) : bool
text string
position int
Результат bool

IndexIn() публичный метод

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
Результат PatternScanResult

Pattern() публичный метод

public Pattern ( string pattern, bool iscomplex ) : System.Text.RegularExpressions
pattern string
iscomplex bool
Результат System.Text.RegularExpressions

Pattern() публичный метод

public Pattern ( string pattern, bool iscomplex, bool separator, bool keyword ) : System.Text.RegularExpressions
pattern string
iscomplex bool
separator bool
keyword bool
Результат System.Text.RegularExpressions

Pattern() публичный метод

public Pattern ( string pattern, bool separator, bool keyword, string escapeChar ) : System.Text.RegularExpressions
pattern string
separator bool
keyword bool
escapeChar string
Результат System.Text.RegularExpressions

Описание свойств

BracketType публичное свойство

public BracketType BracketType
Результат BracketType

Category публичное свойство

Category of the pattern Built in categories are: URL MAIL FILE
public string Category
Результат string

DefaultSeparators публичное статическое свойство

public static string DefaultSeparators
Результат string

IsComplex публичное свойство

Gets if the pattern is a simple string or a RegEx pattern
public bool IsComplex
Результат bool

IsKeyword публичное свойство

Get or Sets if this pattern needs separator chars before and after it in order to be valid.
public bool IsKeyword
Результат bool

IsMultiLineBracket публичное свойство

public bool IsMultiLineBracket
Результат bool

IsSeparator публичное свойство

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
Результат bool

LowerStringPattern публичное свойство

For internal use only
public string LowerStringPattern
Результат string

MatchingBracket публичное свойство

public Pattern MatchingBracket
Результат Pattern

Parent публичное свойство

The owning PatternList , eg a specific KeywordList or OperatorList
public PatternList,Alsing.SourceCode Parent
Результат PatternList