The following tables list the members exposed by StringUtils.
Name | Description | |
---|---|---|
AlphaNumericOnly | returns a new string containing only the alpha-numeric characters in the original | |
SafeFileName | Parses the text to ensure that it is a valid file name and returns the resulting string with the following offending characters replace with '-': /\:*?"'<>| Also removes any characters class as control characters, or anything below 32 space, this would include tab, backspace, newline, linefeed, etc. If provided null, this function returns null | |
SafeFilePath | Splits the string on path characters ('/' and '\\') and passes each to SafeFileName(), then reconstructs the string using '\\' and removing any empty segments. If provided null, this function returns null, provided an empty string or just a path seperator '/' it will return String.Empty | |
ToString | Overloaded. Converts primitives to strings so that they can be reconstituted via TryParse | |
Transform | Used for text-template transformation where a regex match is replaced in the input string. | |
TryParse | Overloaded. Reconstructs a type from a string that was previously obtained via StringUtils.ToString(T data) |