Function toString [src]
Converts self to a string in the requested base. Memory is allocated from the provided
allocator and not the one present in self.
Prototype
pub fn toString(self: Managed, allocator: Allocator, base: u8, case: std.fmt.Case) ![]u8
Parameters
self: Managed
allocator: Allocator
base: u8
case: std.fmt.Case
Source
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);
}