String
Index
Accessor
Codec
Combinator
Comparator
Constructor
Predicate
Type
Other
Accessor
at
Return the character at the
index
position
size
Return the length of the string
Codec
codecDecode
Returns the decoded
input
,Result.Ok
orResult.Error()
codecEncode
Returns the encoded
input
codecSchema
Returns the JSONSchema corresponding to the decoded type
Combinator
concat
Joins the given array of strings.
join
Joins the given array of strings.
Comparator
!=
"Not equal to" operator
<
"Less than" operator
<=
"Less than or equal to" operator
==
"Equal to" operator
>
"Greater than" operator
>=
"Greater than or equal to" operator
clamp
Clamp value between minValue and maxValue
compare
Return a number that represents comparison
equals
Alias to '=='
max
"maximum" operator
min
"minimum" operator
Constructor
asInstance
Try to convert anyValue to enum value or else returns
Option.None
of
Return a new string from all parts passed as arguments
Predicate
endsWith
Returns true if string ends with searchString
includes
Returns the index of the last occurrence of
searchString
in a string.
isEmpty
Return true if the size of the array is 0
startsWith
Returns true if string starts with searchString
Type
inspect
When defined, returns a custom string representation
hasInstance
Return
true
if the given value is an instance of the class.
Other
typeName
indexOf
Returns the index of the first occurrence of
searchString
in a string.
lastIndexOf
Returns the index of the last occurrence of
searchString
in a string.
split
Split a string into substrings using the specified separator and return them as an array.
A collection of functions to manipulate
string