| 250 | } |
| 251 | } |
| 252 | double Value::ToDouble() const |
| 253 | { |
| 254 | if (IsNumber()) |
| 255 | { |
| 256 | std::stringstream sstr(valueStr); |
| 257 | double val; |
| 258 | sstr >> val; |
| 259 | return val; |
| 260 | } |
| 261 | else |
| 262 | { |
| 263 | return 0.0; |
| 264 | } |
| 265 | } |
| 266 | bool Value::ToBool() const |
| 267 | { |
| 268 | if (IsBool()) |
nothing calls this directly
no test coverage detected