Homepage Demos Overview Downloads Tutorials Reference
Credits

string_util Namespace Reference


Functions

std::string makeLower (const std::string &s)
 returns lower case version of s
std::string makeUpper (const std::string &s)
 returns upper case version of s
std::string removePrefix (const std::string &str, const std::string &pre)
 returns str with pre removed - if pre is not fully matched, str is returned unchanged
bool parseArgs (const std::string &input, std::vector< std::string > &args, std::vector< unsigned int > &offsets)
 parses the input string into an arg list, with corresponding offsets of each arg in the original input


Function Documentation

std::string string_util::makeLower const std::string &  s  ) 
 

returns lower case version of s

Definition at line 6 of file string_util.cc.

Referenced by ControlBase::takeInput().

std::string string_util::makeUpper const std::string &  s  ) 
 

returns upper case version of s

Definition at line 14 of file string_util.cc.

bool string_util::parseArgs const std::string &  input,
std::vector< std::string > &  args,
std::vector< unsigned int > &  offsets
 

parses the input string into an arg list, with corresponding offsets of each arg in the original input

Definition at line 28 of file string_util.cc.

Referenced by ControlBase::takeInput(), and Controller::takeLine().

std::string string_util::removePrefix const std::string &  str,
const std::string &  pre
 

returns str with pre removed - if pre is not fully matched, str is returned unchanged

Definition at line 22 of file string_util.cc.


Tekkotsu v2.2
Generated Tue Oct 19 14:20:26 2004 by Doxygen 1.3.9.1