Extensions of
string
.
- Namespace
- Songhay
.Extensions - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["StringExtensions"]
class Type type-node
Syntax
public static class StringExtensions
Methods
Name | Return Value | Summary |
---|---|---|
CsvSplit |
string[] |
Splits CSV text format into an array of
string .
static
|
EqualsInvariant |
bool |
Returns
true when the strings are equal without regard to cultural locales.
static
|
EqualsInvariant |
bool |
Returns
true when the strings are equal without regard to cultural locales
or casing.
static
|
EscapeInterpolation |
string |
Escapes the interpolation tokens of
System.String.Format(System.String,System.Object[]) .
static
|
From |
IEnumerable |
Converts camel-case
string to IEnumerable<T> .
static
|
FromSnakeToCaps |
string |
Replaces “snake” underscores with caps of first
char
after the underscore.
static
|
In |
bool |
Determines whether the specified input is in the delimited values.
static
|
In |
bool |
Determines whether the specified input is in the comma-delimited values.
static
|
InDoubleQuotes |
string |
Returns
string in double quotes.
static
|
In |
string |
Returns
string in double quotes or default.
static
|
Insert |
IEnumerable |
Inserts the spaces before caps.
static
|
IsByte |
bool |
Determines whether the specified input is byte.
static
|
IsByte |
bool |
Determines whether the specified input is byte.
static
|
IsDecimal |
bool |
Determines whether the specified input is decimal.
static
|
IsDecimal |
bool |
Determines whether the specified input is decimal.
static
|
IsInteger |
bool |
Determines whether the specified input is integer.
static
|
IsInteger |
bool |
Determines whether the specified input is integer.
static
|
IsLong |
bool |
Determines whether the specified input is long.
static
|
IsLong |
bool |
Determines whether the specified input is long.
static
|
IsTelephoneNumber |
bool |
Determines whether the specified input is a telephone number.
static
|
IsUnc |
bool |
Determines whether the specified input is a UNC.
static
|
Looks |
bool |
Determines whether the specified input looks like an email address.
static
|
RemoveDiacritics |
string |
Remove accent from strings
static
|
Reverse |
string |
Reverse the string
from http://en.wikipedia.org/wiki/Extension_method
static
|
To |
string |
Converts the
String into ASCII letters with spacer.
static
|
To |
string |
Converts the
String into a ASCII letters with spacer \0 .
static
|
ToBlogSlug |
string |
Converts the
String into a blog slug.
static
|
ToCamelCase |
string |
Converts the
String into camel case
by lower-casing the first character.
static
|
ToDigitsOnly |
string |
Converts the
String into digits only.
static
|
ToIntString |
string |
Prepares a string to be converted to
int .
static
|
ToIntString |
string |
Prepares a string to be converted to
int .
static
|
To |
int |
Returns the number of directory levels
based on the conventions
../ or ..\ .
static
|
ToNumericString |
string |
Converts the
string into a numeric format for parsing.
static
|
ToNumericString |
string |
Converts the
string into a numeric format for parsing.
static
|
ToPascalCase |
string |
Converts the
String into camel case
by upper-casing the first character.
static
|
ToSnakeCase |
string |
Converts the
String into camel case
then replaces every upper case character
with an underscore and its lowercase equivalent.
static
|
ToSubstringInContext |
string |
Formats the
string into a shortened form,
showing the search text in context.
static
|
Truncate |
string |
Truncates the specified input.
static
|
Truncate |
string |
Truncates the specified input to 16 characters.
The input.
The length.
static
|
Truncate |
string |
Truncates the specified input to 16 characters.
The input.
static
|