pub fn allocUpperString(allocator: std.mem.Allocator, ascii_string: []const u8) ![]u8 337
338
339
340pub fn allocUpperString(allocator: std.mem.Allocator, ascii_string: []const u8) ![]u8 {
const result = try allocator.alloc(u8, ascii_string.len);
return upperString(result, ascii_string);
}
Allocates an upper case copy of
ascii_string. Caller owns returned string and must free withallocator.