CSharpTest.Net
StringUtils Class Members
See Also  Methods  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Utils Namespace : StringUtils Class


Glossary Item Box

The following tables list the members exposed by StringUtils.

Public Methods

 NameDescription
Public Methodstatic (Shared in Visual Basic)AlphaNumericOnlyreturns a new string containing only the alpha-numeric characters in the original  
Public Methodstatic (Shared in Visual Basic)SafeFileNameParses 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  
Public Methodstatic (Shared in Visual Basic)SafeFilePathSplits 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  
Public Methodstatic (Shared in Visual Basic)ToStringOverloaded. Converts primitives to strings so that they can be reconstituted via TryParse  
Public Methodstatic (Shared in Visual Basic)TransformUsed for text-template transformation where a regex match is replaced in the input string.  
Public Methodstatic (Shared in Visual Basic)TryParseOverloaded. Reconstructs a type from a string that was previously obtained via StringUtils.ToString(T data)  
Top

See Also

Generated with Document! X 2011 by Innovasys