Method | Description | |
---|---|---|
RemoveExcessWhitespace ( this value ) : string |
Reduces all consecutive spaces and tabs to one space.
|
|
Replace ( this str, string oldValue, string newValue, System.StringComparison comparison ) : string | ||
SafeContains ( this value, char needle ) : bool |
Checks for value contained within a string, outside of '' and ""
|
|
SafeContains ( this value, string needle ) : bool |
Checks for value contained within a string, outside of '' and ""
|
|
SafeIndexOf ( this value, char needle ) : int | ||
SafeIndexOf ( this value, char needle, int index ) : int | ||
SafeIndexOf ( this value, string needle ) : 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 |
Trims comments from the end of a line. Uses ';' as the comment delimiter.
|
|
Unescape ( this value ) : string |
public static RemoveExcessWhitespace ( this value ) : string | ||
value | this | |
return | string |
public static Replace ( this str, string oldValue, string newValue, System.StringComparison comparison ) : string | ||
str | this | |
oldValue | string | |
newValue | string | |
comparison | System.StringComparison | |
return | string |
public static SafeContains ( this value, char needle ) : bool | ||
value | this | |
needle | char | |
return | bool |
public static SafeContains ( this value, string needle ) : bool | ||
value | this | |
needle | string | |
return | bool |
public static SafeIndexOf ( this value, char needle ) : int | ||
value | this | |
needle | char | |
return | int |
public static SafeIndexOf ( this value, char needle, int index ) : int | ||
value | this | |
needle | char | |
index | int | |
return | int |
public static SafeIndexOf ( this value, string needle ) : int | ||
value | this | |
needle | string | |
return | int |
public static SafeSplit ( this value ) : string[] | ||
value | this | |
return | string[] |
public static TrimComments ( this value ) : string | ||
value | this | |
return | string |
public static Unescape ( this value ) : string | ||
value | this | |
return | string |