- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 9
 
string_util
2.7/string_util.adept defines several utilities for dealing with String values.
- 
func split(this *String, delimiter String) <String> ListSplits a
Stringinto multipleStrings.Each occurrence of
delimiterwill mark where two strings should be separated. - 
func splitIntoViews(this *String, delimiter String) <StringView> ListSplits a
Stringinto multipleStrings.Each occurrence 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 up to the first occurrence of
delimiter. - 
func getUntil(this *String, delimiter String) StringReturns a copy of a string ranging up to the first occurrence of
delimiter. - 
func getUntilAsView(this *String, delimiter ubyte) StringViewReturns a view of a string ranging up to the first occurrence of
delimiter. - 
func getUntilAsView(this *String, delimiter String) StringViewReturns a view of a string ranging up to the first occurrence of
delimiter. - 
func atUntil(this *String, delimiter ubyte) usizeReturns where the first occurrence 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 occurrence 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 up to the first occurrence of
delimiter. - 
func removedUntil(this *String, delimiter String) StringReturns a copy of a string with everything removed up to the first occurrence of
delimiter.