String module

to_upper_copy

procedure · 1 overloadSource

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

to_upper_copy :: (s: string) -> string

Parameters

s: string

Returns

string
ExampleOpen in playground ↗
upper := to_upper_copy("Hello");
defer free(upper);
assert(upper == "HELLO");

See also