17 namespace json_details {
18 DAW_ATTRIB_FLATINLINE [[nodiscard]]
static inline constexpr unsigned
19 parse_digit(
char c ) {
20 return static_cast<unsigned>(
21 static_cast<unsigned char>(
static_cast<unsigned char>( c ) -
22 static_cast<unsigned char>(
'0' ) ) );
25 namespace parsed_constants {
26 static inline constexpr unsigned decimal_char = parse_digit(
'.' );
27 static inline constexpr unsigned e_char = parse_digit(
'e' );
28 static inline constexpr unsigned E_char = parse_digit(
'E' );
29 static inline constexpr unsigned plus_char = parse_digit(
'+' );
30 static inline constexpr unsigned minus_char = parse_digit(
'-' );