lux/data/text

Structs

Codec<Text,Text>

(lux/control/codec;Codec lux;Text lux;Text)

Eq<Text>

(lux/control/eq;Eq lux;Text)

Hash<Text>

(lux/control/hash;Hash lux;Text)

Monoid<Text>

(lux/control/monoid;Monoid lux;Text)

Ord<Text>

(lux/control/ord;Ord lux;Text)

Values

(at idx x)

(-> lux;Nat lux;Text (lux;Maybe lux;Char))

concat

(-> (lux;List lux;Text) lux;Text)

(contains? sub text)

(-> lux;Text lux;Text lux;Bool)

(empty? text)

(-> lux;Text lux;Bool)

(enclose [left right] content)

Surrounds the given content text with left and right side additions.

(-> [lux;Text lux;Text] lux;Text lux;Text)

(enclose' boundary content)

Surrounds the given content text with the same boundary text.

(-> lux;Text lux;Text lux;Text)

(ends-with? postfix x)

(-> lux;Text lux;Text lux;Bool)

(index-of pattern x)

(-> lux;Text lux;Text (lux;Maybe lux;Nat))

(index-of' pattern from x)

(-> lux;Text lux;Nat lux;Text (lux;Maybe lux;Nat))

(join-with sep texts)

(-> lux;Text (lux;List lux;Text) lux;Text)

(last-index-of pattern x)

(-> lux;Text lux;Text (lux;Maybe lux;Nat))

(last-index-of' pattern from x)

(-> lux;Text lux;Nat lux;Text (lux;Maybe lux;Nat))

(lower-case x)

(-> lux;Text lux;Text)

(replace pattern value template)

(-> lux;Text lux;Text lux;Text lux;Text)

(replace-once pattern value template)

(-> lux;Text lux;Text lux;Text lux;Text)

(size x)

(-> lux;Text lux;Nat)

(split at x)

(-> lux;Nat lux;Text (lux;Maybe [lux;Text lux;Text]))

(split-all-with token sample)

(-> lux;Text lux;Text (lux;List lux;Text))

split-lines

(-> lux;Text (lux;List lux;Text))

(split-with token sample)

(-> lux;Text lux;Text (lux;Maybe [lux;Text lux;Text]))

(starts-with? prefix x)

(-> lux;Text lux;Text lux;Bool)

(sub from to x)

(-> lux;Nat lux;Nat lux;Text (lux;Maybe lux;Text))

(sub' from x)

(-> lux;Nat lux;Text (lux;Maybe lux;Text))

(trim x)

(-> lux;Text lux;Text)

(upper-case x)

(-> lux;Text lux;Text)