string library
Classes
-
MonoidConcat
-
Provides string concatenation with a neutral element (empty string).
-
SemigroupConcat
-
Provides string concatenation.
-
StringEq
-
Provides equality comparisons for strings.
-
StringOrd
-
Provides ordering for strings.
Functions
-
endsWith(String searchString, String s, [int? position])
→ bool
-
Checks if a string ends with a substring.
-
includes(String searchString, String s, [int? position])
→ bool
-
Checks if a string includes a substring.
-
isEmpty(String s)
→ bool
-
Checks if a string is empty.
-
replace(String searchValue, String replaceValue, String s)
→ String
-
Replaces the first occurrence of a substring.
-
size(String s)
→ int
-
Returns the length of a string.
-
slice(int start, int end, String s)
→ String
-
Returns a substring.
-
split(String separator, String s)
→ List<String>
-
Splits a string by a separator.
-
startsWith(String searchString, String s, [int? position])
→ bool
-
Checks if a string starts with a substring.
-
toLowerCase(String s)
→ String
-
Convert a string to lower case.
-
toUpperCase(String s)
→ String
-
Convert a string to upper case.
-
trim(String s)
→ String
-
Removes whitespace from both ends of a string.
-
trimLeft(String s)
→ String
-
Removes whitespace from the start of a string.
-
trimRight(String s)
→ String
-
Removes whitespace from the end of a string.