pub fn parseUnsigned(comptime T: type, buf: []const u8, base: u8) ParseIntError!T T: typebuf: []const u8base: u8OverflowThe result cannot fit in the type specified.
InvalidCharacterThe input was empty or contained an invalid character.
478
479
480pub fn parseUnsigned(comptime T: type, buf: []const u8, base: u8) ParseIntError!T {
return parseIntWithSign(T, u8, buf, base, .pos);
}
Parses the string
bufas unsigned representation in the specified base of an integral value of typeT.When
baseis zero the string prefix is examined to detect the true base:Ignores '_' character in
buf. See alsoparseInt.