Method | Description | |
---|---|---|
ContainsKey ( this value, string key ) : bool | ||
GetValue ( this value, string key ) : ushort | ||
SafeContains ( this value, char needle ) : bool | ||
SafeIndexOf ( this value, char needle ) : int | ||
SafeIndexOf ( this value, char needle, int startIndex ) : int | ||
SafeIndexOfParenthesis ( this value, char needle ) : int | ||
SafeIndexOfParenthesis ( this value, char needle, int startIndex ) : int | ||
SafeSplit ( this value ) : string[] |
Works the same as String.Split, but will not split if the requested characters are within a character or string literal.
|
|
TrimComments ( this value ) : string |
Given a string, such as "SET A, B ; test", it removes all comments from that string.
|
|
TrimExcessWhitespace ( this value ) : string |
Removes unneccissary whitespace from a line of code.
|
|
Unescape ( this value ) : string |
Given a string with escaped characters, this will return the unescaped version. Example: "Test\\nstring" becomes "Test\nstring"
|
public static ContainsKey ( this value, string key ) : bool | ||
value | this | |
key | string | |
return | bool |
public static GetValue ( this value, string key ) : ushort | ||
value | this | |
key | string | |
return | ushort |
public static SafeContains ( this value, char needle ) : bool | ||
value | this | |
needle | char | |
return | bool |
public static SafeIndexOf ( this value, char needle ) : int | ||
value | this | |
needle | char | |
return | int |
public static SafeIndexOf ( this value, char needle, int startIndex ) : int | ||
value | this | |
needle | char | |
startIndex | int | |
return | int |
public static SafeIndexOfParenthesis ( this value, char needle ) : int | ||
value | this | |
needle | char | |
return | int |
public static SafeIndexOfParenthesis ( this value, char needle, int startIndex ) : int | ||
value | this | |
needle | char | |
startIndex | int | |
return | int |
public static SafeSplit ( this value ) : string[] | ||
value | this | |
return | string[] |
public static TrimComments ( this value ) : string | ||
value | this | |
return | string |
public static TrimExcessWhitespace ( this value ) : string | ||
value | this | |
return | string |
public static Unescape ( this value ) : string | ||
value | this | |
return | string |