114d113
< // Use sscanf() for FP types as to_number() only handles integers
119c118
< return (sscanf(s.c_str(), "%f", &value) == 1);
---
> return to_number(s, value);
126c125
< return (sscanf(s.c_str(), "%lf", &value) == 1);
---
> return to_number(s, value);
133,145c132
< const string &ls = to_lower(s);
<
< if (ls == "true") {
< value = true;
< return true;
< }
<
< if (ls == "false") {
< value = false;
< return true;
< }
<
< return false;
---
> return to_bool(s, value);