C# Class NRegex.Replacer

显示文件 Open project: olabini/nregex

Public Methods

Method Description
Replace ( MatchResult res, int group, StringBuilder sb ) : int
Replace ( MatchResult res, int group, TextBuffer dest ) : int
Replace ( MatchResult res, string groupName, StringBuilder sb ) : int
Replace ( MatchResult res, string groupName, TextBuffer dest ) : int
Replace ( Matcher m, Substitution substitution, TextBuffer dest ) : int
Replace ( Matcher m, Substitution substitution, TextWriter _out ) : int
Replace ( TextReader text, int length, StringBuilder sb ) : int
Replace ( TextReader text, int length, TextBuffer dest ) : int
Replace ( char chars, int off, int len, StringBuilder sb ) : int
Replace ( char chars, int off, int len, TextBuffer dest ) : int
Replace ( string text, StringBuilder sb ) : int
Replace ( string text, TextBuffer dest ) : int
Replace ( MatchResult res, int group ) : string
Replace ( TextReader text, int length ) : string
Replace ( char chars, int off, int len ) : string
Replace ( string text ) : string
Replace ( MatchResult res, int group, TextWriter _out ) : void
Replace ( MatchResult res, string groupName, TextWriter _out ) : void
Replace ( TextReader _in, int length, TextWriter _out ) : void
Replace ( char chars, int off, int len, TextWriter _out ) : void
Replace ( string text, TextWriter _out ) : void
ReplaceFirst ( MatchResult res, int group, StringBuilder sb ) : int
ReplaceFirst ( MatchResult res, int group, TextBuffer dest ) : int
ReplaceFirst ( MatchResult res, string groupName, StringBuilder sb ) : int
ReplaceFirst ( MatchResult res, string groupName, TextBuffer dest ) : int
ReplaceFirst ( Matcher m, Substitution substitution, TextBuffer dest ) : int
ReplaceFirst ( Matcher m, Substitution substitution, TextWriter _out ) : int
ReplaceFirst ( TextReader text, int length, StringBuilder sb ) : int
ReplaceFirst ( TextReader text, int length, TextBuffer dest ) : int
ReplaceFirst ( char chars, int off, int len, StringBuilder sb ) : int
ReplaceFirst ( char chars, int off, int len, TextBuffer dest ) : int
ReplaceFirst ( string text, StringBuilder sb ) : int
ReplaceFirst ( string text, TextBuffer dest ) : int
ReplaceFirst ( MatchResult res, int group ) : string
ReplaceFirst ( TextReader text, int length ) : string
ReplaceFirst ( char chars, int off, int len ) : string
ReplaceFirst ( string text ) : string
ReplaceFirst ( MatchResult res, int group, TextWriter _out ) : void
ReplaceFirst ( MatchResult res, string groupName, TextWriter _out ) : void
ReplaceFirst ( TextReader _in, int length, TextWriter _out ) : void
ReplaceFirst ( char chars, int off, int len, TextWriter _out ) : void
ReplaceFirst ( string text, TextWriter _out ) : void
Replacer ( Pattern pattern, Substitution substitution ) : System
Replacer ( Pattern pattern, string substitution ) : System
Replacer ( Pattern pattern, string substitution, bool isPerlExpr ) : System
Wrap ( StringBuilder sb ) : TextBuffer
Wrap ( TextWriter writer ) : TextBuffer
setSubstitution ( string s, bool isPerlExpr ) : void

Method Details

Replace() public method

public Replace ( MatchResult res, int group, StringBuilder sb ) : int
res MatchResult
group int
sb StringBuilder
return int

Replace() public method

public Replace ( MatchResult res, int group, TextBuffer dest ) : int
res MatchResult
group int
dest TextBuffer
return int

Replace() public method

public Replace ( MatchResult res, string groupName, StringBuilder sb ) : int
res MatchResult
groupName string
sb StringBuilder
return int

Replace() public method

public Replace ( MatchResult res, string groupName, TextBuffer dest ) : int
res MatchResult
groupName string
dest TextBuffer
return int

Replace() public static method

public static Replace ( Matcher m, Substitution substitution, TextBuffer dest ) : int
m Matcher
substitution Substitution
dest TextBuffer
return int

Replace() public static method

public static Replace ( Matcher m, Substitution substitution, TextWriter _out ) : int
m Matcher
substitution Substitution
_out System.IO.TextWriter
return int

Replace() public method

public Replace ( TextReader text, int length, StringBuilder sb ) : int
text TextReader
length int
sb StringBuilder
return int

Replace() public method

public Replace ( TextReader text, int length, TextBuffer dest ) : int
text TextReader
length int
dest TextBuffer
return int

Replace() public method

public Replace ( char chars, int off, int len, StringBuilder sb ) : int
chars char
off int
len int
sb StringBuilder
return int

Replace() public method

public Replace ( char chars, int off, int len, TextBuffer dest ) : int
chars char
off int
len int
dest TextBuffer
return int

Replace() public method

public Replace ( string text, StringBuilder sb ) : int
text string
sb StringBuilder
return int

Replace() public method

public Replace ( string text, TextBuffer dest ) : int
text string
dest TextBuffer
return int

Replace() public method

public Replace ( MatchResult res, int group ) : string
res MatchResult
group int
return string

