Lines Matching refs:str
12 ValType phSolver::Input::GetValue(const string &str) const in GetValue()
14 if (input_map->find(str) != input_map->end()) { in GetValue()
15 if ( (*input_map)[str] == "NODEFAULT" ) { in GetValue()
17 ost << "required input variable not set: " << str << ends; in GetValue()
18 throw invalid_argument( ost.str() ); in GetValue()
22 ost << "required input variable not set: " << str << ends; in GetValue()
23 throw invalid_argument( ost.str() ); in GetValue()
26 return ValType( (*input_map)[str] ); in GetValue()
162 void phSolver::Input::trim_string(string *str) in trim_string() argument
165 int length = str->length(); in trim_string()
171 while ( (*str)[pos0] == ' ' || (*str)[pos0] == '\t') { in trim_string()
175 str->erase(0,pos0); in trim_string()
178 length = str->length(); in trim_string()
181 while ( (*str)[pos0] == ' ' || (*str)[pos0] == '\t') { in trim_string()
185 str->erase(pos0+1, length-pos0); in trim_string()