| 606 | } |
| 607 | |
| 608 | bool XMLUtil::ToBool( const char* str, bool* value ) |
| 609 | { |
| 610 | int ival = 0; |
| 611 | if ( ToInt( str, &ival )) { |
| 612 | *value = (ival==0) ? false : true; |
| 613 | return true; |
| 614 | } |
| 615 | if ( StringEqual( str, "true" ) ) { |
| 616 | *value = true; |
| 617 | return true; |
| 618 | } |
| 619 | else if ( StringEqual( str, "false" ) ) { |
| 620 | *value = false; |
| 621 | return true; |
| 622 | } |
| 623 | return false; |
| 624 | } |
| 625 | |
| 626 | |
| 627 | bool XMLUtil::ToFloat( const char* str, float* value ) |
nothing calls this directly
no test coverage detected