| 222 | } |
| 223 | } |
| 224 | int Value::ToInt() const |
| 225 | { |
| 226 | if (IsNumber()) |
| 227 | { |
| 228 | std::stringstream sstr(valueStr); |
| 229 | int val; |
| 230 | sstr >> val; |
| 231 | return val; |
| 232 | } |
| 233 | else |
| 234 | { |
| 235 | return 0; |
| 236 | } |
| 237 | } |
| 238 | float Value::ToFloat() const |
| 239 | { |
| 240 | if (IsNumber()) |
nothing calls this directly
no test coverage detected