StringHelper
Namespace: Murder.Utilities
Assembly: Murder.dll
public static class StringHelper
⭐ Methods
FuzzyMatch(string, string)
public bool FuzzyMatch(string searchTerm, string target)
Parameters
searchTerm
string
target
string
Returns
bool
LevenshteinDistance(string, string)
public int LevenshteinDistance(string s, string t)
Returns
int
CapitalizeFirstLetter(string)
public string CapitalizeFirstLetter(string input)
Parameters
input
string
Returns
string
Cleanup(string)
public string Cleanup(string input)
Removes single returns, keeps doubles.
Parameters
input
string
Returns
string
GetDescription(T)
public string GetDescription(T enumerationValue)
Parameters
enumerationValue
T
Returns
string
ToHumanList(IEnumerable, string, string)
public string ToHumanList(IEnumerable<T> someStringArray, string separator, string lastItemSeparator)
Parameters
someStringArray
IEnumerable<T>
separator
string
lastItemSeparator
string
Returns
string
GetAttribute(T)
public TAttr GetAttribute(T enumerationValue)
Parameters
enumerationValue
T
Returns
TAttr
⚡