OpendTect
6.6
|
encapsulates the read-access-only part of strings in OD. More...
Public Member Functions | |
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 |
virtual char | firstChar () 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 String & | empty () |
Protected Member Functions | |
virtual const char * | gtBuf () const =0 |
virtual const char * | gtStr () const =0 |
encapsulates the read-access-only part of strings in OD.
buf() always returns a valid null-terminated string. str() is the opposite: it always returns null if the string is empty
<>
|
inlinevirtual |
|
inline |
bool OD::String::contains | ( | char | ) | const |
bool OD::String::contains | ( | const char * | ) | const |
unsigned int OD::String::count | ( | char | ) | const |
|
static |
bool OD::String::endsWith | ( | const char * | , |
CaseSensitivity | c = CaseSensitive |
||
) | const |
const char* OD::String::find | ( | char | ) | const |
const char* OD::String::find | ( | const char * | ) | const |
const char* OD::String::findLast | ( | char | ) | const |
const char* OD::String::findLast | ( | const char * | ) | const |
|
inlinevirtual |
Reimplemented in FixedString.
unsigned int OD::String::getLevenshteinDist | ( | const char * | , |
bool | casesens | ||
) | const |
|
protectedpure virtual |
Implemented in FixedString, and BufferString.
|
protectedpure virtual |
Implemented in FixedString, and BufferString.
|
inline |
bool OD::String::isEndOf | ( | const char * | , |
CaseSensitivity | c = CaseSensitive |
||
) | const |
bool OD::String::isEqual | ( | const char * | , |
CaseSensitivity | c = CaseSensitive |
||
) | const |
bool OD::String::isNumber | ( | bool | int_only = false | ) | const |
bool OD::String::isStartOf | ( | const char * | , |
CaseSensitivity | c = CaseSensitive |
||
) | const |
bool OD::String::isYesNo | ( | ) | const |
|
inlinevirtual |
bool OD::String::matches | ( | const char * | , |
CaseSensitivity | c = CaseSensitive |
||
) | const |
|
inline |
|
inline |
|
inline |
|
inline |
bool OD::String::operator< | ( | const char * | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool OD::String::operator> | ( | const char * | ) | const |
|
inline |
|
inline |
|
inline |
unsigned int OD::String::size | ( | ) | const |
bool OD::String::startsWith | ( | const char * | , |
CaseSensitivity | c = CaseSensitive |
||
) | const |
|
inline |
bool OD::String::toBool | ( | ) | const |
double OD::String::toDouble | ( | ) | const |
float OD::String::toFloat | ( | ) | const |
int OD::String::toInt | ( | ) | const |
uint64_t OD::String::toUInt64 | ( | ) | const |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022