Skip to content

StringEx ​

Kind: Static class

Namespace: CrowdControl.Common

Public Static Functions

string

Repeat(string source, int repetitions)

string

Until(string text, string stopAt)

string

Until(string text, char stopAt)

bool

Equals(StringComparison comparisonType, string[] values)

string[]

Chop(string value, int chopLength)

string

ToCamelCase(string input)

bool

IsNumeric(string value)

string

Truncate(string value, int maxLength)

string

CoalesceEmpty(string first, string second)

string

Collapse(string ref first, string ref second)

string

Replace(string source, char[] separators, string newVal)

bool

IsAlphaNumeric(string str, bool allowSpaces = false)

Checks if a string is alphanumeric.

string

MakeAlphaNumeric(string str, bool allowSpaces = false)

Removes non-alphanumeric characters from a string.

string

ReplaceRange(string str, int startIndex, int length, string replacement)

string

TrimStart(string source, string trimString)

string

TrimEnd(string source, string trimString)

byte[]

HexToBytes(string hex)

int

GetHexVal(char hex)