19#include <boost/spirit/home/qi/numeric/real.hpp>
20#include <boost/spirit/home/qi/parse.hpp>
23inline namespace util {
49 if ((
sv[0] ==
'N' ||
sv[0] ==
'n')
50 && (
sv[1] ==
'O' ||
sv[1] ==
'o')) {
52 }
else if ((
sv[0] ==
'O' ||
sv[0] ==
'o')
53 && (
sv[1] ==
'N' ||
sv[1] ==
'n')) {
58 if ((
sv[0] ==
'O' ||
sv[0] ==
'o')
59 && (
sv[1] ==
'F' ||
sv[1] ==
'f')
60 && (
sv[2] ==
'F' ||
sv[2] ==
'f')) {
62 }
else if ((
sv[0] ==
'Y' ||
sv[0] ==
'y')
63 && (
sv[1] ==
'E' ||
sv[1] ==
'e')
64 && (
sv[2] ==
'S' ||
sv[2] ==
's')) {
69 if ((
sv[0] ==
'T' ||
sv[0] ==
't')
70 && (
sv[1] ==
'R' ||
sv[1] ==
'r')
71 && (
sv[2] ==
'U' ||
sv[2] ==
'u')
72 && (
sv[3] ==
'E' ||
sv[3] ==
'e')) {
77 if ((
sv[0] ==
'F' ||
sv[0] ==
'f')
78 && (
sv[1] ==
'A' ||
sv[1] ==
'a')
79 && (
sv[2] ==
'L' ||
sv[2] ==
'l')
80 && (
sv[3] ==
'S' ||
sv[3] ==
's')
81 && (
sv[4] ==
'E' ||
sv[4] ==
'e')) {
89double stod(std::string_view
sv,
double dfl)
noexcept
91 using namespace boost::spirit;
93 if (!qi::parse(
sv.begin(),
sv.end(), qi::double_,
val)) {