scandsp/src/dspparser.cxx
// ===========================================================================
// Look up the boolean value of a key in the current environment.
//
Look up the boolean value of a key in the current environment.
Look up the boolean value of a key in the current environment .
bool DSPParser::lookupBool(string key, bool dflt)
{
    an_env_map::iterator it;
    it = currentEnvironment().find(key);
    bool result = dflt;
    if (it != currentEnvironment().end()) {
	string val = unquote((*it).second);
	cvttoupper(val);
	result = !(val == "0" || val == "NO" || val == "FALSE");
    }
    return result;
}
bool DSPParser :: lookupBool ( string key , bool dflt ) { an_env_map :: iterator it ; it = currentEnvironment ( ) . find ( key ) ; bool result = dflt ; if ( it != currentEnvironment ( ) . end ( ) ) { string val = unquote ( ( * it ) . second ) ; cvttoupper ( val ) ; result = ! ( val == " " || val == " " || val == " " ) ; } return result ; }
Look up the boolean value of a key in the current environment.
Look up the boolean value of a key in the current environment .