FARGOS/VISTA Object Management Environment Core
..
|
Reference-counted storage for OMEstring objects. More...
#include <OMEstring.h>
Private Types | |
typedef uint_fast32_t | OMEstringCharSet_t |
Private Member Functions | |
OMEstringStorage () | |
OMEstringStorage (const char *s, uint_fast8_t impliedCharSet=OME_DEFAULT_CHARSET) NONNULL_CLASS_PARAMETERS(2) | |
OMEstringStorage (OMEstringInROM textSegmentString, ssize_t l=-1, uint_fast8_t impliedCharSet=OME_DEFAULT_CHARSET) | |
OMEstringStorage (const unsigned char *s, ssize_t l=-1, uint_fast8_t impliedCharSet=OME_CHARSET_UNDEFINED) NONNULL_CLASS_PARAMETERS(2) | |
OMEstringStorage (size_t l, uint_fast8_t impliedCharSet=OME_CHARSET_UNDEFINED) | |
~OMEstringStorage () | |
void | noteCharacterSet (uint_fast8_t c) |
void | determineCharacterSet () |
uint_fast8_t | getCharacterSet () const |
size_t | length () const OME_PURE_FUNCTION |
size_t | lengthInCharacters () const OME_PURE_FUNCTION |
operator const char * () const OME_PURE_FUNCTION | |
operator const unsigned char * () const OME_PURE_FUNCTION | |
bool | operator== (const OMEstringStorage &arg) const |
bool | operator!= (const OMEstringStorage &arg) const |
bool | operator< (const OMEstringStorage &arg) const |
bool | operator> (const OMEstringStorage &arg) const |
bool | operator<= (const OMEstringStorage &arg) const |
bool | operator>= (const OMEstringStorage &arg) const |
bool | operator== (const char *arg) const |
bool | operator!= (const char *arg) const |
OMEstringStorage * | operator+ (const OMEstringStorage &rop) const |
virtual OMEreferenceCount * | deepCopy () const override |
ssize_t | substr (const unsigned char *sub, size_t len, size_t startOffset=0) const |
ssize_t | substr (const char *sub, size_t len, size_t startOffset=0) const |
ssize_t | substr (const OMEstringStorage &sub, size_t startOffset=0) const |
ssize_t | lastSubstr (const unsigned char *sub, size_t len, size_t startOffset=~static_cast< size_t >(0)) const |
ssize_t | lastSubstr (const OMEstringStorage &sub, size_t startOffset=~static_cast< size_t >(0)) const |
unsigned char | midchar (size_t offset) const |
uint32_t | midMBCSchar (size_t offset) const |
class OMEstring * | midstr (size_t offset, size_t len) const |
class OMEstring * | midMBCSstr (size_t offset, size_t len) const |
class OMEstring * | reverse () |
class OMEstring * | reverseMBCS () |
void | truncateToLength (size_t newLen) |
template<typename STREAMTYPE > | |
STREAMTYPE & | outputOnStream (STREAMTYPE &outputStream, int_fast16_t indent=0, uint8_t includeTypePrefix=0) const |
template<typename STREAMTYPE > | |
STREAMTYPE & | outputOnStreamAsHex (STREAMTYPE &outputStream, int_fast16_t indent=0, bool dense=false) const |
Static Private Member Functions | |
static constexpr bool | stringIsInROM (OMEstringCharSet_t c) |
static constexpr bool | stringIsMBCS (OMEstringCharSet_t c) |
static constexpr OMEstringCharSet_t | ROMstringLen (OMEstringCharSet_t c) |
Private Attributes | |
union { | |
_STD string * str | |
OMEstringInROM romString | |
} | stringData |
OMEstringCharSet_t | charSet |
Friends | |
class | OMEstring |
class | OMEreferenceToData< OMEstringStorage > |
Additional Inherited Members | |
![]() | |
OMEreferenceCount () | |
virtual | ~OMEreferenceCount () |
void | addReadOnlyReference () |
int_fast32_t | dropReference () |
OMEreferenceCount * | getUniqueReference () |
int_fast32_t | totalReferences () const OME_ALWAYS_INLINE |
![]() | |
void | lockMe () |
void | unlockMe () |
![]() | |
int32_t | references |
int32_t | mutexID |
Reference-counted storage for OMEstring objects.
Reference-counted maintainer of a string. Used internally by OMEstring.
|
private |
|
private |
References charSet, OME_CHARSET_STRING_IN_ROM, OME_CHARSET_UNDEFINED, and stringData.
Referenced by OMEstring::OMEstring(), operator+(), and OMEstring::operator=().
|
explicitprivate |
References _STD, charSet, s, and stringData.
|
explicitprivate |
References charSet, l, OME_CHARSET_STRING_IN_ROM, OME_CHARSET_UNDEFINED, OME_DEFAULT_CHARSET, and stringData.
|
explicitprivate |
References _STD, charSet, l, OME_CHARSET_BINARY, OME_CHARSET_UNDEFINED, OME_DEFAULT_CHARSET, s, and stringData.
|
explicitprivate |
References _STD, charSet, l, OME_CHARSET_BINARY, OME_CHARSET_UNDEFINED, OME_DEFAULT_CHARSET, stringData, and stringIsMBCS().
|
private |
References charSet, stringData, stringIsInROM(), and stringIsMBCS().
|
overrideprivatevirtual |
Reimplemented from OMEreferenceCount.
References noteDeepCopy().
|
private |
References length(), noteCharacterSet(), OME_CHARSET_BINARY, and OME_DEFAULT_CHARSET.
|
inlineprivate |
References charSet, and OME_CHARSET_MASK_CHARSET.
Referenced by midstr(), OMEstring::operator+=(), and reverse().
|
private |
References lastSubstr(), and length().
|
private |
References findLastSubstring(), and length().
Referenced by lastSubstr().
|
private |
References charSet, ROMstringLen(), stringData, stringIsInROM(), and stringIsMBCS().
Referenced by determineCharacterSet(), lastSubstr(), lengthInCharacters(), midMBCSchar(), midMBCSstr(), midstr(), operator!=(), OMEstring::operator!=(), operator+(), OMEstring::operator+=(), operator<(), operator<=(), operator==(), OMEstring::operator==(), operator>(), operator>=(), outputOnStream(), outputOnStreamAsHex(), reverse(), substr(), and truncateToLength().
|
private |
References length(), and UTF8characterLength().
|
private |
|
private |
References length(), and UTF8characterLength().
|
private |
References length(), midstr(), and UTF8characterLength().
|
private |
References OMEreferenceCount::addReadOnlyReference(), OMEstring::determineCharacterSet(), getCharacterSet(), length(), OMEstring::noteCharacterSet(), OME_CHARSET_BINARY, and OMEstring.
Referenced by midMBCSstr().
|
inlineprivate |
References charSet, and OME_CHARSET_MASK_CHARSET.
Referenced by determineCharacterSet().
|
private |
|
private |
|
private |
|
private |
References charSet, length(), str, stringData, and stringIsInROM().
|
private |
References _STD, charSet, length(), OME_CHARSET_MASK_CHARSET, OMEstringStorage(), s, stderr, str, stringData, and stringIsMBCS().
|
private |
References charSet, length(), str, stringData, and stringIsInROM().
|
private |
References charSet, length(), str, stringData, and stringIsInROM().
|
private |
|
private |
References charSet, length(), str, stringData, and stringIsInROM().
|
private |
References charSet, length(), str, stringData, and stringIsInROM().
|
private |
References charSet, length(), str, stringData, and stringIsInROM().
|
private |
References getCharacterSet(), l, length(), OMEstring::noteCharacterSet(), and OMEstring.
|
private |
|
inlinestaticconstexprprivate |
Referenced by length().
|
inlinestaticconstexprprivate |
References OME_CHARSET_STRING_IN_ROM.
Referenced by length(), operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), outputOnStream(), truncateToLength(), and ~OMEstringStorage().
|
inlinestaticconstexprprivate |
References OME_CHARSET_MASK_WIDE_CHARS.
Referenced by length(), OMEstringStorage(), operator+(), outputOnStream(), truncateToLength(), and ~OMEstringStorage().
|
inlineprivate |
References substr().
|
private |
|
private |
References findSubstring(), and length().
Referenced by substr().
|
private |
References charSet, length(), stringData, stringIsInROM(), and stringIsMBCS().
|
friend |
|
friend |
Referenced by OMEstring::deepCopy(), midstr(), and reverse().
|
private |
OMEstringInROM OMEstringStorage::romString |
_STD string* OMEstringStorage::str |
Referenced by operator!=(), operator+(), operator<(), operator<=(), operator==(), operator>(), and operator>=().
union { ... } OMEstringStorage::stringData |
Referenced by length(), OMEstringStorage(), operator!=(), operator+(), operator<(), operator<=(), operator==(), operator>(), operator>=(), outputOnStream(), truncateToLength(), and ~OMEstringStorage().
![]() | Generated: Fri Jul 31 2020 18:19:16
Support Information |