toml parser 'inf' and 'nan' support
This commit is contained in:
parent
65303598ca
commit
9e7681ec6e
@ -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++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user