OpendTect
6.6
|
Builds a string by adding strings. Much faster than string manipulation. Only supports adding. More...
Public Types | |
typedef int | size_type |
Public Member Functions | |
StringBuilder () | |
StringBuilder (const char *) | |
StringBuilder (const StringBuilder &oth) | |
virtual | ~StringBuilder () |
StringBuilder & | add (char, size_type nr=1) |
StringBuilder & | add (const char *) |
StringBuilder & | add (const QString &) |
template<class T > | |
StringBuilder & | add (const T &t) |
StringBuilder & | addNewLine (size_type nr=1) |
StringBuilder & | addSpace (size_type nr=1) |
StringBuilder & | addTab (size_type nr=1) |
char * | getCStr (int minlen=-1) |
bool | isEmpty () const |
bool | operator!= (const StringBuilder &) const |
StringBuilder & | operator= (const char *s) |
StringBuilder & | operator= (const StringBuilder &) |
bool | operator== (const StringBuilder &) const |
const char * | result () const |
StringBuilder & | set (const char *) |
template<class T > | |
StringBuilder & | set (const T &) |
StringBuilder & | setEmpty () |
const char * | str () const |
Protected Member Functions | |
bool | setBufSz (size_type, bool cp_old) |
Protected Attributes | |
char * | buf_ = nullptr |
size_type | bufsz_ = 0 |
size_type | curpos_ = 0 |
Builds a string by adding strings. Much faster than string manipulation. Only supports adding.
<>
typedef int StringBuilder::size_type |
|
inline |
|
inline |
StringBuilder::StringBuilder | ( | const char * | ) |
|
inlinevirtual |
StringBuilder& StringBuilder::add | ( | char | , |
size_type | nr = 1 |
||
) |
StringBuilder& StringBuilder::add | ( | const char * | ) |
StringBuilder& StringBuilder::add | ( | const QString & | ) |
|
inline |
|
inline |
|
inline |
|
inline |
char* StringBuilder::getCStr | ( | int | minlen = -1 | ) |
|
inline |
bool StringBuilder::operator!= | ( | const StringBuilder & | ) | const |
|
inline |
StringBuilder& StringBuilder::operator= | ( | const StringBuilder & | ) |
bool StringBuilder::operator== | ( | const StringBuilder & | ) | const |
|
inline |
StringBuilder& StringBuilder::set | ( | const char * | ) |
StringBuilder& StringBuilder::set | ( | const T & | ) |
|
protected |
StringBuilder& StringBuilder::setEmpty | ( | ) |
|
inline |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022