The StringExtension type exposes the following members.
Methods
Name | Description | |
---|---|---|
ConvertToEncoding(String, String, String) |
Converts text from one encoding to another - must be used with Ajax since it doesn't support encodings other than utf-8.
|
|
ConvertToEncoding(String, Encoding, Encoding) |
Converts text from one encoding to another - must be used with Ajax since it doesn't support encodings other than utf-8.
|
|
FormatWith(String, Object) |
Named format string extension method - instead of string.Format("{0} first, {1} second", 3.14, DateTime.Now) the following can be used:
string.Format("{pi} first, {date} second", someObj)
Formats such as {foo.bar.baz} where baz is a property of bar which is a property of foo are also allowed.
|
|
FormatWith(String, IFormatProvider, Object) |
Named format string extension method - instead of string.Format("{0} first, {1} second", 3.14, DateTime.Now) the following can be used:
string.Format("{pi} first, {date} second", someObj)
Formats such as {foo.bar.baz} where baz is a property of bar which is a property of foo are also allowed.
|
|
FormatWith(String, IFormatProvider, Object, String) |
Named format string extension method - instead of string.Format("{0} first, {1} second", 3.14, DateTime.Now) the following can be used:
string.Format("{pi} first, {date} second", someObj)
Formats such as {foo.bar.baz} where baz is a property of bar which is a property of foo are also allowed.
|
|
FormatWith(String, IFormatProvider, Object, String, Boolean) |
Named format string extension method - instead of string.Format("{0} first, {1} second", 3.14, DateTime.Now) the following can be used:
string.Format("{pi} first, {date} second", someObj)
Formats such as {foo.bar.baz} where baz is a property of bar which is a property of foo are also allowed.
|
|
FormatWith(String, IFormatProvider, Object, String, Char, Char) |
Named format string extension method - instead of string.Format("{0} first, {1} second", 3.14, DateTime.Now) the following can be used:
string.Format("{pi} first, {date} second", someObj)
Formats such as {foo.bar.baz} where baz is a property of bar which is a property of foo are also allowed.
|
|
FormatWith(String, IFormatProvider, Object, String, Char, Char, Boolean) |
Named format string extension method - instead of string.Format("{0} first, {1} second", 3.14, DateTime.Now) the following can be used:
string.Format("{pi} first, {date} second", someObj)
Formats such as {foo.bar.baz} where baz is a property of bar which is a property of foo are also allowed.
|
|
GetPhrases |
Gets the phrases from the provided text.
|
|
Match(String, String) |
Returns true if the string matches the pattern which may contain * and ? wildcards.
Matching is done without regard to case.
|
|
Match(String, String, Boolean) |
Returns true if the string matches the pattern which may contain * and ? wildcards.
|
|
Replace |
Performs advanced string replace (including StringComparison for case insensitive or invariant culture replace).
|
|
Split |
Gets a list of items from a specified string that are splited by a separator term.
|
|
ToTrimmedWordString |
Trims a string to the specified length without breaking words and with applying auto ellipsis character (...) at the end of a trimmed string.
|
|
ToUserFriendlyString |
Returns nicely formatted string from a Pascal cased string (used for database field names, etc.).
|