Extract the number contained in the string. No space characters or other extra characters allowed. Supported types:
More...
#include <cctype>
#include <cerrno>
#include <charconv>
#include <cstdint>
#include <cstdlib>
#include <limits>
#include <string>
#include <string_view>
#include <type_traits>
#include <typeindex>
#include <typeinfo>
#include <userver/utils/meta_light.hpp>
Go to the source code of this file.
|
namespace | utils |
| Utilities.
|
|
|
template<typename T , typename StringType , typename = std::enable_if_t< std::is_convertible_v<StringType, std::string_view>>> |
T | utils::FromString (const StringType &str) |
| Extract the number contained in the string. No space characters or other extra characters allowed. Supported types:
|
|
std::int64_t | utils::FromHexString (const std::string &str) |
|
Extract the number contained in the string. No space characters or other extra characters allowed. Supported types:
Definition in file from_string.hpp.