string_util Namespace Reference
Detailed Description
some common string processing functions, for std::string
|
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 |
) |
|
|
| std::string string_util::makeUpper |
( |
const std::string & |
s |
) |
|
|
| bool string_util::parseArgs |
( |
const std::string & |
input, |
|
|
std::vector< std::string > & |
args, |
|
|
std::vector< unsigned int > & |
offsets |
|
) |
|
|
| 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. |
|