2011-11-14 04:22:04 +00:00
|
|
|
#ifndef SPROUT_WEED_PARSER_NUMERIC_UINT_HPP
|
|
|
|
#define SPROUT_WEED_PARSER_NUMERIC_UINT_HPP
|
|
|
|
|
2012-05-14 06:42:54 +00:00
|
|
|
#include <cstddef>
|
2011-11-14 04:22:04 +00:00
|
|
|
#include <cstdint>
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
#include <sprout/integer/integer_digits.hpp>
|
|
|
|
#include <sprout/weed/parser/numeric/uint_p.hpp>
|
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
namespace weed {
|
|
|
|
//
|
2011-11-14 06:34:28 +00:00
|
|
|
// uint_
|
2011-11-14 04:22:04 +00:00
|
|
|
//
|
2012-05-14 06:42:54 +00:00
|
|
|
SPROUT_STATIC_CONSTEXPR auto uint_ = sprout::weed::uint_p<std::uintmax_t, 10, 1, static_cast<std::size_t>(-1)>();
|
2011-11-14 04:22:04 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// uint8
|
|
|
|
// uint16
|
|
|
|
// uint32
|
|
|
|
// uint64
|
|
|
|
//
|
|
|
|
SPROUT_STATIC_CONSTEXPR auto uint8 = sprout::weed::uint_p<std::uint8_t, 10>();
|
|
|
|
SPROUT_STATIC_CONSTEXPR auto uint16 = sprout::weed::uint_p<std::uint16_t, 10>();
|
|
|
|
SPROUT_STATIC_CONSTEXPR auto uint32 = sprout::weed::uint_p<std::uint32_t, 10>();
|
|
|
|
SPROUT_STATIC_CONSTEXPR auto uint64 = sprout::weed::uint_p<std::uint64_t, 10>();
|
|
|
|
} // namespace weed
|
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_WEED_PARSER_NUMERIC_UINT_HPP
|