| 464 | } |
| 465 | |
| 466 | bool XMLUtil::ToBool( const char* str, bool* value ) { |
| 467 | int ival = 0; |
| 468 | if ( ToInt( str, &ival )) { |
| 469 | *value = (ival==0) ? false : true; |
| 470 | return true; |
| 471 | } |
| 472 | if ( StringEqual( str, "true" ) ) { |
| 473 | *value = true; |
| 474 | return true; |
| 475 | } else if ( StringEqual( str, "false" ) ) { |
| 476 | *value = false; |
| 477 | return true; |
| 478 | } |
| 479 | return false; |
| 480 | } |
| 481 | |
| 482 | |
| 483 | bool XMLUtil::ToFloat( const char* str, float* value ) { |
nothing calls this directly
no outgoing calls
no test coverage detected