std::core::string

to_integer

macro String.to_integer(self, $Type, int base = 10)
Convert a number to a given base. If the base is not given, then
it will be inferred from the number if the string starts with 0x 0o or 0b and the
base is given as 10.

Furthermore it will skip any spaces before and after the number.

Parameters