FARGOS/VISTA Object Management Environment Core
..
|
Implements text and binary string storage. More...
#include <OMEstring.h>
Public Member Functions | |
OMEstring () | |
OMEstring (const OMEstring &org) | |
OMEstring (const char *s, uint_fast8_t impliedCharSet=OME_DEFAULT_CHARSET) | |
OMEstring (const unsigned char *s, ssize_t l=-1, uint_fast8_t impliedCharSet=OME_CHARSET_UNDEFINED) | |
OMEstring (OMEstringInROM s, ssize_t l=-1, uint_fast8_t impliedCharSet=OME_DEFAULT_CHARSET) | |
OMEstring (size_t l, uint_fast8_t impliedCharSet=OME_CHARSET_UNDEFINED) | |
OMEstring & | operator= (const OMEstring &arg) |
~OMEstring () | |
OMEstring * | deepCopy () const |
OMEstring & | operator= (const char *s) |
OMEstring & | operator= (const unsigned char *s) |
void | noteCharacterSet (uint_fast8_t c) |
void | determineCharacterSet () |
uint_fast8_t | getCharacterSet () const |
size_t | length () const |
operator const char * () const | |
operator const unsigned char * () const | |
OMEstring * | printableCopy () const |
bool | operator== (const OMEstring &arg) const |
bool | operator!= (const OMEstring &arg) const |
bool | operator< (const OMEstring &arg) const OME_ALWAYS_INLINE |
bool | operator> (const OMEstring &arg) const OME_ALWAYS_INLINE |
bool | operator<= (const OMEstring &arg) const OME_ALWAYS_INLINE |
bool | operator>= (const OMEstring &arg) const OME_ALWAYS_INLINE |
bool | operator== (const char *arg) const OME_ALWAYS_INLINE |
bool | operator!= (const char *arg) const OME_ALWAYS_INLINE |
bool | operator== (const unsigned char *arg) const OME_ALWAYS_INLINE |
bool | operator!= (const unsigned char *arg) const OME_ALWAYS_INLINE |
OMEstring * | operator+ (const OMEstring &rop) const |
OMEstring & | operator+= (const OMEstring &rop) |
ssize_t | substr (const OMEstring &sub, size_t startOffset=0) const |
ssize_t | lastSubstr (const OMEstring &sub, size_t startOffset=~static_cast< size_t >(0)) const |
ssize_t | substr (const unsigned char *sub, size_t len=~static_cast< size_t >(0), size_t startOffset=0) const |
ssize_t | substr (const char *sub, size_t len=~static_cast< size_t >(0), size_t startOffset=0) const |
ssize_t | lastSubstr (const unsigned char *sub, size_t len=~static_cast< size_t >(0), size_t startOffset=~static_cast< size_t >(0)) const |
unsigned char | midchar (size_t offset) const |
OMEstring * | midstr (size_t offset, size_t len) const |
OMEstring * | reverse () const |
void | truncateToLength (size_t newLen) |
template<typename STREAMTYPE > | |
STREAMTYPE & | outputOnStream (STREAMTYPE &outputStream, int_fast16_t indent=0, uint8_t includeTypePrefix=0) const |
Output an OMEstring to an output stream. More... | |
template<typename STREAMTYPE > | |
STREAMTYPE & | outputOnStreamAsHex (STREAMTYPE &outputStream, int_fast16_t indent=0, bool dense=false) const |
Output the contents of an OMEstring object to an output stream as a collection of hexadecimal characters. More... | |
![]() | |
void | getUniqueReference () |
Force unique reference to the data, which will trigger duplication if necessary (copy-on-write). More... | |
int_fast32_t | totalReferences () const OME_ALWAYS_INLINE |
Get current reference total. More... | |
Static Public Attributes | |
static const OMEstring | nullOMEstring |
Private Member Functions | |
OMEstring (OMEstringStorage *s) | |
Friends | |
class | OMEstringStorage |
Additional Inherited Members | |
![]() | |
void | addReadOnlyReference () OME_ALWAYS_INLINE |
void | dropReference (OMEstringStorage *newData=nullptr) OME_ALWAYS_INLINE |
OMEreferenceToData () | |
OMEreferenceToData (OMEstringStorage *existingData) NONNULL_CLASS_PARAMETERS(2) | |
OMEreferenceToData (const OMEreferenceToData< OMEstringStorage > &org) | |
virtual | ~OMEreferenceToData () |
![]() | |
OMEstringStorage * | data |
Implements text and binary string storage.
|
inlineexplicitprivate |
References s.
|
inline |
References OMEstringStorage::OMEstringStorage().
Referenced by operator+(), and printableCopy().
|
inline |
|
inlineexplicit |
References OMEstringStorage::OMEstringStorage(), and s.
|
inlineexplicit |
References l, OMEstringStorage::OMEstringStorage(), and s.
|
inlineexplicit |
References l, OMEstringStorage::OMEstringStorage(), and s.
|
inlineexplicit |
References l, and OMEstringStorage::OMEstringStorage().
|
inline |
|
inline |
References OMEstringStorage::OMEstring.
|
inline |
|
inline |
|
inline |
References OMEreferenceToData< C >::data.
Referenced by findLastSubstring(), and findLastSubstringBefore().
|
inline |
|
inline |
Referenced by caseInsensitiveCompare(), concatBits(), OMEencodeBuffer::condenseIntoString(), convertCaseOfString(), createNLM(), OMEtype::decode(), decodeMultiPart(), decodeVersion1(), decodeVersion2(), displayVisible(), OMEencodeBufferElement::elementSize(), expandSSIvars(), OMEnlmCatalog::findCatalogFile(), OMEclass::findMethod(), getFileInfo(), length(), lookupAddress(), main(), midchar(), OMEbinaryToBase64(), OMEbinaryToHex(), OMEcompressString(), OMEconvertString(), OMEconvertURIescapes(), OMEfindClassDescription(), OMEfindFileInDirectory(), OMEgetSigningFile(), OMEgunzipString(), OMEgzipString(), OMEhash(), OMEhexToBinary(), OMElistDirectory(), OMEmakeMD5hash(), OMEmakePrivateKey(), OMEmakeSafeURI(), OMEmakeSHA1hash(), OMEmakeSHA256hash(), OMEopenURL(), OMEparsePathSpecification(), OMEreadLicenseFile(), OMEuncompressString(), OMEfileDescriptor::openFileScheme(), OMEsocketDescriptor::openSocketScheme(), operator+(), operator+=(), OMEnlmStorage::outputOnStream(), parseAttributeValuePairs(), parseHTTPformData(), parseHTTPuriData(), parseMIMEblock(), parseMIMEheaderLines(), parsePathComponents(), parseStringIntoSSIelements(), printableCopy(), OMEconnection::sendString(), OMEthread::setUserID(), stringToArrayOfTokens(), stripHTML(), substituteEnvironmentVariables(), and substituteText().
|
inline |
Referenced by midchar().
|
inline |
Referenced by midstr(), and parseMIMEblock().
|
inline |
Referenced by convertCaseOfString(), decodeVersion1(), expandSSIvars(), OMEstringStorage::midstr(), OMEconvertURIescapes(), OMEmakeSafeURI(), OMEuncompressString(), parseHTTPformData(), parseHTTPuriData(), parseMIMEheaderLines(), parsePathComponents(), parseStringIntoSSIelements(), pathComponentsToString(), printableCopy(), OMEstringStorage::reverse(), stringToArrayOfTokens(), stripHTML(), and substituteText().
|
inline |
|
inline |
|
inline |
|
inline |
References OMEreferenceToData< C >::data, and OMEstringStorage::length().
|
inline |
References OMEreferenceToData< OMEstringStorage >::data, OMEreferenceToData< C >::data, length(), OMEstring(), and s.
|
inline |
|
inline |
|
inline |
References OMEreferenceToData< C >::dropReference(), OMEstringStorage::OMEstringStorage(), and s.
|
inline |
References OMEreferenceToData< C >::dropReference(), OMEstringStorage::OMEstringStorage(), and s.
|
inline |
|
inline |
References OMEreferenceToData< C >::data, and OMEstringStorage::length().
|
inline |
|
inline |
|
inline |
|
inline |
Output an OMEstring to an output stream.
outputStream | is a reference to an output stream. |
indent | specifies the number of spaces to indent before beginning output. If negative, no indent is performed for the first line, but subsequent lines are indented based on the absolute value of indent. |
includeTypePrefix | is a mask of flags indicating if type names should prefix data elements, if strings should be enclosed in quotes, etc. |
Referenced by operator<<(), and skipAndOutputSetToStreamAsHex().
|
inline |
Output the contents of an OMEstring object to an output stream as a collection of hexadecimal characters.
outputStream | is a reference to an output stream. |
indent | specifies the number of spaces to indent before beginning output. If negative, no indent is performed for the first line, but subsequent lines are indented based on the absolute value of indent. |
dense | is a Boolean flag indicating if the content should be output as one contiguous sequence of hexadecimal characters or broken across multiple lines as needed. |
Referenced by OMEconnection::sendString(), and skipAndOutputSetToStreamAsHex().
OMEstring * OMEstring::printableCopy | ( | ) | const |
References length(), noteCharacterSet(), OME_DEFAULT_CHARSET, and OMEstring().
Referenced by forceToASCII().
|
inline |
Referenced by reverseString().
|
inline |
|
inline |
References OMEreferenceToData< C >::data.
Referenced by decodeMIMEdata(), OMEclass::findMethod(), findSubstring(), findSubstringAfter(), lookupAddress(), and parseMIMEblock().
|
inline |
|
inline |
References OMEreferenceToData< C >::getUniqueReference().
Referenced by OMEcompressString(), OMEgzipString(), OMEuncompressString(), and stripHTML().
|
friend |
Referenced by operator+=().
|
static |
![]() | Generated: Fri Jul 31 2020 18:19:16
Support Information |