RhythmGame 1.4.3
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
charts::FloatingPoint Struct Reference

Static Public Attributes

static constexpr auto rule
 
static constexpr auto value
 

Member Data Documentation

◆ rule

constexpr auto charts::FloatingPoint::rule
staticconstexpr
Initial value:
= [] {
auto integerPart = dsl::sign + dsl::digits<>;
auto fraction = dsl::period >> dsl::if_(dsl::digits<>);
auto exponent =
dsl::lit_c<'e'> / dsl::lit_c<'E'> >> (dsl::sign + dsl::digits<>);
auto suffix =
dsl::lit_c<'f'> / dsl::lit_c<'F'> / dsl::lit_c<'d'> / dsl::lit_c<'D'>;
auto realNumber =
token(integerPart + if_(fraction) + if_(exponent) + if_(suffix));
return capture(realNumber);
}()
double fraction
Definition BmsNotesData.cpp:32

◆ value

constexpr auto charts::FloatingPoint::value
staticconstexpr
Initial value:
=
lexy::as_string<std::string> |
lexy::callback<double>([](std::string&& str) {
auto err =
std::from_chars(str.c_str(), str.c_str() + str.size(), val);
if (err.ec != std::errc{}) {
spdlog::error("Failed to parse meter: {}", str);
}
return val;
})
static constexpr auto defaultMeter
Definition ParsedBmsChart.h:25

The documentation for this struct was generated from the following file: