-
-
Notifications
You must be signed in to change notification settings - Fork 9
string_util
2.6/string_util.adept defines several utilities for dealing with String values.
-
func split(this *String, delimiter String) <String> ListSplits a
Stringinto multipleStrings.Each occurence of
delimiterwill mark where two strings should be separated. -
func splitIntoViews(this *String, delimiter String) <StringView> ListSplits a
Stringinto multipleStrings.Each occurence of
delimiterwill mark where two strings should be separated.Returns a
ListofStringviews that reference the data of the original string. -
func levenshtein(s1, s2 String) usizeCalculates the levenshtein distance between two
Strings. -
func getUntil(this *String, delimiter ubyte) StringReturns a copy of a string ranging upto the first occurence of
delimiter. -
func getUntil(this *String, delimiter String) StringReturns a copy of a string ranging upto the first occurence of
delimiter. -
func getUntilAsView(this *String, delimiter ubyte) StringViewReturns a view of a string ranging upto the first occurence of
delimiter. -
func getUntilAsView(this *String, delimiter String) StringViewReturns a view of a string ranging upto the first occurence of
delimiter. -
func atUntil(this *String, delimiter ubyte) usizeReturns where the first occurence of
delimiteris within a string.If
delimiteris not in the string, thenthis.lengthwill be returned. -
func atUntil(this *String, delimiter String) usizeReturns where the first occurence of
delimiteris within a string.If
delimiteris not in the string, thenthis.lengthwill be returned. -
func removeUntil(this *String, delimiter String) voidRemoves everything in a string upto the first occurence of
delimiter. -
func removedUntil(this *String, delimiter String) StringReturns a copy of a string with everything removed upto the first occurence of
delimiter.