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