mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add cwchar.hpp
rename decimal_to_int -> ascii_to_int
This commit is contained in:
parent
50fd5f33bf
commit
28f7c510a5
34 changed files with 576 additions and 92 deletions
|
@ -2,18 +2,18 @@
|
|||
#define SPROUT_CSTDLIB_ATOL_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/cstdlib/decimal_to_int.hpp>
|
||||
#include <sprout/cstdlib/ascii_to_int.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
// atol
|
||||
//
|
||||
inline SPROUT_CONSTEXPR long atol(char const* str) {
|
||||
return sprout::decimal_to_int<long>(str);
|
||||
return sprout::ascii_to_int<long>(str);
|
||||
}
|
||||
template<typename Char>
|
||||
inline SPROUT_CONSTEXPR int atol(Char const* str) {
|
||||
return sprout::decimal_to_int<int>(str);
|
||||
inline SPROUT_CONSTEXPR long atol(Char const* str) {
|
||||
return sprout::ascii_to_int<long>(str);
|
||||
}
|
||||
} // namespace sprout
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue