C# Class CubeIsland.LyricsReloaded.Provider.Loader.Pattern

显示文件 Open project: pschichtel/LyricsReloaded

Public Methods

Method Description
Pattern ( Regex regex ) : System
Pattern ( string regex, string options ) : System
ToString ( ) : string
apply ( string content ) : String
fromYamlNode ( YamlNode node ) : Pattern
regexFromYamlNode ( YamlNode node, RegexOptions options ) : Regex
regexOptionsFromString ( string optionString ) : RegexOptions

Method Details

Pattern() public method

public Pattern ( Regex regex ) : System
regex System.Text.RegularExpressions.Regex
return System

Pattern() public method

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

ToString() public method

public ToString ( ) : string
return string

apply() public method

public apply ( string content ) : String
content string
return String

fromYamlNode() public static method

public static fromYamlNode ( YamlNode node ) : Pattern
node YamlDotNet.RepresentationModel.YamlNode
return Pattern

regexFromYamlNode() public static method

public static regexFromYamlNode ( YamlNode node, RegexOptions options ) : Regex
node YamlDotNet.RepresentationModel.YamlNode
options RegexOptions
return System.Text.RegularExpressions.Regex

regexOptionsFromString() public static method

public static regexOptionsFromString ( string optionString ) : RegexOptions
optionString string
return RegexOptions