string_util.cc File Reference
Detailed Description
Implements some useful functions for string manipulation in the string_util namespace.
- Author:
- ejt (Creator)
- Author
- ejt
- Name
- tekkotsu-2_2
- Revision
- 1.3
- State
- Exp
- Date
- 2004/01/14 20:45:28
Definition in file string_util.cc.
#include "string_util.h"
#include <ctype.h>
Include dependency graph for string_util.cc:
Go to the source code of this file.
|
Namespaces |
namespace | string_util |
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. |
|