15 static_assert(std::is_integral<T>::value,
16 "try_parse_hex only works with integral types (int, long, long long, etc.)");
18 size_t start = 0, end = 0;
21 for (; start < sv.size() && sv[start] ==
' '; start++);
22 for (end = start; end < sv.size() && sv[end] !=
' '; end++);
26 size_t digits = (end - start);
29 if (
digits == 0)
return false;
45 digit =
static_cast<int>(
ch -
'0');
A standalone header file containing shared code.
CSV_CONST CONSTEXPR_17 OutArray arrayToDefault(T &&value)
Helper constexpr function to initialize an array with all the elements set to value.
The all encompassing namespace.
nonstd::string_view string_view
The string_view class used by this library.