| 443 | } |
| 444 | |
| 445 | bool XMLUtil::ToBool( const char* str, bool* value ) |
| 446 | { |
| 447 | int ival = 0; |
| 448 | if ( ToInt( str, &ival )) { |
| 449 | *value = (ival==0) ? false : true; |
| 450 | return true; |
| 451 | } |
| 452 | if ( StringEqual( str, "true" ) ) { |
| 453 | *value = true; |
| 454 | return true; |
| 455 | } |
| 456 | else if ( StringEqual( str, "false" ) ) { |
| 457 | *value = false; |
| 458 | return true; |
| 459 | } |
| 460 | return false; |
| 461 | } |
| 462 | |
| 463 | |
| 464 | bool XMLUtil::ToFloat( const char* str, float* value ) |
nothing calls this directly
no outgoing calls
no test coverage detected