@@ -45,8 +45,8 @@ enum class chars_format : chars_format_t;
4545
4646#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
4747namespace detail {
48- constexpr chars_format basic_json_fmt = chars_format(1 << 4 );
49- constexpr chars_format basic_fortran_fmt = chars_format(1 << 5 );
48+ constexpr chars_format basic_json_fmt = chars_format(1 << 6 );
49+ constexpr chars_format basic_fortran_fmt = chars_format(1 << 7 );
5050} // namespace detail
5151#endif
5252
@@ -57,13 +57,13 @@ enum class chars_format : chars_format_t {
5757 hex = 1 << 2 ,
5858#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
5959 no_infnan = 1 << 3 ,
60+ allow_leading_plus = 1 << 4 ,
61+ skip_white_space = 1 << 5 ,
6062 // RFC 8259: https://datatracker.ietf.org/doc/html/rfc8259#section-6
6163 json = chars_format_t (detail::basic_json_fmt) | general | no_infnan,
6264 // Extension of RFC 8259 where, e.g., "inf" and "nan" are allowed.
6365 json_or_infnan = chars_format_t (detail::basic_json_fmt) | general,
6466 fortran = chars_format_t (detail::basic_fortran_fmt) | general,
65- allow_leading_plus = 1 << 6 ,
66- skip_white_space = 1 << 7 ,
6767#endif
6868};
6969
@@ -83,9 +83,7 @@ template <typename UC> struct parse_options_t {
8383 constexpr explicit parse_options_t (
8484 chars_format const fmt = chars_format::general, UC const dot = UC(' .' ),
8585 uint_fast8_t const b = 10) noexcept
86- : format(fmt), decimal_point(dot), base(b) {
87- FASTFLOAT_ASSUME (base >= 2 && base <= 36 );
88- }
86+ : format(fmt), decimal_point(dot), base(b) {}
8987
9088 /* * Which number formats are accepted */
9189 chars_format format;
0 commit comments