← all modules
Sky.Core.String
Sky.Core.String
Sky.Core.String — string combinators (Layer 3 Sky source).
Values
append : String -> String -> String
casefold : String -> String
concat : List String -> String
contains : String -> String -> Bool
containsIn : String -> String -> Bool
Haystack-first companion to `contains` — built for pipelines.
dropLeft : Int -> String -> String
Drop the first n characters (runes) from s. Elm semantics:
dropRight : Int -> String -> String
Drop the last n characters (runes) from s. Elm semantics:
ellipsize : Int -> String -> String
`truncate n s` with a trailing `…` when anything was cut.
endsWith : String -> String -> Bool
endsWithIn : String -> String -> Bool
Haystack-first companion to `endsWith`.
equalFold : String -> String -> Bool
fromBytes : List Int -> String
Rebuild a string from UTF-8 byte values. Values outside `0..255`
fromChar : Char -> String
fromFloat : Float -> String
fromInt : Int -> String
fromList : List Char -> String
graphemes : String -> Int
The number of GRAPHEME CLUSTERS in `s` — `"👨👩👧"` is 1, while
htmlEscape : String -> String
HTML-escape `&`, `<`, `>`, `"` and `'`. `Std.Ui` already escapes
isEmail : String -> Bool
isEmpty : String -> Bool
isUrl : String -> Bool
isValid : String -> Bool
Is `s` well-formed UTF-8?
join : String -> List String -> String
left : Int -> String -> String
The first `n` runes of `s` (the whole string when `n` exceeds it,
length : String -> Int
lines : String -> List String
normalize : String -> String
Unicode NFC (composed) normalisation.
normalizeNFD : String -> String
Unicode NFD (decomposed) normalisation.
padLeft : Int -> Char -> String -> String
padRight : Int -> Char -> String -> String
repeat : Int -> String -> String
replace : String -> String -> String -> String
reverse : String -> String
right : Int -> String -> String
The last `n` runes of `s`.
slice : Int -> Int -> String -> String
slugify : String -> String
Lowercase, alphanumerics kept, runs of space/`-`/`_` collapsed to
split : String -> String -> List String
startsWith : String -> String -> Bool
startsWithIn : String -> String -> Bool
Haystack-first companion to `startsWith`.
toBytes : String -> List Int
The UTF-8 bytes of `s`, each as an `Int` in `0..255`.
toChar : String -> Char
The first `Char` of `s` (the null character when `s` is empty).
toFloat : String -> Maybe Float
toInt : String -> Maybe Int
toList : String -> List Char
toLower : String -> String
toUpper : String -> String
trim : String -> String
trimEnd : String -> String
trimStart : String -> String
truncate : Int -> String -> String
The first `n` GRAPHEME CLUSTERS of `s` — never splits a combining
words : String -> List String