OpendTect
6.6
|
OD::String that holds an existing text string. More...
Public Member Functions | |
FixedString (const char *p=nullptr) | |
char | firstChar () const |
bool | isNull () const |
operator bool () const | |
operator const char * () const | |
bool | operator! () const |
bool | operator!= (const BufferString &) const |
bool | operator!= (const char *s) const |
bool | operator!= (const FixedString &fs) const |
bool | operator!= (const OD::String &s) const |
FixedString & | operator= (const char *p) |
FixedString & | operator= (const FixedString &fs) |
FixedString & | operator= (const OD::String &) |
Not impl - on purpose: too dangerous. More... | |
bool | operator== (const BufferString &) const |
bool | operator== (const char *s) const |
bool | operator== (const FixedString &fs) const |
bool | operator== (const OD::String &s) const |
Public Member Functions inherited from OD::String | |
virtual | ~String () |
const char * | buf () const |
bool | contains (char) const |
bool | contains (const char *) const |
unsigned int | count (char) const |
bool | endsWith (const char *, CaseSensitivity c=CaseSensitive) const |
const char * | find (char) const |
const char * | find (const char *) const |
const char * | findLast (char) const |
const char * | findLast (const char *) const |
unsigned int | getLevenshteinDist (const char *, bool casesens) const |
bool | isEmpty () const |
bool | isEndOf (const char *, CaseSensitivity c=CaseSensitive) const |
bool | isEqual (const char *, CaseSensitivity c=CaseSensitive) const |
bool | isNumber (bool int_only=false) const |
bool | isStartOf (const char *, CaseSensitivity c=CaseSensitive) const |
bool | isYesNo () const |
virtual char | lastChar () const |
bool | matches (const char *, CaseSensitivity c=CaseSensitive) const |
operator const char * () const | |
bool | operator!= (const char *) const |
bool | operator!= (const String &) const |
template<class T > | |
bool | operator!= (const T &t) const |
bool | operator< (const char *) const |
bool | operator< (const String &) const |
template<class T > | |
bool | operator< (const T &) const |
bool | operator== (const char *) const |
bool | operator== (const String &) const |
template<class T > | |
bool | operator== (const T &) const |
bool | operator> (const char *) const |
bool | operator> (const String &) const |
template<class T > | |
bool | operator> (const T &) const |
const char & | operator[] (int idx) const |
unsigned int | size () const |
bool | startsWith (const char *, CaseSensitivity c=CaseSensitive) const |
const char * | str () const |
bool | toBool () const |
double | toDouble () const |
float | toFloat () const |
int | toInt () const |
uint64_t | toUInt64 () 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 |
bool FixedString::operator!= | ( | const BufferString & | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Not impl - on purpose: too dangerous.
bool FixedString::operator== | ( | const BufferString & | ) | const |
|
inline |
|
inline |
|
inline |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022