Logo Search packages:      
Sourcecode: inkscape version File versions

bool buildtool::MakeBase::getBool ( const String &  str,
bool &  val 
) [protected, inherited]

Turn 'true' and 'false' into boolean values

Definition at line 3950 of file buildtool.cpp.

References buildtool::MakeBase::error().

    if (str == "true")
        val = true;
    else if (str == "false")
        val = false;
        error("expected 'true' or 'false'.  found '%s'", str.c_str());
        return false;
    return true;

Generated by  Doxygen 1.6.0   Back to index