StringEx
Inherits object
Public Static Functions
string
Repeat(this string source, int repetitions)
This will place (source.Length * repetitions * 2) bytes onto the execution stack. Do not use this if that would exceed 512kb.
string
Until(this string text, string stopAt)
string
Until(this string text, char stopAt)
bool
Equals(StringComparison comparisonType, params string[] values)
string[]
Chop(this string value, int chopLength)
string
ToCamelCase(this string input)
bool
IsNumeric(this string value)
string
Truncate(this string value, int maxLength)
string?
CoalesceEmpty(this string? first, string? second)
string
Collapse(ref string? first, ref string? second)
string
Replace(this string source, char[] separators, string newVal)
bool
IsAlphaNumeric(this string str, bool allowSpaces)
Checks if a string is alphanumeric. true if the string is alphanumeric; otherwise, false.
string
MakeAlphaNumeric(this string str, bool allowSpaces)
Removes non-alphanumeric characters from a string. The string with non-alphanumeric characters removed..
string
ReplaceRange(this string str, int startIndex, int length, string replacement)
string
TrimStart(this string source, string trimString)
string
TrimEnd(this string source, string trimString)
byte[]
HexToBytes(this string hex)
int
GetHexVal(char hex)
bool
StartsWith(this string source, char value)
bool
EndsWith(this string source, char value)
