C# Class GuidGen.Formats.BaseGuidSearchFormat

Inheritance: BaseGuidFormat, IGuidSearcher
Exibir arquivo Open project: michaelmcdaniel/GuidgenConsole

Public Methods

Method Description
Find ( string s, int line = -1 ) : IEnumerable
IsMatch ( string s ) : bool

Matches given string against matching format. If no pattern exists, return false.

Replace ( string input, Guider guider, IGuidFormatter formatter = null, bool upcase = false, Action onReplacement = null, int lineNumber = -1 ) : string
TryParse ( string s, System.Guid &guid ) : bool

Protected Methods

Method Description
MatchToGuid ( Match m ) : System.Guid
Replace ( string line, int offset, System m, System.Guid input, System.Guid output, bool upcase ) : string

Method Details

Find() public method

public Find ( string s, int line = -1 ) : IEnumerable
s string
line int
return IEnumerable

IsMatch() public method

Matches given string against matching format. If no pattern exists, return false.
public IsMatch ( string s ) : bool
s string string to match against
return bool

MatchToGuid() protected method

protected MatchToGuid ( Match m ) : System.Guid
m System.Text.RegularExpressions.Match
return System.Guid

Replace() public method

public Replace ( string input, Guider guider, IGuidFormatter formatter = null, bool upcase = false, Action onReplacement = null, int lineNumber = -1 ) : string
input string
guider Guider
formatter IGuidFormatter
upcase bool
onReplacement Action
lineNumber int
return string

Replace() protected method

protected Replace ( string line, int offset, System m, System.Guid input, System.Guid output, bool upcase ) : string
line string
offset int
m System
input System.Guid
output System.Guid
upcase bool
return string

TryParse() public method

public TryParse ( string s, System.Guid &guid ) : bool
s string
guid System.Guid
return bool