Replace() public method

public Replace ( TextReader text, int length ) : string
text TextReader
length int
return string

Replace() public method

public Replace ( char chars, int off, int len ) : string
chars char
off int
len int
return string

Replace() public method

public Replace ( string text ) : string
text string
return string

Replace() public method

public Replace ( MatchResult res, int group, TextWriter _out ) : void
res MatchResult
group int
_out System.IO.TextWriter
return void

Replace() public method

public Replace ( MatchResult res, string groupName, TextWriter _out ) : void
res MatchResult
groupName string
_out System.IO.TextWriter
return void

Replace() public method

public Replace ( TextReader _in, int length, TextWriter _out ) : void
_in TextReader
length int
_out System.IO.TextWriter
return void

Replace() public method

public Replace ( char chars, int off, int len, TextWriter _out ) : void
chars char
off int
len int
_out System.IO.TextWriter
return void

Replace() public method

public Replace ( string text, TextWriter _out ) : void
text string
_out System.IO.TextWriter
return void

ReplaceFirst() public method

public ReplaceFirst ( MatchResult res, int group, StringBuilder sb ) : int
res MatchResult
group int
sb StringBuilder
return int

ReplaceFirst() public method

public ReplaceFirst ( MatchResult res, int group, TextBuffer dest ) : int
res MatchResult
group int
dest TextBuffer
return int

ReplaceFirst() public method

public ReplaceFirst ( MatchResult res, string groupName, StringBuilder sb ) : int
res MatchResult
groupName string
sb StringBuilder
return int

ReplaceFirst() public method

public ReplaceFirst ( MatchResult res, string groupName, TextBuffer dest ) : int
res MatchResult
groupName string
dest TextBuffer
return int

ReplaceFirst() public static method

public static ReplaceFirst ( Matcher m, Substitution substitution, TextBuffer dest ) : int
m Matcher
substitution Substitution
dest TextBuffer
return int

ReplaceFirst() public static method

public static ReplaceFirst ( Matcher m, Substitution substitution, TextWriter _out ) : int
m Matcher
substitution Substitution
_out System.IO.TextWriter
return int

ReplaceFirst() public method

public ReplaceFirst ( TextReader text, int length, StringBuilder sb ) : int
text TextReader
length int
sb StringBuilder
return int

ReplaceFirst() public method

public ReplaceFirst ( TextReader text, int length, TextBuffer dest ) : int
text TextReader
length int
dest TextBuffer
return int

ReplaceFirst() public method

public ReplaceFirst ( char chars, int off, int len, StringBuilder sb ) : int
chars char
off int
len int
sb StringBuilder
return int

ReplaceFirst() public method

public ReplaceFirst ( char chars, int off, int len, TextBuffer dest ) : int
chars char
off int
len int
dest TextBuffer
return int

ReplaceFirst() public method

public ReplaceFirst ( string text, StringBuilder sb ) : int
text string
sb StringBuilder
return int

ReplaceFirst() public method

public ReplaceFirst ( string text, TextBuffer dest ) : int
text string
dest TextBuffer
return int

ReplaceFirst() public method

public ReplaceFirst ( MatchResult res, int group ) : string
res MatchResult
group int
return string

ReplaceFirst() public method

public ReplaceFirst ( TextReader text, int length ) : string
text TextReader
length int
return string

ReplaceFirst() public method

public ReplaceFirst ( char chars, int off, int len ) : string
chars char
off int
len int
return string

ReplaceFirst() public method

public ReplaceFirst ( string text ) : string
text string
return string

ReplaceFirst() public method

public ReplaceFirst ( MatchResult res, int group, TextWriter _out ) : void
res MatchResult
group int
_out System.IO.TextWriter
return void

ReplaceFirst() public method

public ReplaceFirst ( MatchResult res, string groupName, TextWriter _out ) : void
res MatchResult
groupName string
_out System.IO.TextWriter
return void

ReplaceFirst() public method

public ReplaceFirst ( TextReader _in, int length, TextWriter _out ) : void
_in TextReader
length int
_out System.IO.TextWriter
return void

ReplaceFirst() public method

public ReplaceFirst ( char chars, int off, int len, TextWriter _out ) : void
chars char
off int
len int
_out System.IO.TextWriter
return void

ReplaceFirst() public method

public ReplaceFirst ( string text, TextWriter _out ) : void
text string
_out System.IO.TextWriter
return void

Replacer() public method

public Replacer ( Pattern pattern, Substitution substitution ) : System
pattern Pattern
substitution Substitution
return System

Replacer() public method

public Replacer ( Pattern pattern, string substitution ) : System
pattern Pattern
substitution string
return System

Replacer() public method

public Replacer ( Pattern pattern, string substitution, bool isPerlExpr ) : System
pattern Pattern
substitution string
isPerlExpr bool
return System

Wrap() public static method

public static Wrap ( StringBuilder sb ) : TextBuffer
sb StringBuilder
return TextBuffer

Wrap() public static method

public static Wrap ( TextWriter writer ) : TextBuffer
writer System.IO.TextWriter
return TextBuffer

setSubstitution() public method

public setSubstitution ( string s, bool isPerlExpr ) : void
s string
isPerlExpr bool
return void