aboutsummaryrefslogtreecommitdiff
path: root/src/conversion.hpp
blob: 4ae5b7c5516b1902a0e0672a34eb736be4f99d37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <string_view>

constexpr unsigned int NUMBER_BASE = 10U;

/**
 * Converts a string to a unsigned integer.
 *
 * @param str A string that possibly is a unsigned integer
 * @returns A unsigned integer
 */
unsigned int str_to_uint(const std::string_view &str);