 |
OpendTect
6.6
|
Go to the documentation of this file.
35 { str_ = fs.
str_;
return *
this;}
37 { str_ = p;
return *
this; }
40 inline operator const char*()
const {
return buf(); }
43 {
return isEqual(fs.
str_);}
45 {
return !isEqual(fs.
str_);}
49 {
return !isEqual(s);}
51 {
return isEqual(s.
str()); }
53 {
return !isEqual(s.
str()); }
57 inline operator bool()
const {
return !isNull(); }
58 inline bool operator !()
const {
return isNull(); }
59 inline bool isNull()
const {
return !str_; }
60 inline char firstChar()
const {
return str_ ? *str_ :
'\0'; }
67 inline const char*
gtBuf()
const
68 {
return str_ ? str_ :
""; }
69 inline const char*
gtStr()
const
70 {
return !str_ || !*str_ ? nullptr : str_; }
86 static bool hasUdf() {
return true; }
bool operator==(const BufferString &) const
bool operator!=(const char *s) const
Definition: fixedstring.h:48
bool isNull() const
Definition: fixedstring.h:59
static void setUdf(FixedString &s)
Definition: fixedstring.h:88
const char * gtStr() const
Definition: fixedstring.h:69
static FixedString val()
Definition: fixedstring.h:85
static const FixedString & empty()
#define mExpClass(module)
Definition: commondefs.h:177
const char * str_
Definition: fixedstring.h:72
char firstChar() const
Definition: fixedstring.h:60
bool operator!=(const FixedString &fs) const
Definition: fixedstring.h:44
static bool hasUdf()
Definition: fixedstring.h:86
const char * str() const
Definition: odstring.h:47
#define mClass(module)
Definition: commondefs.h:181
bool operator!=(const BufferString &) const
bool operator==(const OD::String &s) const
Definition: fixedstring.h:50
bool isEmpty() const
Definition: odstring.h:50
OD::String that holds an existing text string.
Definition: fixedstring.h:29
void OD_Undef_FixedString_eq_bs_finder()
static bool isUdf(const FixedString &s)
Definition: fixedstring.h:87
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
bool operator==(const char *s) const
Definition: fixedstring.h:46
FixedString & operator=(const FixedString &fs)
Definition: fixedstring.h:34
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
bool operator!=(const OD::String &s) const
Definition: fixedstring.h:52
Definition: fixedstring.h:82
Templatized undefined and initialisation (i.e. null) values.
Definition: color.h:113
FixedString(const char *p=nullptr)
Definition: fixedstring.h:32
bool operator==(const FixedString &fs) const
Definition: fixedstring.h:42
FixedString & operator=(const char *p)
Definition: fixedstring.h:36
const char * gtBuf() const
Definition: fixedstring.h:67
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021