String module

to_lower_copy

procedureSource

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
Example↗
lower := to_lower_copy("Hello");
defer free(lower);
assert(lower == "hello");

See also