Logo Search packages:      
Sourcecode: csound version File versions

bool csound::Conversions::stringToBool ( std::string  value,
bool  default_ = false 
) [static]

Translate the string value to a boolean value, returning the default if the string value is empty.

Definition at line 394 of file Conversions.cpp.

    if (value.empty()) {
      return default_;
      case '1':
      case 'T':
      case 't':
        return true;
    return false;

Generated by  Doxygen 1.6.0   Back to index