C# Class NRegex.Pattern

ファイルを表示 Open project: olabini/nregex Class Usage Examples

Public Methods

Method Description
GroupId ( string name ) : int
Matcher ( ) : Matcher
Matcher ( MatchResult res, int groupId ) : Matcher
Matcher ( MatchResult res, string groupName ) : Matcher
Matcher ( TextReader text, int length ) : Matcher
Matcher ( char data, int start, int end ) : Matcher
Matcher ( string s ) : Matcher
Matches ( string s ) : bool
Pattern ( string regex ) : System
Pattern ( string regex, REFlags flags ) : System
Pattern ( string regex, string flags ) : System
Quote ( string input ) : string
Replacer ( Substitution model ) : Replacer
Replacer ( string expr ) : Replacer
StartsWith ( string s ) : bool
ToString ( ) : string
ToString_d ( ) : string
Tokenizer ( TextReader input, int length ) : RETokenizer
Tokenizer ( char data, int off, int len ) : RETokenizer
Tokenizer ( string text ) : RETokenizer

Protected Methods

Method Description
Compile ( string regex, REFlags flags ) : void
Pattern ( ) : System

Private Methods

Method Description
GetFlag ( char c ) : REFlags
ParseFlags ( char data, int start, int len ) : REFlags
ParseFlags ( string flags ) : REFlags

Method Details

Compile() protected method

protected Compile ( string regex, REFlags flags ) : void
regex string
flags REFlags
return void

GroupId() public method

public GroupId ( string name ) : int
name string
return int

Matcher() public method

public Matcher ( ) : Matcher
return Matcher

Matcher() public method

public Matcher ( MatchResult res, int groupId ) : Matcher
res MatchResult
groupId int
return Matcher

Matcher() public method

public Matcher ( MatchResult res, string groupName ) : Matcher
res MatchResult
groupName string
return Matcher

Matcher() public method

public Matcher ( TextReader text, int length ) : Matcher
text System.IO.TextReader
length int
return Matcher

Matcher() public method

public Matcher ( char data, int start, int end ) : Matcher
data char
start int
end int
return Matcher

Matcher() public method

public Matcher ( string s ) : Matcher
s string
return Matcher

Matches() public method

public Matches ( string s ) : bool
s string
return bool

Pattern() protected method

protected Pattern ( ) : System
return System

Pattern() public method

public Pattern ( string regex ) : System
regex string
return System

Pattern() public method

public Pattern ( string regex, REFlags flags ) : System
regex string
flags REFlags
return System

Pattern() public method

public Pattern ( string regex, string flags ) : System
regex string
flags string
return System

Quote() public static method

public static Quote ( string input ) : string
input string
return string

Replacer() public method

public Replacer ( Substitution model ) : Replacer
model Substitution
return Replacer

Replacer() public method

public Replacer ( string expr ) : Replacer
expr string
return Replacer

StartsWith() public method

public StartsWith ( string s ) : bool
s string
return bool

ToString() public method

public ToString ( ) : string
return string

ToString_d() public method

public ToString_d ( ) : string
return string

Tokenizer() public method

public Tokenizer ( TextReader input, int length ) : RETokenizer
input System.IO.TextReader
length int
return RETokenizer

Tokenizer() public method

public Tokenizer ( char data, int off, int len ) : RETokenizer
data char
off int
len int
return RETokenizer

Tokenizer() public method

public Tokenizer ( string text ) : RETokenizer
text string
return RETokenizer