pub fn toString(self: Managed, allocator: Allocator, base: u8, case: std.fmt.Case) ![]u8
Converts self to a string in the requested base. Memory is allocated from the provided allocator and not the one present in self.
self: Managed
allocator: Allocator
base: u8
case: std.fmt.Case
3069 3070 3071 3072
pub fn toString(self: Managed, allocator: Allocator, base: u8, case: std.fmt.Case) ![]u8 { if (base < 2 or base > 36) return error.InvalidBase; return self.toConst().toStringAlloc(allocator, base, case); }
Converts self to a string in the requested base. Memory is allocated from the provided allocator and not the one present in self.