aboutsummaryrefslogtreecommitdiff
path: root/src/conversion.hpp
blob: 6da76067c715165000ba5698847d7b5238e740b6 (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(std::string_view str);