String class.
More...
#include <gostring.h>
|
| goString (const char *n) |
|
| goString (const goString &n) |
|
goIndex_t | getSize () const |
|
void | resize (goIndex_t newsize) |
|
void | getPathName (goString &pathRet) const |
| Get the path portion of a string describing a file name with full path. More...
|
|
void | getFileName (goString &fileNameRet) const |
| Get the file name portion of a string describing a file name with full path. More...
|
|
goIndex_t | findFirst (char c, goIndex_t start=0) const |
|
goIndex_t | findLast (char c) const |
|
goIndex_t | find (const char *str, goIndex_t start=0) |
| Find occurrence of str. More...
|
|
goIndex_t | replace (const char *str, const char *replacement) |
|
goIndex_t | getLine (goString &ret, goIndex_t start) |
|
bool | copy (goString &target, goIndex_t start, goIndex_t end) const |
| Copy a part of this string to another string. More...
|
|
bool | getWords (goList< goString > &wordsRet) const |
|
void | fill (char c) |
|
int | toInt () const |
|
goUInt32 | toUInt32 () const |
|
goUInt64 | toUInt64 () const |
|
float | toFloat () const |
|
double | toDouble () const |
|
bool | toBool () const |
|
const char * | toCharPtr () const |
|
goDate | toDate () |
|
void | toUpper () |
|
void | toLower () |
|
char & | operator[] (goIndex_t i) |
|
const char & | operator[] (goIndex_t i) const |
|
goString & | operator= (const goString &other) |
|
goString & | operator= (const char *other) |
|
goString & | operator= (goDate &d) |
|
goString & | operator+= (const char c) |
|
goString & | operator+= (const goString &s) |
|
goString & | operator+= (const char *s) |
|
goString & | operator+= (int i) |
|
goString & | operator+= (goUInt32 i) |
|
goString & | operator+= (goUInt64 i) |
|
goString & | operator+= (float f) |
|
goString & | operator+= (double f) |
|
goString | operator+ (const goString &o) const |
|
goString | operator+ (const char *s) const |
|
char * | getPtr () |
|
const char * | getPtr () const |
|
| operator char * () |
|
| operator const char * () const |
|
|
goArray< char > | thisString |
|
char | dummyChar |
|
|
bool | operator== (const goString &str, const char *s) |
|
bool | operator== (const goString &str, const goString &str2) |
|
bool | operator!= (const goString &str, const char *s) |
|
bool | operator!= (const goString &str, const goString &str2) |
|
std::ostream & | operator<< (std::ostream &o, const goString &s) |
|
◆ copy()
bool goString::copy |
( |
goString & |
target, |
|
|
goIndex_t |
start, |
|
|
goIndex_t |
end |
|
) |
| const |
Copy a part of this string to another string.
- Parameters
-
target | Target string. |
start | Start index in this string. |
end | End index in this string. |
- Returns
- True if successful, false otherwise.
◆ find()
goIndex_t goString::find |
( |
const char * |
str, |
|
|
goIndex_t |
start = 0 |
|
) |
| |
Find occurrence of str.
- Parameters
-
str | String to search for. |
start | Start index. |
- Returns
- Start index of str in this string. -1 on failure.
◆ getFileName()
void goString::getFileName |
( |
goString & |
fileNameRet | ) |
const |
Get the file name portion of a string describing a file name with full path.
- Parameters
-
fileNameRet | Contains the file name portion. |
◆ getPathName()
void goString::getPathName |
( |
goString & |
pathRet | ) |
const |
Get the path portion of a string describing a file name with full path.
- Parameters
-
pathRet | Contains the path portion of the full file name. |
◆ replace()
goIndex_t goString::replace |
( |
const char * |
str, |
|
|
const char * |
replacement |
|
) |
| |
- Todo:
- Inefficient. Rework when there's need and time.
- Parameters
-
- Returns
The documentation for this class was generated from the following files: