bsnes/nall/string/atoi.hpp

22 lines
310 B
C++

#pragma once
namespace nall {
auto string::integer() const -> intmax {
return toInteger(data());
}
auto string::natural() const -> uintmax {
return toNatural(data());
}
auto string::hex() const -> uintmax {
return toHex(data());
}
auto string::real() const -> double {
return toReal(data());
}
}