Logo Search packages:      
Sourcecode: csound version File versions

int csound::Conversions::stringToInt ( std::string  value,
int  default_ = 0 
) [static]

Translate the string value to an integer value, returning the default if the string value is empty.

Definition at line 419 of file Conversions.cpp.

    if (value.empty()) {
      return default_;
    return atoi(value.c_str());

Generated by  Doxygen 1.6.0   Back to index