| StringUtilities Class |
Namespace: Sdl.LanguagePlatform.Core
The StringUtilities type exposes the following members.
| Name | Description | |
|---|---|---|
| DetermineCasing |
Determines the casing as in StringUtilitiesCasing for the input string. Casing.Mixed will be
returned for the empty string.
| |
| EndsWithAny |
Returns true if the string s ends with any
of the characters in characterList, and false
otherwise.
| |
| EscapeString(String) |
Escapes all double quotes and backslashes in a string.
| |
| EscapeString(String, String) |
Escapes special characters in a string, prefixing them with a backslash.
| |
| GenerateRandomWord |
Generates a string which consists of random letters in the range [a-z] with the
specified length.
| |
| GetPrefixLength |
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.
| |
| GetSuffixLength |
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.
| |
| HalfWidthToFullWidth |
Converts single byte string to double byte string
| |
| IsAllWhitespace |
Returns true if t contains only whitespace characters (IsWhitespace(Char)),
and false otherwise.
| |
| MergeStrings |
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.
| |
| RemoveAll |
Computes a copy of s in which all characters which
satisfy property are removed.
| |
| StartWithAny |
Returns true if the string s starts with any
of the characters in characterList, and false
otherwise.
| |
| TrimEnd |
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.
| |
| TrimStart |
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.
|