C# Class RTSEngine.Data.Parsers.RegexHelper

Datei anzeigen Open project: RegrowthStudios/VoxelRTS

Public Methods

Method Description
Extract ( Match m ) : string
ExtractDirectory ( Match m ) : DirectoryInfo
ExtractDirectory ( Match m, string root ) : DirectoryInfo
ExtractDouble ( Match m ) : double
ExtractFile ( Match m ) : FileInfo
ExtractFile ( Match m, string root ) : FileInfo
ExtractFloat ( Match m ) : float
ExtractInt ( Match m ) : int
ExtractLong ( Match m ) : long
ExtractVec2 ( Match m ) : Vector2
ExtractVec2I ( Match m ) : int[]
ExtractVec3 ( Match m ) : Vector3
ExtractVec3I ( Match m ) : int[]
ExtractVec4 ( Match m ) : Vector4
ExtractVec4I ( Match m ) : int[]
FindMatches ( string mStr ) : System.Text.RegularExpressions.Match[]
Generate ( string key, string data ) : Regex
GenerateFile ( string key ) : Regex
GenerateInteger ( string key ) : Regex
GenerateNumber ( string key ) : Regex
GenerateString ( string key ) : Regex
GenerateVec2 ( string key ) : Regex
GenerateVec2Int ( string key ) : Regex
GenerateVec3 ( string key ) : Regex
GenerateVec3Int ( string key ) : Regex
GenerateVec4 ( string key ) : Regex
GenerateVec4Int ( string key ) : Regex
ReadFile ( FileInfo f ) : string
ReadFile ( string f ) : string

Method Details

Extract() public static method

public static Extract ( Match m ) : string
m System.Text.RegularExpressions.Match
return string

ExtractDirectory() public static method

public static ExtractDirectory ( Match m ) : DirectoryInfo
m System.Text.RegularExpressions.Match
return System.IO.DirectoryInfo

ExtractDirectory() public static method

public static ExtractDirectory ( Match m, string root ) : DirectoryInfo
m System.Text.RegularExpressions.Match
root string
return System.IO.DirectoryInfo

ExtractDouble() public static method

public static ExtractDouble ( Match m ) : double
m System.Text.RegularExpressions.Match
return double

ExtractFile() public static method

public static ExtractFile ( Match m ) : FileInfo
m System.Text.RegularExpressions.Match
return System.IO.FileInfo

ExtractFile() public static method

public static ExtractFile ( Match m, string root ) : FileInfo
m System.Text.RegularExpressions.Match
root string
return System.IO.FileInfo

ExtractFloat() public static method

public static ExtractFloat ( Match m ) : float
m System.Text.RegularExpressions.Match
return float

ExtractInt() public static method

public static ExtractInt ( Match m ) : int
m System.Text.RegularExpressions.Match
return int

ExtractLong() public static method

public static ExtractLong ( Match m ) : long
m System.Text.RegularExpressions.Match
return long

ExtractVec2() public static method

public static ExtractVec2 ( Match m ) : Vector2
m System.Text.RegularExpressions.Match
return Vector2

ExtractVec2I() public static method

public static ExtractVec2I ( Match m ) : int[]
m System.Text.RegularExpressions.Match
return int[]

ExtractVec3() public static method

public static ExtractVec3 ( Match m ) : Vector3
m System.Text.RegularExpressions.Match
return Vector3

ExtractVec3I() public static method

public static ExtractVec3I ( Match m ) : int[]
m System.Text.RegularExpressions.Match
return int[]

ExtractVec4() public static method

public static ExtractVec4 ( Match m ) : Vector4
m System.Text.RegularExpressions.Match
return Vector4

ExtractVec4I() public static method

public static ExtractVec4I ( Match m ) : int[]
m System.Text.RegularExpressions.Match
return int[]

FindMatches() public static method

public static FindMatches ( string mStr ) : System.Text.RegularExpressions.Match[]
mStr string
return System.Text.RegularExpressions.Match[]

Generate() public static method

public static Generate ( string key, string data ) : Regex
key string
data string
return System.Text.RegularExpressions.Regex

GenerateFile() public static method

public static GenerateFile ( string key ) : Regex
key string
return System.Text.RegularExpressions.Regex

GenerateInteger() public static method

public static GenerateInteger ( string key ) : Regex
key string
return System.Text.RegularExpressions.Regex

GenerateNumber() public static method

public static GenerateNumber ( string key ) : Regex
key string
return System.Text.RegularExpressions.Regex

GenerateString() public static method

public static GenerateString ( string key ) : Regex
key string
return System.Text.RegularExpressions.Regex

GenerateVec2() public static method

public static GenerateVec2 ( string key ) : Regex
key string
return System.Text.RegularExpressions.Regex

GenerateVec2Int() public static method

public static GenerateVec2Int ( string key ) : Regex
key string
return System.Text.RegularExpressions.Regex

GenerateVec3() public static method

public static GenerateVec3 ( string key ) : Regex
key string
return System.Text.RegularExpressions.Regex

GenerateVec3Int() public static method

public static GenerateVec3Int ( string key ) : Regex
key string
return System.Text.RegularExpressions.Regex

GenerateVec4() public static method

public static GenerateVec4 ( string key ) : Regex
key string
return System.Text.RegularExpressions.Regex

GenerateVec4Int() public static method

public static GenerateVec4Int ( string key ) : Regex
key string
return System.Text.RegularExpressions.Regex

ReadFile() public static method

public static ReadFile ( FileInfo f ) : string
f System.IO.FileInfo
return string

ReadFile() public static method

public static ReadFile ( string f ) : string
f string
return string