Class StringUtilities
Inheritance
System.Object
StringUtilities
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.Core.dll
public static class StringUtilities
Methods
Declaration
public static StringUtilities.Casing DetermineCasing(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
Declaration
public static bool EndsWithAny(string s, char[] characterList)
Parameters
Type |
Name |
Description |
System.String |
s |
|
System.Char[] |
characterList |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static string EscapeString(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string EscapeString(string s, string charactersToEscape)
Parameters
Type |
Name |
Description |
System.String |
s |
|
System.String |
charactersToEscape |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string GenerateRandomWord(int length, bool initialUpper)
Parameters
Type |
Name |
Description |
System.Int32 |
length |
|
System.Boolean |
initialUpper |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static int GetPrefixLength(string s, char[] prefixChars)
Parameters
Type |
Name |
Description |
System.String |
s |
|
System.Char[] |
prefixChars |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public static int GetSuffixLength(string s, char[] suffixChars)
Parameters
Type |
Name |
Description |
System.String |
s |
|
System.Char[] |
suffixChars |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public static string HalfWidthToFullWidth(string input)
Parameters
Type |
Name |
Description |
System.String |
input |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string HalfWidthToFullWidth2(string input)
Parameters
Type |
Name |
Description |
System.String |
input |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static bool IsAllWhitespace(string t)
Parameters
Type |
Name |
Description |
System.String |
t |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static string MergeStrings(string a, string b)
Parameters
Type |
Name |
Description |
System.String |
a |
|
System.String |
b |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string RemoveAll(string s, Predicate<char> property)
Parameters
Type |
Name |
Description |
System.String |
s |
|
System.Predicate<System.Char> |
property |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static bool StartWithAny(string s, char[] characterList)
Parameters
Type |
Name |
Description |
System.String |
s |
|
System.Char[] |
characterList |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static string TrimEnd(string s, char[] trimCharacters, out string trimmedSuffix)
Parameters
Type |
Name |
Description |
System.String |
s |
|
System.Char[] |
trimCharacters |
|
System.String |
trimmedSuffix |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string TrimStart(string s, char[] trimCharacters, out string trimmedPrefix)
Parameters
Type |
Name |
Description |
System.String |
s |
|
System.Char[] |
trimCharacters |
|
System.String |
trimmedPrefix |
|
Returns
Type |
Description |
System.String |
|