RESTinio
|
Namespaces | |
bitops | |
Classes | |
struct | safe_uint64_to_size_t |
struct | safe_uint64_to_size_t< false > |
struct | safe_uint64_to_size_t< true > |
Functions | |
std::size_t | uint64_to_size_t (std::uint64_t v) |
Helper function for truncating uint64 to std::size_t with exception if that truncation will lead to data loss. More... | |
bool | is_hexdigit (char c) |
char | extract_escaped_char (char c1, char c2) |
|
inline |
Definition at line 86 of file percent_encoding.hpp.
|
inline |
Definition at line 77 of file percent_encoding.hpp.
|
inline |
Helper function for truncating uint64 to std::size_t with exception if that truncation will lead to data loss.
A check of v is performed only if std::size_t has less capacity than std::uint64_t (for example on 32-bit systems).
std::runtime_error | if the value of v can't truncated to std::size_t without loss of data. |
Definition at line 59 of file safe_uint_truncate.hpp.