StringExtensions extension

on

Methods

first({String separator = "/"}) String
Get the first string which is separated by separator.
format(List<Object> arg) String
Format for text.
fromBase64() String
Decoded in Base64.
last({String separator = "/"}) String
Get the last string which is separated by separator.
localize() String
Get translated text.
parentPath({String separator = "/"}) String
Get the path of the parent from the current string.
splitByBigram() List<String>
Splits the text using the bigram algorithm.
splitByCharacter() List<String>
Splits the text by character.
splitByTrigram() List<String>
Splits the text using the trigram algorithm.
splitLength({String separator = "/"}) int
Measure the length of path.
toBase64() String
Encoded in Base64.
toBool() bool
Parses a String into a bool.
toDouble() double
Converts a String to an int.
toInt() int
Converts a String to an int.
toSHA1() String
Convert to SHA1 hash.
toSHA256(String password) String
Convert to SHA256 hash.
trimQuery() String
Removes a query from a URL string.
trimString(String chars) String
Trim with specific characters.
trimStringLeft(String chars) String
Trim only the left side with a specific string.
trimStringRight(String chars) String
Trim only the right side with a specific string.