|
| String () |
|
| String (unsigned int) |
|
| String (const std::string &str) |
|
virtual | ~String () |
|
void | strip (const std::string &stripStr) |
|
void | strip (char stripChar) |
|
bool | contains (char target) |
|
bool | contains (std::string s) |
|
void | replace (char stripChar, char replaceChar) |
|
void | operator= (const std::string &str) |
|
void | operator= (const String str) |
|
bool | operator< (String &str) |
|
bool | operator== (String str) |
|
bool | operator!= (String str) |
|
char & | operator[] (unsigned int index) |
|
std::string & | str () |
|
String | findFirstInstanceOf (std::string start, bool useStart, std::string stop, bool useStop) |
|
String | findFirstInstanceOf (std::string start, std::string stop) |
|
String | findFirstInstanceOf (std::string stop) |
|
String | findNextInstanceOf (std::string start, bool useStart, std::string stop, bool useStop, bool consumeStop=false) |
|
String | findNextInstanceOf (std::string start, std::string stop) |
|
String | findNextInstanceOf (std::string stop) |
|
String | findNextString () |
|
String | toLower () |
|
String | toUpper () |
|
String | findNextStringSeparatedByChars (std::string separators, bool matchEndOfString=true) |
|
bool | atEnd () |
|
void | resetToBeginning () |
|
void | initialize () |
|
int | toInt () |
|
float | toFloat () |
|
double | toDouble () |
|
bool | isEmpty () |
|
bool | matches (unsigned char c, std::string matchSet) |
|
unsigned | size () |
|
|
static void | strip (std::string &targetStr, const std::string &stripStr) |
|
static void | strip (std::string &targetStr, char stripChar) |
|
static void | replace (std::string &targetStr, char stripChar, char replaceChar) |
|
|
static const std::string | emptyString_ |
|
static const std::string | whiteSpace_ |
|
Constructor.
....................................................................... Constructor.
Destructor.
....................................................................... Destructor.
bool String::contains |
( |
char |
c | ) |
|
....................................................................... Return true if our string contains the target character
String String::findNextInstanceOf |
( |
std::string |
start, |
|
|
bool |
useStart, |
|
|
std::string |
stop, |
|
|
bool |
useStop, |
|
|
bool |
consumeStop = false |
|
) |
| |
....................................................................... Search a string for substrings separated by the specified start and stop strings.
If useStart = true, then we will search for the start string first, then search for the stop string, and return everything between them.
otherwise, we will just search for the end string and return everything up to it.
String String::findNextStringSeparatedByChars |
( |
std::string |
separators, |
|
|
bool |
matchEndOfString = true |
|
) |
| |
....................................................................... Return the next string separated by any of the chars in separators
void String::operator= |
( |
const std::string & |
str | ) |
|
...................................................................... Assignment operators
void String::replace |
( |
char |
stripChar, |
|
|
char |
replaceChar |
|
) |
| |
....................................................................... Replace all occurrences of a character with a replacement character
void String::replace |
( |
std::string & |
targetStr, |
|
|
char |
stripChar, |
|
|
char |
replaceChar |
|
) |
| |
|
static |
....................................................................... Replace all occurrences of a character with a replacement character
void String::strip |
( |
std::string & |
targetStr, |
|
|
const std::string & |
stripStr |
|
) |
| |
|
static |
....................................................................... Strip all occurrences of the characters in stripStr from a target string.
void String::strip |
( |
std::string & |
targetStr, |
|
|
char |
stripChar |
|
) |
| |
|
static |
....................................................................... Strip all occurrences of a character from a target string.
void String::strip |
( |
const std::string & |
stripStr | ) |
|
....................................................................... Strip all occurrences of the characters in stripStr from a target string.
void String::strip |
( |
char |
stripChar | ) |
|
....................................................................... Strip all occurrences of a character from a target string.
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
String |
str |
|
) |
| |
|
friend |
The documentation for this class was generated from the following files:
- gcpCbass/util/common/String.h
- gcpCbass/util/common/String.cc