MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / ToBool

Method ToBool

Dependencies/tinyxml2/src/tinyxml2.cpp:608–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606}
607
608bool 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
627bool XMLUtil::ToFloat( const char* str, float* value )

Callers

nothing calls this directly

Calls 1

StringEqualFunction · 0.85

Tested by

no test coverage detected