OpendTect-6_4
6.4
|
OD::String that holds an existing text string. More...
Public Member Functions | |
FixedString (const char *p=0) | |
FixedString & | operator= (const FixedString &fs) |
FixedString & | operator= (const char *p) |
FixedString & | operator= (const OD::String &) |
Not impl - on purpose: too dangerous. More... | |
operator const char * () const | |
bool | operator== (const FixedString &fs) const |
bool | operator!= (const FixedString &fs) const |
bool | operator== (const char *s) const |
bool | operator!= (const char *s) const |
bool | operator== (const OD::String &s) const |
bool | operator!= (const OD::String &s) const |
bool | operator== (const BufferString &) const |
bool | operator!= (const BufferString &) const |
operator bool () const | |
bool | operator! () const |
bool | isNull () const |
char | firstChar () const |
Public Member Functions inherited from OD::String | |
virtual | ~String () |
bool | operator== (const String &) const |
bool | operator!= (const String &) const |
bool | operator== (const char *) const |
bool | operator!= (const char *) const |
template<class T > | |
bool | operator== (const T &) const |
template<class T > | |
bool | operator!= (const T &t) const |
const char * | buf () const |
const char * | str () const |
operator const char * () const | |
unsigned int | size () const |
bool | isEmpty () const |
const char & | operator[] (int idx) const |
bool | isEqual (const char *, CaseSensitivity c=CaseSensitive) const |
bool | isStartOf (const char *, CaseSensitivity c=CaseSensitive) const |
bool | startsWith (const char *, CaseSensitivity c=CaseSensitive) const |
bool | isEndOf (const char *, CaseSensitivity c=CaseSensitive) const |
bool | endsWith (const char *, CaseSensitivity c=CaseSensitive) const |
bool | matches (const char *, CaseSensitivity c=CaseSensitive) const |
bool | contains (char) const |
bool | contains (const char *) const |
const char * | find (char) const |
const char * | findLast (char) const |
const char * | find (const char *) const |
const char * | findLast (const char *) const |
unsigned int | count (char) const |
unsigned int | getLevenshteinDist (const char *, bool casesens) const |
bool | isNumber (bool int_only=false) const |
bool | isYesNo () const |
int | toInt () const |
float | toFloat () const |
double | toDouble () const |
bool | toBool () const |
bool | operator> (const char *) const |
bool | operator< (const char *) const |
template<class T > | |
bool | operator> (const T &) const |
template<class T > | |
bool | operator< (const T &) const |
Static Public Member Functions | |
static const FixedString & | empty () |
Static Public Member Functions inherited from OD::String | |
static const String & | empty () |
Protected Member Functions | |
const char * | gtBuf () const |
const char * | gtStr () const |
Protected Attributes | |
const char * | str_ |
OD::String that holds an existing text string.
The string is assumed to be owned by someone else or be static. In any case, it is assumed be be alive and well for the lifetime of the FixedString.
The FixedString is a light-weight, shallow adapter; it never changes the underlying string.
|
inline |
|
static |
|
inlinevirtual |
Reimplemented from OD::String.
|
inlineprotectedvirtual |
Implements OD::String.
|
inlineprotectedvirtual |
Implements OD::String.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool FixedString::operator!= | ( | const BufferString & | ) | const |
|
inline |
|
inline |
|
inline |
Not impl - on purpose: too dangerous.
|
inline |
|
inline |
|
inline |
bool FixedString::operator== | ( | const BufferString & | ) | const |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019