String module

to_lower_copy

procedure · 1 overloadSource

A copy of s with ASCII capitals turned into lower case. The copy is allocated with the context allocator and the caller frees it.

to_lower_copy :: (s: string) -> string

Parameters

s: string

Returns

string
ExampleOpen in playground ↗
lower := to_lower_copy("Hello");
defer free(lower);
assert(lower == "hello");

See also