From 0854ebbc0720c1691f2de661c4ce3467b71746c6 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 6 Mar 2022 13:29:10 +0100 Subject: refactor: replace unsigned int with uint32_t --- src/conversion.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/conversion.hpp') diff --git a/src/conversion.hpp b/src/conversion.hpp index 0bdf82d..6f13342 100644 --- a/src/conversion.hpp +++ b/src/conversion.hpp @@ -3,7 +3,7 @@ #include #include -constexpr unsigned int NUMBER_BASE = 10U; +constexpr uint32_t NUMBER_BASE = 10U; template class ConversionResult @@ -24,9 +24,9 @@ static constexpr auto IS_VALID_UINT = ctll::fixed_string("^[0-9]+$"); static constexpr auto IS_UINT_IN_RANGE = ctll::fixed_string("^[0-9]{1,19}$"); /** - * Converts a string to a unsigned integer. + * Converts a string to a uint32_teger. * - * @param str A string that possibly is a unsigned integer + * @param str A string that possibly is a uint32_teger * @returns A conversion result */ -ConversionResult str_to_uint(const std::string_view &str); +ConversionResult str_to_uint(const std::string_view &str); -- cgit v1.2.3-18-g5258