|
static bool | EqualsIgnoreCase (string? s1, string? s2) |
| Compare strings using case-insensitive comparison. More...
|
|
static bool | EqualsIgnoreCase (char c1, char c2) |
| Compare chars using case-insensitive comparison. More...
|
|
static bool | EqualsEmptyNull (string? s1, string? s2) |
| Compare strings using case sensitive, invariant culture comparison and considering null and string.Empty equal. More...
|
|
static bool | ContainsIgnoreCase (this string value, string text) |
| Use case-insensitive compare to check for a contained string. More...
|
|
static bool | ContainsWhitespace (this string value) |
| Checks whether a string contains any whitespace characters More...
|
|
static int | CountOccurrences (this string? value, char token) |
| Counts how many times a character occurs within a string. More...
|
|
static bool | StartsWithIgnoreCase (this string text, string value) |
| Determines whether the beginning of this string matches a specific value case-insensitive comparison. More...
|
|
static bool | EndsWithIgnoreCase (this string text, string value) |
| Determines whether the end of this string matches a specific value case-insensitive comparison. More...
|
|
static ? string | StripCharacters (this string? value, [InstantHandle] IEnumerable< char > characters) |
| Removes all occurrences of a specific set of characters from a string. More...
|
|
static string | StripFromEnd (this string value, int count) |
| Returns a string with count characters removed from the end. More...
|
|
static string[] | SplitMultilineText (this string value) |
| Splits a multiline string to several strings and returns the result as a string array. More...
|
|
static string | Join (string separator, [InstantHandle] IEnumerable< string > parts) |
| Combines multiple strings into one, placing a separator between the parts . More...
|
|
static string | GetLeftPartAtFirstOccurrence (this string value, char ch) |
| Get everything to the left of the first occurrence of a character. More...
|
|
static string | GetRightPartAtFirstOccurrence (this string value, char ch) |
| Get everything to the right of the first occurrence of a character. More...
|
|
static string | GetLeftPartAtLastOccurrence (this string value, char ch) |
| Get everything to the left of the last occurrence of a character. More...
|
|
static string | GetRightPartAtLastOccurrence (this string value, char ch) |
| Get everything to the right of the last occurrence of a character. More...
|
|
static string | GetLeftPartAtFirstOccurrence (this string value, string str) |
| Get everything to the left of the first occurrence of a string. More...
|
|
static string | GetRightPartAtFirstOccurrence (this string value, string str) |
| Get everything to the right of the first occurrence of a string. More...
|
|
static string | GetLeftPartAtLastOccurrence (this string value, string str) |
| Get everything to the left of the last occurrence of a string. More...
|
|
static string | GetRightPartAtLastOccurrence (this string value, string str) |
| Get everything to the right of the last occurrence of a string. More...
|
|
static string | FormatBytes (this long value, IFormatProvider? provider=null) |
| Formats a byte number in human-readable form (KB, MB, GB). More...
|
|
static string | EscapeArgument (this string value) |
| Escapes a string for use as a Windows command-line argument, making sure it is encapsulated within " if it contains whitespace characters. More...
|
|
static string | JoinEscapeArguments (this IEnumerable< string > parts) |
| Combines multiple strings into one for use as a Windows command-line argument using EscapeArgument. More...
|
|
static string | Base64Utf8Encode (this string value) |
| Encodes a string as UTF-8 in base64. More...
|
|
static string | Base64Utf8Decode (this string value) |
| Decodes a UTF-8 in base64 string. More...
|
|
static string | Base32Encode (this byte[] data) |
| Encodes a byte array in base32 without padding. More...
|
|
static string | Base16Encode (this byte[] data) |
| Encodes a byte array in base16 (hexadecimal). More...
|
|
static byte[] | Base16Decode (this string encoded) |
| Decodes a base16 (hexadecimal) to a byte array. More...
|
|
static string | Hash (this string value, HashAlgorithm algorithm) |
| Computes the hash value of a string encoded as UTF-8. More...
|
|
static string | GeneratePassword (int length) |
| Returns a string filled with random human-readable ASCII characters based on a cryptographic random number generator. More...
|
|
Provides additional or simplified string functions.