36 { str_ = fs.
str_;
return *
this;}
38 { str_ = p;
return *
this; }
41 inline operator const char*()
const {
return buf(); }
44 {
return isEqual(fs.
str_);}
46 {
return !isEqual(fs.
str_);}
50 {
return !isEqual(s);}
52 {
return isEqual(s.
str()); }
54 {
return !isEqual(s.
str()); }
58 inline operator bool()
const {
return !isNull(); }
59 inline bool operator !()
const {
return isNull(); }
60 inline bool isNull()
const {
return !str_; }
61 inline char firstChar()
const {
return str_ ? *str_ :
'\0'; }
68 inline const char*
gtBuf()
const {
return str_ ? str_ :
""; }
69 inline const char*
gtStr()
const {
return !str_ || !*str_ ? 0 : str_; }
84 static FixedString
val() {
return FixedString();}
85 static bool hasUdf() {
return true; }
87 static void setUdf( FixedString& s ) { s = FixedString(); }
#define mExpClass(module)
Definition: commondefs.h:160
FixedString & operator=(const char *p)
Definition: fixedstring.h:37
const char * gtBuf() const
Definition: fixedstring.h:68
const char * str() const
Definition: odstring.h:48
static void setUdf(FixedString &s)
Definition: fixedstring.h:87
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
Templatized undefined and initialisation (i.e. null) values.
Definition: color.h:106
OD::String that holds an existing text string.
Definition: fixedstring.h:29
static bool isUdf(const FixedString &s)
Definition: fixedstring.h:86
static FixedString val()
Definition: fixedstring.h:84
static bool hasUdf()
Definition: fixedstring.h:85
const char * str_
Definition: fixedstring.h:71
bool isNull() const
Definition: fixedstring.h:60
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
char firstChar() const
Definition: fixedstring.h:61
bool operator!=(const FixedString &fs) const
Definition: fixedstring.h:45
const char * gtStr() const
Definition: fixedstring.h:69
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
bool operator==(const FixedString &fs) const
Definition: fixedstring.h:43
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
bool isEmpty() const
Definition: odstring.h:51
void OD_Undef_FixedString_eq_bs_finder()
bool operator!=(const OD::String &s) const
Definition: fixedstring.h:53
OpendTect.
Definition: commontypes.h:29
bool operator==(const OD::String &s) const
Definition: fixedstring.h:51
#define mClass(module)
Definition: commondefs.h:164
FixedString(const char *p=0)
Definition: fixedstring.h:33
FixedString & operator=(const FixedString &fs)
Definition: fixedstring.h:35
bool operator==(const char *s) const
Definition: fixedstring.h:47
Templatized undefined values.
Definition: undefval.h:51
bool operator!=(const char *s) const
Definition: fixedstring.h:49