Replace¶
Constructors¶
create¶
Returns¶
- Replace val^
Public Functions¶
all¶
Replace every non-overlapping occurrence of needle in s with
replacement. Returns the result as String iso^. Returns the
input cloned when needle is empty (semantically a no-op).
fun box all(
s: String box,
needle: String box,
replacement: String box)
: (String iso^ | InvalidUtf8 val)
Parameters¶
Returns¶
- (String iso^ | InvalidUtf8 val)
first¶
Replace only the first occurrence of needle. Empty needle
yields the input cloned.
fun box first(
s: String box,
needle: String box,
replacement: String box)
: (String iso^ | InvalidUtf8 val)
Parameters¶
Returns¶
- (String iso^ | InvalidUtf8 val)
eq¶
Parameters¶
- that: Replace val
Returns¶
- Bool val
ne¶
Parameters¶
- that: Replace val
Returns¶
- Bool val