![]() |
OpendTect
7.0
|
List encoded in a string. More...
Public Member Functions | |
| SeparString (const char *escapedstr=nullptr, char separ=',') | |
| SeparString (const SeparString &ss) | |
| SeparString & | add (const BufferStringSet &) |
| Concatenation. More... | |
| SeparString & | add (const char *unescapedstr) |
| SeparString & | add (const DBKey &, bool withsurvloc=true) |
| SeparString & | add (const OD::String &ods) |
| SeparString & | add (const SeparString &) |
| Concatenation. More... | |
| template<class T > | |
| SeparString & | add (T t) |
| const char * | buf () const |
| Output escaped. More... | |
| StringView | first () const |
| StringView | from (int) const |
| Output escaped. More... | |
| char * | getCStr () |
| Output escaped. More... | |
| double | getDValue (int) const |
| float | getFValue (int) const |
| std::int16_t | getI16Value (int) const |
| std::int64_t | getI64Value (int) const |
| std::int32_t | getIValue (int) const |
| std::uint16_t | getUI16Value (int) const |
| std::uint64_t | getUI64Value (int) const |
| std::uint32_t | getUIValue (int) const |
| bool | getYN (int) const |
| int | indexOf (const char *unescapedstr) const |
| bool | isEmpty () const |
| StringView | last () const |
| operator const char * () const | |
| template<class T > | |
| SeparString & | operator+= (const OD::String &ods) |
| template<class T > | |
| SeparString & | operator+= (T t) |
| SeparString & | operator= (const char *escapedstr) |
| SeparString & | operator= (const SeparString &) |
| StringView | operator[] (int) const |
| Output unescaped. More... | |
| StringBuilder & | rep () |
| Output escaped. More... | |
| char | sepChar () const |
| const char * | sepStr () const |
| SeparString & | set (const BufferStringSet &bss) |
| SeparString & | set (const char *unescapedstr) |
| SeparString & | set (const OD::String &ods) |
| SeparString & | set (const SeparString &s) |
| template<class T > | |
| SeparString & | set (T t) |
| void | setEmpty () |
| void | setSepChar (char) |
| int | size () const |
| const char * | str () const |
| Output escaped. More... | |
| const char * | unescapedStr () const |
Private Member Functions | |
| const char * | findSeparator (const char *) const |
| const char * | getEscaped (const char *unescapedstr, char sep) const |
| const char * | getUnescaped (const char *escapedstartptr, const char *nextsep=nullptr) const |
| void | initRep (const char *) |
| void | initSep (char s) |
Private Attributes | |
| StringBuilder | rep_ |
| BufferString | retstr_ |
| char | sep_ [2] |
List encoded in a string.
SeparString is a list encoded in a string where the items are separated by a user chosen separator. The separator in the input is escaped with a backslash. A ‘’ is encoded as ‘\’ . Elements can have any size. Input and output of elements is done unescaped. Input and output of whole (sub)strings is done escaped.
<>
|
inline |
|
inline |
| SeparString& SeparString::add | ( | const BufferStringSet & | ) |
Concatenation.
| SeparString& SeparString::add | ( | const char * | unescapedstr | ) |
| SeparString& SeparString::add | ( | const DBKey & | , |
| bool | withsurvloc = true |
||
| ) |
|
inline |
| SeparString& SeparString::add | ( | const SeparString & | ) |
Concatenation.
|
inline |
|
inline |
Output escaped.
|
private |
| StringView SeparString::first | ( | ) | const |
| StringView SeparString::from | ( | int | ) | const |
Output escaped.
|
inline |
Output escaped.
| double SeparString::getDValue | ( | int | ) | const |
|
private |
| float SeparString::getFValue | ( | int | ) | const |
| std::int16_t SeparString::getI16Value | ( | int | ) | const |
| std::int64_t SeparString::getI64Value | ( | int | ) | const |
| std::int32_t SeparString::getIValue | ( | int | ) | const |
| std::uint16_t SeparString::getUI16Value | ( | int | ) | const |
| std::uint64_t SeparString::getUI64Value | ( | int | ) | const |
| std::uint32_t SeparString::getUIValue | ( | int | ) | const |
|
private |
| bool SeparString::getYN | ( | int | ) | const |
| int SeparString::indexOf | ( | const char * | unescapedstr | ) | const |
|
private |
|
inlineprivate |
|
inline |
| StringView SeparString::last | ( | ) | const |
|
inline |
|
inline |
|
inline |
| SeparString& SeparString::operator= | ( | const char * | escapedstr | ) |
| SeparString& SeparString::operator= | ( | const SeparString & | ) |
| StringView SeparString::operator[] | ( | int | ) | const |
Output unescaped.
|
inline |
Output escaped.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void SeparString::setSepChar | ( | char | ) |
| int SeparString::size | ( | ) | const |
|
inline |
Output escaped.
|
inline |
Use with care! Distinction between separ-chars and escaped separ-chars will get lost.
|
private |
|
mutableprivate |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024