Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

string_util Namespace Reference


Detailed Description

some common string processing functions, for std::string


Functions

char localeToUpper (char c)
char localeToLower (char c)
string makeUpper (const std::string &s) ATTR_must_check
 returns upper case version of s
string makeLower (const std::string &s) ATTR_must_check
 returns lower case version of s
string removePrefix (const std::string &str, const std::string &pre) ATTR_must_check
 returns str with pre removed - if pre is not fully matched, str is returned unchanged
string tildeExpansion (const std::string &str) ATTR_must_check
 replaces ~USER prefix with specified user's home directory, or ~ prefix with current HOME environment setting; returns str if no valid expansion is found
string trim (const std::string &str) ATTR_must_check
 removes whitespace (as defined by isspace()) from the beginning and end of str, and returns the result
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

Variables

static const std::locale & curLocale = std::locale::classic()


Tekkotsu v3.0
Generated Fri May 11 20:09:13 2007 by Doxygen 1.4.7