String module

to_lower_in_place

procedure · 1 overloadSource

Turns the ASCII capitals of s into lower case, in place. Other bytes are left as they are, so UTF-8 text is not folded. s must be writable, not a string literal.

to_lower_in_place :: (s: string)

Parameters

s: string
ExampleOpen in playground ↗
text := copy_string("MiXeD");
defer free(text);
to_lower_in_place(text);
assert(text == "mixed");

See also