38 { initSep( separ ); initRep( escapedstr ); }
40 : rep_(ss.rep_) { initSep( ss.
sep_[0] ); }
42 SeparString&
operator=(
const SeparString&);
43 SeparString&
operator=(
const char* escapedstr);
45 inline bool isEmpty()
const {
return rep_.isEmpty(); }
52 int getIValue(
int)
const;
56 float getFValue(
int)
const;
57 double getDValue(
int)
const;
58 bool getYN(
int)
const;
60 int indexOf(
const char* unescapedstr)
const;
63 SeparString&
add(
const SeparString&);
64 SeparString&
add(
const char* unescapedstr);
66 {
return add( ods.
buf() ); }
68 inline SeparString&
add( T t )
75 {
return add( ods.
buf() ); }
77 inline operator const char*()
const 80 inline char*
getCStr() {
return rep_.getCStr(); }
82 inline const char*
buf()
const {
return rep_.buf(); }
89 inline const char*
unescapedStr()
const {
return getUnescaped(buf()); }
93 inline char sepChar()
const {
return *sep_; }
94 inline const char*
sepStr()
const {
return sep_; }
95 void setSepChar(
char);
102 void initRep(
const char*);
103 inline void initSep(
char s ) { sep_[0] = s; sep_[1] =
'\0'; }
107 const char* getEscaped(
const char* unescapedstr,
char sep)
const;
108 const char* getUnescaped(
const char* escapedstartptr,
109 const char* nextsep=0)
const;
111 const char* findSeparator(
const char*)
const;
124 : SeparString(escapedstr, separator() ) {}
126 : SeparString(t,separator()) {}
134 {
return add( (SeparString&)fms ); }
135 template <
class T>
inline 138 {
return add( ods.
buf() ); }
140 template <
class T>
inline 144 {
return add( ods.
buf() ); }
#define mExpClass(module)
Definition: commondefs.h:160
FileMultiString(const T &t)
Definition: separstr.h:125
char sep_[2]
Definition: separstr.h:99
BufferString rep_
Definition: separstr.h:100
virtual BufferString * operator[](size_type)
const OD::String & rep() const
Output escaped.
Definition: separstr.h:86
OD::String that holds an existing text string.
Definition: fixedstring.h:29
#define od_int64
Definition: plftypes.h:36
ObjectSet< BufferString > & operator+=(BufferString *t)
Definition: objectset.h:71
SeparString & add(const BufferStringSet &)
Concatenation.
List encoded in a string.
Definition: separstr.h:33
Set of BufferString objects.
Definition: bufstringset.h:28
ObjectSet< T >::size_type indexOf(const ObjectSet< T > &os, const S &val)
Locate object in set.
Definition: objectset.h:169
FileMultiString(const char *escapedstr=0)
Definition: separstr.h:123
SeparString(const char *escapedstr=0, char separ=',')
Definition: separstr.h:37
size_type size() const
Definition: objectset.h:50
SeparString with backquotes as separators, use in most ascii files.
Definition: separstr.h:119
SeparString & add(T t)
Definition: separstr.h:68
static char separator()
Definition: separstr.h:128
char sepChar() const
Definition: separstr.h:93
#define od_uint32
Definition: plftypes.h:32
BufferString retstr_
Definition: separstr.h:105
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
char * getCStr()
Output escaped.
Definition: separstr.h:80
BufferStringSet & add(const char *)
FileMultiString & add(const FileMultiString &fms)
Definition: separstr.h:133
SeparString & add(const OD::String &ods)
Definition: separstr.h:65
const char * buf() const
Definition: odstring.h:47
const char * unescapedStr() const
Definition: separstr.h:89
const char * sepStr() const
Definition: separstr.h:94
#define od_uint64
Definition: plftypes.h:37
bool isEmpty() const
Definition: separstr.h:45
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
FileMultiString & add(T t)
Definition: separstr.h:141
const char * buf() const
Output escaped.
Definition: separstr.h:82
void setEmpty()
Definition: separstr.h:46
void initSep(char s)
Definition: separstr.h:103
FileMultiString & add(const OD::String &ods)
Definition: separstr.h:143
ManagedObjectSet< BufferString > & operator=(const ObjectSet< BufferString > &)
Export_Basic const char * toString(ViewStyle)
BufferString & rep()
Output escaped.
Definition: separstr.h:84
SeparString(const SeparString &ss)
Definition: separstr.h:39