toml parser 'inf' and 'nan' support

This commit is contained in:
MihailRis 2023-11-16 23:25:19 +03:00
parent 65303598ca
commit 9e7681ec6e

View File

@ -226,6 +226,14 @@ void Reader::readSection(Section* section /*nullable*/) {
if (section) {
section->set(name, flag);
}
} else if (identifier == "inf") {
if (section) {
section->set(name, INFINITY);
}
} else if (identifier == "nan") {
if (section) {
section->set(name, NAN);
}
}
} else if (c == '"' || c == '\'') {
pos++;