StringUtils Class
| Namespace | Skybrud.Essentials.Strings | 
|---|---|
| Assembly | Skybrud.Essentials.dll | 
| Visibility | Public | 
| Keywords | Static | 
| Inheritance | Object | 
Utility class with various static helper methods for working with strings.
public static class StringUtils { }
Methods
| 
                CsvToInt(string)
                    (static)
             Converts a comma separated string into an array of integers. | 
| 
                FirstCharToUpper(string)
                    (static)
             Uppercases the first character of a the specified  | 
| Highlights specified  | 
| Highlights specified  | 
| 
                HtmlDecode(string)
                    (static)
             HTML decodes the specified  | 
| 
                HtmlEncode(string)
                    (static)
             HTML encodes the specified  | 
| 
                IsAlphabetic(string)
                    (static)
             Returns whether the specified  | 
| 
                IsAlphanumeric(string)
                    (static)
             Gets whether the specified string is alphanumeric - meaning it only consists of numbers and letters. | 
| 
                IsDouble(string)
                    (static)
             Gets whether the string matches a double (Double ). | 
| 
                IsFloat(string)
                    (static)
             Gets whether the string matches an integer (Single ). | 
| 
                IsGuid(string)
                    (static)
             Gets whether the string matches a GUID (Guid ). | 
| 
                IsInt32(string)
                    (static)
             Gets whether the string matches an integer (int ). | 
| 
                IsInt64(string)
                    (static)
             Gets whether the string matches a long (long ). | 
| 
                IsNumeric(string)
                    (static)
             Alias of  | 
| 
                Levenshtein(string, string)
                    (static)
             Computes the Levenshtein distance between two strings. The Levenshtein distance is defined as the minimal number of characters you have to replace, insert or delete to transform  | 
| 
                ParseBoolean(string)
                    (static)
             Parses the specified  | 
| 
                ParseBoolean(string, bool)
                    (static)
             Parses the specified  | 
| 
                ParseBoolean(object)
                    (static)
             Parses the specified  | 
| 
                ParseBoolean(object, bool)
                    (static)
             Parses the specified  | 
| 
                ParseDouble(string)
                    (static)
             Parses the specified  | 
| 
                ParseDouble(string, double)
                    (static)
             Parses the specified  | 
| 
                ParseDoubleArray(string)
                    (static)
             Parses a string of integer values into an array of Double . Supported separators are
 | 
| 
                ParseDoubleArray(string, Char[])
                    (static)
             Parses a string of double values into an array of Double . Values in the list that can't be converted to Double will be ignored. | 
| 
                ParseFloat(string)
                    (static)
             Parses the specified  | 
| 
                ParseFloat(string, int)
                    (static)
             Parses the specified  | 
| 
                ParseFloat(string, float)
                    (static)
             Parses the specified  | 
| 
                ParseFloatArray(string)
                    (static)
             Parses a string of float values into an array of Single . Supported separators are
 | 
| 
                ParseFloatArray(string, Char[])
                    (static)
             Parses a string of float values into an array of Single . Values in the list that can't be converted to Single will be ignored. | 
| 
                ParseGuid(string)
                    (static)
             Parses the specified  | 
| 
                ParseGuid(string, Guid)
                    (static)
             Parses the specified  | 
| 
                ParseGuidArray(string)
                    (static)
             Parses a string of multiple GUIDs into an array of Guid . Supported separators are
comma ( Values in  | 
| 
                ParseGuidArray(string, Char[])
                    (static)
             Parses string of multiple GUIDs into an array of Guid , using the specified array of
 Values in  | 
| 
                ParseInt32(string)
                    (static)
             Parses the specified  | 
| 
                ParseInt32(string, int)
                    (static)
             Parses the specified  | 
| 
                ParseInt32Array(string)
                    (static)
             Parses a string of integer values into an array of int . Supported separators are
 | 
| 
                ParseInt32Array(string, Char[])
                    (static)
             Parses a string of integer values into an array of int . Values in the list that can't be converted to int will be ignored. | 
| 
                ParseInt64(string)
                    (static)
             Parses the specified  | 
| 
                ParseInt64(string, long)
                    (static)
             Parses the specified  | 
| 
                ParseInt64Array(string)
                    (static)
             Parses a string of numeric values into an array of long . Supported separators are
 | 
| 
                ParseInt64Array(string, Char[])
                    (static)
             Parses a string of numeric values into an array of long . Values in the list that can't be converted to long will be ignored. | 
| 
                ParseStringArray(string)
                    (static)
             Parses string of multiple values into an array of String . Supported separators are
comma ( Empty entries are automatically removed from the output array. | 
| 
                ParseStringArray(string, Char[])
                    (static)
             Parses string of multiple values into an array of String , using the specified array of
 Empty entries are automatically removed from the output array. | 
| 
                ReplaceLineBreaks(string)
                    (static)
             HTML encodes the text and replaces text line breaks with HTML line breaks. | 
| 
                StripHtml(string)
                    (static)
             Strips all HTML elements from the specified  | 
| 
                StripHtml(string, String[])
                    (static)
             Strips all HTML elements from the specified  | 
| 
                ToCamelCase(string)
                    (static)
             Converts the specified  | 
| 
                ToCamelCase(Enum)
                    (static)
             Converts the name of the specified enum  | 
| 
                ToCasing(Enum, TextCasing)
                    (static)
             Converts the specified enum  | 
| 
                ToCasing(string, TextCasing)
                    (static)
             Converts the specified  | 
| 
                ToKebabCase(string)
                    (static)
             Converts the specified  | 
| 
                ToKebabCase(Enum)
                    (static)
             Converts the name of the specified enum  | 
| 
                ToLower(Enum)
                    (static)
             Converts the specified enum  | 
| 
                ToPascalCase(string)
                    (static)
             Converts the specified  | 
| 
                ToPascalCase(Enum)
                    (static)
             Converts the name of the specified enum  | 
| 
                ToPlural(string)
                    (static)
             Converts a singular word to the plural counterpart (for English words only). | 
| 
                ToSingular(string)
                    (static)
             Converts a plural word to the singular counterpart (for English words only). | 
| 
                ToTrainCase(string)
                    (static)
             Converts the specified  | 
| 
                ToTrainCase(Enum)
                    (static)
             Converts the name of the specified enum  | 
| 
                ToUnderscore(string)
                    (static)
             Converts the specified  | 
| 
                ToUnderscore(Enum)
                    (static)
             Converts the specified enum  | 
| 
                ToUpper(Enum)
                    (static)
             Converts the specified enum  | 
| 
                TryParseBoolean(string, out bool)
                    (static)
             Tries to convert the specified string representation of a logical value to its bool equivalent. | 
| 
                UrlDecode(string)
                    (static)
             URL decodes a URL string. | 
| 
                UrlEncode(string)
                    (static)
             URL encodes the specified  | 
| 
                WordCount(string)
                    (static)
             Counts number of words in the specified  | 
