MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / ToBool

Method ToBool

src/xml/tinyxml2.cpp:466–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466bool 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
483bool XMLUtil::ToFloat( const char* str, float* value ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected