Click or drag to resize
StringUtilities Methods

The StringUtilities type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDetermineCasing
Determines the casing as in StringUtilitiesCasing for the input string. Casing.Mixed will be returned for the empty string.
Public methodStatic memberEndsWithAny
Returns true if the string s ends with any of the characters in characterList, and false otherwise.
Public methodStatic memberEscapeString(String)
Escapes all double quotes and backslashes in a string.
Public methodStatic memberEscapeString(String, String)
Escapes special characters in a string, prefixing them with a backslash.
Public methodStatic memberGenerateRandomWord
Generates a string which consists of random letters in the range [a-z] with the specified length.
Public methodStatic memberGetPrefixLength
Computes the length of the prefix of s which entirely consists of characters in prefixChars. If either of the parameters is null or empty, 0 is returned.
Public methodStatic memberGetSuffixLength
Computes the length of the suffix of s which entirely consists of characters in suffixChars. If either of the parameters is null or empty, 0 is returned.
Public methodStatic memberHalfWidthToFullWidth
Converts single byte string to double byte string
Public methodStatic memberIsAllWhitespace
Returns true if t contains only whitespace characters (IsWhitespace(Char)), and false otherwise.
Public methodStatic memberMergeStrings
Appends each individual charater of b to a, if it is not already present, and returns the result. If a already contains duplicates, they are kept.
Public methodStatic memberRemoveAll
Computes a copy of s in which all characters which satisfy property are removed.
Public methodStatic memberStartWithAny
Returns true if the string s starts with any of the characters in characterList, and false otherwise.
Public methodStatic memberTrimEnd
Trims off any character contained in the trimCharacters from the end of the specified string s, and returns the remainder, as well as the trimmed-off suffix in trimmedSuffix. If either s or trimCharacters are null or empty, the result will be equal to sand trimmedSuffix will be null.
Public methodStatic memberTrimStart
Trims off any character contained in the trimCharacters from the start of the specified string s, and returns the remainder, as well as the trimmed-off prefix in trimmedPrefix. If either s or trimCharacters are null or empty, the result will be equal to sand trimmedPrefix will be null.
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments