diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-06 13:29:10 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:54 +0200 |
commit | 0854ebbc0720c1691f2de661c4ce3467b71746c6 (patch) | |
tree | 6bede8baea394711056db7109f395e71e880e03d /src/conversion.hpp | |
parent | a285df324deb579d262ea7cf484de4d6b11b28e4 (diff) |
refactor: replace unsigned int with uint32_t
Diffstat (limited to 'src/conversion.hpp')
-rw-r--r-- | src/conversion.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
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 <ctre.hpp> #include <string_view> -constexpr unsigned int NUMBER_BASE = 10U; +constexpr uint32_t NUMBER_BASE = 10U; template <typename ResultType> 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<unsigned int> str_to_uint(const std::string_view &str); +ConversionResult<uint32_t> str_to_uint(const std::string_view &str); |