#include <OW_String.hpp>
Collaboration diagram for OW_NAMESPACE::String:
Public Types | |
typedef COWIntrusiveReference< ByteBuf > | buf_t |
enum | ETakeOwnershipFlag { E_TAKE_OWNERSHIP } |
enum | EReturnDelimitersFlag { E_DISCARD_TOKENS, E_RETURN_TOKENS, E_DISCARD_DELIMITERS, E_RETURN_DELIMITERS } |
enum | EEmptyTokenReturnFlag { E_SKIP_EMPTY_TOKENS, E_RETURN_EMPTY_TOKENS } |
enum | EIgnoreCaseFlag { E_CASE_SENSITIVE, E_CASE_INSENSITIVE } |
Public Member Functions | |
String () | |
Create a new String object with a length of 0. | |
String (Int32 val) | |
Create a new String object that will hold the string representation of the given Int32 value. | |
String (UInt32 val) | |
Create a new String object that will hold the string representation of the given UInt32 value. | |
String (long val) | |
Create a new String object that will hold the string representation of the given long value. | |
String (unsigned long val) | |
Create a new String object that will hold the string representation of the given unsigned long value. | |
String (Int64 val) | |
Create a new String object that will hold the string representation of the given Int64 value. | |
String (UInt64 val) | |
Create a new String object that will hold the string representation of the given UInt64 value. | |
String (Real32 val) | |
Create a new String object that will hold the string representation of the given Real32 value. | |
String (Real64 val) | |
Create a new String object that will hold the string representation of the given Real64 value. | |
String (const char *str) | |
Create a new String object that will contain a copy of the given character string. | |
String (const Char16Array &ra) | |
DEPRECATED in 3.1.0. | |
String (Bool parm) | |
DEPRECATED in favor of Bool::toString() in 3.1.0. | |
String (const Char16 &parm) | |
DEPRECATED in favor of Char16::toString() in 3.1.0. | |
String (const CIMDateTime &parm) | |
DEPRECATED in favor of CIMDateTime::toString() in 3.1.0. | |
String (const CIMObjectPath &parm) | |
DEPRECATED in favor of CIMObjectPath::toString() in 3.1.0. | |
String (ETakeOwnershipFlag, char *allocatedMemory, size_t len) | |
Create a new string object from a dynamically allocated buffer. | |
String (const char *str, size_t len) | |
Create s new String object that will contain a copy of the given character string for the given length. | |
String (const String &arg) | |
Create a new String object that is a copy of another String object. | |
String (char c) | |
Create a new String object that contains a single character. | |
~String () | |
Destroy this String object. | |
void | swap (String &x) |
Swap this instance with another. | |
char * | allocateCString () const |
Create a null terminated string that contains the contents of this String. | |
size_t | length () const |
size_t | UTF8Length () const |
If the string is not valid UTF-8, then the result of this function is undefined. | |
bool | empty () const |
int | format (const char *fmt,...) |
Format this string according to the given format and variable argument list (printf style). | |
StringArray | tokenize (const char *delims=" \n\r\t\v", EReturnDelimitersFlag returnDelimitersAsTokens=E_DISCARD_DELIMITERS, EEmptyTokenReturnFlag returnEmptyTokens=E_SKIP_EMPTY_TOKENS) const |
Tokenize this String object using the given delimeters. | |
const char * | c_str () const |
const char * | getBytes () const |
DEPRECATED in favor of c_str() in 3.1.0. | |
char | charAt (size_t ndx) const |
Get the character at a specified index. | |
int | compareTo (const String &arg) const |
Compare another String object with this one. | |
int | compareTo (const char *arg) const |
Compare another string with this one. | |
int | compareToIgnoreCase (const String &arg) const |
Compare another string with this one ignoring case. | |
int | compareToIgnoreCase (const char *arg) const |
Compare another string with this one ignoring case. | |
String & | concat (const char *arg) |
Append a C string to this String object. | |
String & | concat (const String &arg) |
Append another String object to this String object. | |
String & | concat (char arg) |
Append a char to this String object. | |
bool | endsWith (const char *arg, EIgnoreCaseFlag ignoreCase=E_CASE_SENSITIVE) const |
Determine if this String object ends with given C string. | |
bool | endsWith (const String &arg, EIgnoreCaseFlag ignoreCase=E_CASE_SENSITIVE) const |
Determine if this String object ends with the same string represented by another String object. | |
bool | endsWith (char arg) const |
Determine if this String object ends with a given character. | |
bool | equals (const String &arg) const |
Determine if another String object is equal to this String object. | |
bool | equals (const char *arg) const |
Determine if another string is equal to this String object. | |
bool | equalsIgnoreCase (const String &arg) const |
Determine if another String object is equal to this String object, ignoring case in the comparision. | |
bool | equalsIgnoreCase (const char *arg) const |
Determine if another string is equal to this String object, ignoring case in the comparision. | |
UInt32 | hashCode () const |
size_t | indexOf (char ch, size_t fromIndex=0) const |
Find the first occurence of a given character in this String object. | |
size_t | indexOf (const char *arg, size_t fromIndex=0) const |
Find the first occurence of a C string in this String object. | |
size_t | indexOf (const String &arg, size_t fromIndex=0) const |
Find the first occurence of a string in this String object. | |
size_t | lastIndexOf (char ch, size_t fromIndex=npos) const |
Find the last occurence of a character in this String object. | |
size_t | lastIndexOf (const char *arg, size_t fromIndex=npos) const |
Find the last occurence of a C string in this String object. | |
size_t | lastIndexOf (const String &arg, size_t fromIndex=npos) const |
Find the last occurence of a string in this String object. | |
bool | startsWith (const char *arg, EIgnoreCaseFlag ignoreCase=E_CASE_SENSITIVE) const |
Determine if this String object starts with a given substring. | |
bool | startsWith (const String &arg, EIgnoreCaseFlag ignoreCase=E_CASE_SENSITIVE) const |
Determine if this String object starts with a given substring. | |
bool | startsWith (char arg) const |
Determine if this String object starts with a given character. | |
String | substring (size_t beginIndex, size_t length=npos) const |
Create another String object that is comprised of a substring of this String object. | |
bool | isSpaces () const |
String & | toLowerCase () |
Convert this String object to lower case characters. | |
String & | toUpperCase () |
Convert this String object to upper case characters. | |
String & | ltrim () |
Strip all leading space characters from this String object. | |
String & | rtrim () |
Strip all trailing space characters from this String object. | |
String & | trim () |
Strip all leading and trailing space characters from this String object. | |
String & | erase () |
Delete all the characters of the string. | |
String & | erase (size_t idx, size_t len=npos) |
Erases, at most, len characters of *this, starting at index idx. | |
String & | operator= (const String &arg) |
Assignment operator. | |
const char & | operator[] (size_t ndx) const |
Operator []. | |
char & | operator[] (size_t ndx) |
String & | operator+= (const String &arg) |
Concatination operator. | |
String & | operator+= (const char *arg) |
Concatination operator. | |
String & | operator+= (char arg) |
Character concatination operator. | |
void | readObject (std::istream &istrm) |
Read this String object from the given istream. | |
void | writeObject (std::ostream &ostrm) const |
Write this String object to the given ostream. | |
String | toString () const |
Char16 | toChar16 () const |
DEPRECATED in favor of Char16::Char16(const String&) in 3.1.0. | |
Real32 | toReal32 () const |
Real64 | toReal64 () const |
bool | toBool () const |
UInt8 | toUInt8 (int base=10) const |
Int8 | toInt8 (int base=10) const |
UInt16 | toUInt16 (int base=10) const |
Int16 | toInt16 (int base=10) const |
UInt32 | toUInt32 (int base=10) const |
Int32 | toInt32 (int base=10) const |
UInt64 | toUInt64 (int base=10) const |
Int64 | toInt64 (int base=10) const |
unsigned int | toUnsignedInt (int base=10) const |
int | toInt (int base=10) const |
CIMDateTime | toDateTime () const |
DEPRECATED in favor of CIMDateTime::CIMDateTime(const String&) in 3.1.0. | |
Static Public Member Functions | |
static unsigned long long int | strtoull (const char *nptr, char **endptr, int base) |
Convert a null terminated string to an unsigned 64 bit value. | |
static long long int | strtoll (const char *nptr, char **endptr, int base) |
Convert a null terminated string to an signed 64 bit value. | |
static const char * | strchr (const char *theStr, int c) |
Find the first occurrence of a character in a null terminated string. | |
static String | getLine (std::istream &istr) |
Reads from in input stream until a newline is encountered. | |
Static Public Attributes | |
static const size_t | npos = size_t(~0) |
Private Attributes | |
buf_t | m_buf |
Classes | |
class | ByteBuf |
String objects are ref counted and copy on write. Internal representation is UTF-8. Conversion to/from Char16 (UCS-2) is performed correctly. All operations that return/take an offset are based on the character array as if this were an ASCII string. The class does not enforce or maintain the integrity of any UTF-8 chars. length() returns the size in bytes of the string. Use UTF8Length() to get the number of chars in the string.
Definition at line 63 of file OW_String.hpp.
|
Definition at line 752 of file OW_String.hpp. |
|
Definition at line 252 of file OW_String.hpp. |
|
Definition at line 345 of file OW_String.hpp. |
|
Definition at line 245 of file OW_String.hpp. |
|
Definition at line 171 of file OW_String.hpp. |
|
Create a new String object with a length of 0.
Definition at line 137 of file OW_String.cpp. Referenced by substring(), tokenize(), and trim(). |
|
Create a new String object that will hold the string representation of the given Int32 value.
Definition at line 155 of file OW_String.cpp. References OW_NAMESPACE::AutoPtrVec< X >::get(), and m_buf. |
|
Create a new String object that will hold the string representation of the given UInt32 value.
Definition at line 165 of file OW_String.cpp. References OW_NAMESPACE::AutoPtrVec< X >::get(), and m_buf. |
|
Create a new String object that will hold the string representation of the given long value.
Definition at line 176 of file OW_String.cpp. References OW_NAMESPACE::AutoPtrVec< X >::get(), and m_buf. |
|
Create a new String object that will hold the string representation of the given unsigned long value.
Definition at line 186 of file OW_String.cpp. References OW_NAMESPACE::AutoPtrVec< X >::get(), and m_buf. |
|
Create a new String object that will hold the string representation of the given Int64 value.
Definition at line 200 of file OW_String.cpp. References OW_NAMESPACE::OStringStream::c_str(), and m_buf. |
|
Create a new String object that will hold the string representation of the given UInt64 value.
Definition at line 208 of file OW_String.cpp. References OW_NAMESPACE::OStringStream::c_str(), and m_buf. |
|
Create a new String object that will hold the string representation of the given Real32 value.
Definition at line 225 of file OW_String.cpp. |
|
Create a new String object that will hold the string representation of the given Real64 value.
Definition at line 241 of file OW_String.cpp. |
|
Create a new String object that will contain a copy of the given character string.
Definition at line 257 of file OW_String.cpp. References m_buf. |
|
DEPRECATED in 3.1.0. Create a new String object that will contain a single byte character representation of the Char16Array.
Definition at line 306 of file OW_String.cpp. References i, m_buf, OW_NAMESPACE::Array< T >::size(), and toString(). |
|
DEPRECATED in favor of Bool::toString() in 3.1.0. Create a new String object that will contain the representation of a Bool value ("TRUE" "FALSE").
Definition at line 142 of file OW_String.cpp. |
|
DEPRECATED in favor of Char16::toString() in 3.1.0. Create a new String object that will contain the representation of an Char16 object
Definition at line 147 of file OW_String.cpp. |
|
DEPRECATED in favor of CIMDateTime::toString() in 3.1.0. Create a new String object that will contain the representation of an CIMDateTime object
Definition at line 292 of file OW_String.cpp. References m_buf, s, and OW_NAMESPACE::CIMDateTime::toString(). |
|
DEPRECATED in favor of CIMObjectPath::toString() in 3.1.0. Create a new String object that will contain the representation of an CIMObjectPath object.
Definition at line 299 of file OW_String.cpp. References m_buf, s, and OW_NAMESPACE::CIMObjectPath::toString(). |
|
Create a new string object from a dynamically allocated buffer. The buffer is assumed to contain a valid c string and be previously allocated with the new operator. The memory given by the allocatedMemory parameter will be deallocated by the String class.
Definition at line 263 of file OW_String.cpp. |
|
Create s new String object that will contain a copy of the given character string for the given length.
Definition at line 271 of file OW_String.cpp. References OW_NAMESPACE::AutoPtrVec< X >::get(), and m_buf. |
|
Create a new String object that is a copy of another String object. Upon return, both String objects will point to the same underlying character buffer. This state will remain until one of the 2 String objects is modified (copy on write)
Definition at line 287 of file OW_String.cpp. |
|
Create a new String object that contains a single character.
Definition at line 325 of file OW_String.cpp. References m_buf. |
|
Destroy this String object.
Definition at line 341 of file OW_String.cpp. |
|
Create a null terminated string that contains the contents of this String. The returned pointer MUST be deleted by the caller using free().
Definition at line 352 of file OW_String.cpp. References c_str(), and length(). Referenced by OW_NAMESPACE::NPIPolledProviderProxy::activateFilter(), and OW_NAMESPACE::NPIPolledProviderProxy::deactivateFilter(). |
|
|
Get the character at a specified index.
Definition at line 406 of file OW_String.cpp. References m_buf. |
|
Compare another string with this one.
Definition at line 412 of file OW_String.cpp. References m_buf. |
|
Compare another String object with this one.
Definition at line 423 of file OW_String.cpp. References c_str(). Referenced by equals(), OW_NAMESPACE::operator!=(), OW_NAMESPACE::operator<(), OW_NAMESPACE::operator<=(), OW_NAMESPACE::operator==(), OW_NAMESPACE::operator>(), and OW_NAMESPACE::operator>=(). |
|
Compare another string with this one ignoring case.
Definition at line 429 of file OW_String.cpp. References OW_NAMESPACE::UTF8Utils::compareToIgnoreCase(), and m_buf. |
|
Compare another string with this one ignoring case.
Definition at line 440 of file OW_String.cpp. References c_str(). Referenced by equalsIgnoreCase(), and OW_NAMESPACE::operator<(). |
|
Append a char to this String object.
Definition at line 466 of file OW_String.cpp. References OW_NAMESPACE::AutoPtrVec< X >::get(), length(), and m_buf. |
|
Append another String object to this String object.
Definition at line 334 of file OW_String.hpp. References c_str(). |
|
Append a C string to this String object.
Definition at line 447 of file OW_String.cpp. References length(), and m_buf. Referenced by OW_NAMESPACE::String_append(). |
|
|
Determine if this String object ends with a given character.
Definition at line 483 of file OW_String.cpp. References m_buf. |
|
Determine if this String object ends with the same string represented by another String object.
Definition at line 369 of file OW_String.hpp. References c_str(). |
|
Determine if this String object ends with given C string.
Definition at line 492 of file OW_String.cpp. References OW_NAMESPACE::UTF8Utils::compareToIgnoreCase(), length(), and m_buf. Referenced by OW_NAMESPACE::CIMOMEnvironment::_createIndicationServer(), and OW_NAMESPACE::FileSystem::getDirectoryContents(). |
|
Determine if another string is equal to this String object.
Definition at line 516 of file OW_String.cpp. References compareTo(). |
|
Determine if another String object is equal to this String object.
Definition at line 522 of file OW_String.cpp. References c_str(). Referenced by OW_NAMESPACE::ClientCIMOMHandle::createFromURL(), OW_NAMESPACE::decodeLongMonth(), OW_NAMESPACE::AssocDb::deleteEntry(), OW_NAMESPACE::GenericHDBRepository::deleteNameSpace(), OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::exportIndication(), OW_NAMESPACE::AssocDb::findEntry(), OW_NAMESPACE::XMLCIMFactory::isKnownEmbeddedObjectName(), OW_NAMESPACE::operator==(), and OW_NAMESPACE::HTTPClient::sendDataToServer(). |
|
Determine if another string is equal to this String object, ignoring case in the comparision.
Definition at line 528 of file OW_String.cpp. References compareToIgnoreCase(). |
|
|
Erases, at most, len characters of *this, starting at index idx. if len == npos, erase to the end of the string.
Definition at line 840 of file OW_String.cpp. References length(), npos, and substring(). |
|
Delete all the characters of the string. Thus, the string is empty after the call.
Definition at line 833 of file OW_String.cpp. References m_buf. Referenced by OW_NAMESPACE::WQLSelectStatement::clear(), OW_NAMESPACE::RequestHandlerIFC::clearError(), OW_NAMESPACE::createFileHelper(), OW_NAMESPACE::BinaryRequestHandler::doOptions(), OW_NAMESPACE::HTTPClient::getFeatures(), OW_NAMESPACE::getKeyValue(), OW_NAMESPACE::ListenerAuthenticator::getNewCredentials(), OW_NAMESPACE::Format::process(), and OW_NAMESPACE::HTTPSvrConnection::run(). |
|
Format this string according to the given format and variable argument list (printf style).
Definition at line 376 of file OW_String.cpp. References OW_NAMESPACE::AutoPtrVec< X >::get(), length(), and m_buf. Referenced by OW_NAMESPACE::DigestAuthentication::generateNewNonce(), and OW_NAMESPACE::HTTPClient::sendAuthorization(). |
|
DEPRECATED in favor of c_str() in 3.1.0.
Definition at line 282 of file OW_String.hpp. |
|
Reads from in input stream until a newline is encountered. This consumes the newline character (but doesn't put the newline in the return value), and leaves the file pointer at the char past the newline.
Referenced by OW_NAMESPACE::HTTPUtils::buildMap(), OW_NAMESPACE::HTTPClient::getStatusLine(), OW_NAMESPACE::ConfigFile::loadConfigFile(), OW_NAMESPACE::HTTPUtils::parseHeader(), and OW_NAMESPACE::HTTPClient::sendAuthorization(). |
|
Definition at line 540 of file OW_String.cpp. |
|
Find the first occurence of a string in this String object.
Definition at line 444 of file OW_String.hpp. References c_str(). |
|
Find the first occurence of a C string in this String object.
Definition at line 582 of file OW_String.cpp. |
|
Find the first occurence of a given character in this String object.
Definition at line 561 of file OW_String.cpp. References length(), m_buf, npos, and strchr(). Referenced by OW_NAMESPACE::NameSpaceProvider::createInstance(), OW_NAMESPACE::HTTPUtils::decodeBasicCreds(), OW_NAMESPACE::SocketAddress::getAnyLocalHost(), OW_NAMESPACE::getAuthParam(), OW_NAMESPACE::HTTPClient::getFeatures(), OW_NAMESPACE::ConfigFile::loadConfigFile(), OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv::loadConfigMap(), OW_NAMESPACE::parseInfo(), OW_NAMESPACE::HTTPClient::processHeaders(), OW_NAMESPACE::ListenerAuthenticator::removeCredentials(), and OW_NAMESPACE::URL::URL(). |
|
Definition at line 738 of file OW_String.cpp. References m_buf. Referenced by OW_NAMESPACE::HTTPUtils::buildMap(), and OW_NAMESPACE::HTTPUtils::parseHeader(). |
|
Find the last occurence of a string in this String object.
Definition at line 475 of file OW_String.hpp. References c_str(). |
|
Find the last occurence of a C string in this String object.
Definition at line 635 of file OW_String.cpp. |
|
Find the last occurence of a character in this String object.
Definition at line 608 of file OW_String.cpp. References i, length(), m_buf, and npos. Referenced by OW_NAMESPACE::cleanupEntryHelper(), OW_NAMESPACE::MOF::Compiler::compile(), OW_NAMESPACE::CIMNameSpaceUtils::create__Namespace(), OW_NAMESPACE::CIMNameSpaceUtils::delete__Namespace(), OW_NAMESPACE::FileSystem::Path::dirname(), OW_NAMESPACE::CppProviderIFC::loadProvider(), and OW_NAMESPACE::randFilePathIsSecure(). |
|
|
Strip all leading space characters from this String object.
Definition at line 753 of file OW_String.cpp. References m_buf. Referenced by OW_NAMESPACE::HTTPUtils::buildMap(). |
|
Character concatination operator.
Definition at line 604 of file OW_String.hpp. |
|
Concatination operator.
Definition at line 597 of file OW_String.hpp. |
|
Concatination operator.
Definition at line 590 of file OW_String.hpp. |
|
Assignment operator.
Definition at line 907 of file OW_String.cpp. References m_buf. |
|
Definition at line 948 of file OW_String.cpp. |
|
Operator [].
Definition at line 928 of file OW_String.cpp. |
|
Read this String object from the given istream. An String must have been previously written to this location of the stream.
Referenced by OW_NAMESPACE::MetaRepository::_getClassNameFromNode(), OW_NAMESPACE::BinarySerialization::read(), OW_NAMESPACE::CIMName::readObject(), OW_NAMESPACE::readReal32Value(), OW_NAMESPACE::readReal64Value(), and OW_NAMESPACE::BinarySerialization::readString(). |
|
Strip all trailing space characters from this String object.
Definition at line 773 of file OW_String.cpp. References length(), and m_buf. Referenced by OW_NAMESPACE::HTTPUtils::buildMap(). |
|
Determine if this String object starts with a given character.
Definition at line 668 of file OW_String.cpp. References m_buf. |
|
Determine if this String object starts with a given substring.
Definition at line 497 of file OW_String.hpp. References c_str(). |
|
Determine if this String object starts with a given substring.
Definition at line 677 of file OW_String.cpp. References length(), m_buf, and OW_NAMESPACE::strncmpi(). Referenced by OW_NAMESPACE::ClientCIMOMHandle::createFromURL(), and OW_NAMESPACE::CmdLineParserException::~CmdLineParserException(). |
|
Find the first occurrence of a character in a null terminated string.
Definition at line 1529 of file OW_String.cpp. Referenced by indexOf(), tokenize(), and trim(). |
|
Convert a null terminated string to an signed 64 bit value.
Definition at line 1219 of file OW_String.cpp. Referenced by OW_NAMESPACE::convertToInt64Type(), OW_NAMESPACE::WQLProcessor::visit_aExprConst_BITCONST(), and OW_NAMESPACE::WQLProcessor::visit_aExprConst_HEXCONST(). |
|
Convert a null terminated string to an unsigned 64 bit value.
Definition at line 1363 of file OW_String.cpp. Referenced by OW_NAMESPACE::convertToUInt64Type(). |
|
|
Swap this instance with another.
Definition at line 346 of file OW_String.cpp. References m_buf, and OW_NAMESPACE::COWIntrusiveReference< T >::swap(). Referenced by OW_NAMESPACE::Logger::swap(). |
|
Definition at line 1028 of file OW_String.cpp. References c_str(), equalsIgnoreCase(), and OW_NAMESPACE::throwStringConversion(). Referenced by OW_NAMESPACE::CIMValue::CIMValueImpl::createSimpleValue(). |
|
DEPRECATED in favor of Char16::Char16(const String&) in 3.1.0.
Definition at line 977 of file OW_String.cpp. References c_str(), OW_NAMESPACE::throwStringConversion(), and UTF8Length(). |
|
DEPRECATED in favor of CIMDateTime::CIMDateTime(const String&) in 3.1.0.
Definition at line 1156 of file OW_String.cpp. |
|
Definition at line 1150 of file OW_String.cpp. References m_buf. |
|
Definition at line 1114 of file OW_String.cpp. References m_buf. Referenced by OW_NAMESPACE::CIMValue::CIMValueImpl::createSimpleValue(), and OW_NAMESPACE::XMLCIMFactory::StringToType(). |
|
Definition at line 1126 of file OW_String.cpp. References m_buf. Referenced by OW_NAMESPACE::XMLCIMFactory::createParameter(), OW_NAMESPACE::CIMValue::CIMValueImpl::createSimpleValue(), OW_NAMESPACE::SLPProvider::doSlpRegister(), OW_NAMESPACE::CppProviderIFC::doUnloadProviders(), OW_NAMESPACE::CMPIProviderIFC::doUnloadProviders(), OW_NAMESPACE::HTTPServer::init(), OW_NAMESPACE::HTTPClient::processHeaders(), OW_NAMESPACE::XMLCIMFactory::StringToType(), and OW_NAMESPACE::CIMOMEnvironment::unloadReqHandlers(). |
|
Definition at line 1138 of file OW_String.cpp. References m_buf. Referenced by OW_NAMESPACE::CIMValue::CIMValueImpl::createSimpleValue(), OW_NAMESPACE::HTTPSvrConnection::processHeaders(), and OW_NAMESPACE::XMLCIMFactory::StringToType(). |
|
Definition at line 1102 of file OW_String.cpp. References m_buf. Referenced by OW_NAMESPACE::CIMValue::CIMValueImpl::createSimpleValue(), and OW_NAMESPACE::XMLCIMFactory::StringToType(). |
|
Tokenize this String object using the given delimeters.
Definition at line 1162 of file OW_String.cpp. References OW_NAMESPACE::Array< T >::append(), E_RETURN_DELIMITERS, E_RETURN_EMPTY_TOKENS, E_RETURN_TOKENS, empty(), i, m_buf, strchr(), and String(). Referenced by OW_NAMESPACE::HTTPServer::authenticate(), OW_NAMESPACE::HTTPClient::checkAndExamineStatusLine(), OW_NAMESPACE::HTTPUtils::date(), OW_NAMESPACE::SyslogAppender::doProcessLogMessage(), OW_NAMESPACE::WQLInstancePropertySource::evaluateISA(), OW_NAMESPACE::FileSystem::getFileLines(), OW_NAMESPACE::WQLInstancePropertySource::getValue(), OW_NAMESPACE::locateInPath(), OW_NAMESPACE::HTTPUtils::parseHeader(), OW_NAMESPACE::parseInfo(), and OW_NAMESPACE::HTTPClient::receiveAuthentication(). |
|
Convert this String object to lower case characters.
Definition at line 858 of file OW_String.cpp. References m_buf, OW_NAMESPACE::UTF8Utils::toLowerCase(), and OW_NAMESPACE::UTF8Utils::toLowerCaseInPlace(). Referenced by OW_NAMESPACE::IndicationServerImplThread::_processIndication(), OW_NAMESPACE::UtilKeyArray::addElement(), OW_NAMESPACE::IndicationRepLayerMediator::addSubscription(), OW_NAMESPACE::HTTPServer::authenticate(), OW_NAMESPACE::MOF::CIMOMVisitor::CIMOMprocessQualifierType(), OW_NAMESPACE::MOF::CIMOMVisitor::compileDep(), OW_NAMESPACE::IndicationRepLayerMediator::deleteSubscription(), OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv::doReferences(), OW_NAMESPACE::ProviderManager::findIndicationProviders(), OW_NAMESPACE::ProviderManager::getAssociatorProvider(), OW_NAMESPACE::ProviderAgentCIMOMHandle::getAssociatorProvider(), OW_NAMESPACE::MOF::CIMOMVisitor::getClass(), OW_NAMESPACE::HTTPUtils::getHeaderValue(), OW_NAMESPACE::ProviderManager::getIndicationProviders(), OW_NAMESPACE::ProviderManager::getInstanceProvider(), OW_NAMESPACE::ProviderAgentCIMOMHandle::getInstanceProvider(), OW_NAMESPACE::ProviderManager::getMethodProvider(), OW_NAMESPACE::ProviderAgentCIMOMHandle::getMethodProvider(), OW_NAMESPACE::MOF::CIMOMVisitor::getQualifierType(), OW_NAMESPACE::ProviderAgentCIMOMHandle::getSecondaryInstanceProvider(), OW_NAMESPACE::ProviderManager::getSecondaryInstanceProviders(), OW_NAMESPACE::HTTPUtils::headerHasKey(), OW_NAMESPACE::ProviderAgentCIMOMHandle::helperGetClass(), OW_NAMESPACE::XMLCIMFactory::isKnownEmbeddedObjectName(), OW_NAMESPACE::ProviderManager::isRestrictedNamespace(), OW_NAMESPACE::InstanceRepository::makeClassKey(), OW_NAMESPACE::AssocDbEntry2::makeKey(), OW_NAMESPACE::AssocDbEntry::makeKey(), OW_NAMESPACE::modelPath(), OW_NAMESPACE::objectPathAsKeyString(), OW_NAMESPACE::HTTPClient::receiveAuthentication(), OW_NAMESPACE::registerProviderInfo(), OW_NAMESPACE::UtilKeyArray::toString(), and OW_NAMESPACE::URL::URL(). |
|
Definition at line 1008 of file OW_String.cpp. References m_buf. Referenced by OW_NAMESPACE::CIMValue::CIMValueImpl::createSimpleValue(), OW_NAMESPACE::readReal32Value(), and OW_NAMESPACE::XMLCIMFactory::StringToType(). |
|
Definition at line 1018 of file OW_String.cpp. References m_buf. Referenced by OW_NAMESPACE::CIMValue::CIMValueImpl::createSimpleValue(), OW_NAMESPACE::readReal64Value(), and OW_NAMESPACE::XMLCIMFactory::StringToType(). |
|
Definition at line 959 of file OW_String.cpp. Referenced by OW_NAMESPACE::HTTPUtils::DigestCalcHA1(), OW_NAMESPACE::RemoteProviderInterface::doInit(), OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::exportIndication(), OW_NAMESPACE::CIMObjectPath::getClassName(), OW_NAMESPACE::CIMInstance::getClassName(), OW_NAMESPACE::HTTPUtils::getHeaderValue(), OW_NAMESPACE::CIMServer::getProperty(), OW_NAMESPACE::CIMProperty::getQualifierT(), OW_NAMESPACE::CIMClass::getSuperClass(), OW_NAMESPACE::HTTPUtils::headerHasKey(), OW_NAMESPACE::OpenWBEM_ObjectManagerInstProv::initialize(), OW_NAMESPACE::modelPath(), OW_NAMESPACE::operator<<(), OW_NAMESPACE::CIMServer::setProperty(), String(), OW_NAMESPACE::CIMValue::toString(), and OW_NAMESPACE::CIMParameter::toString(). |
|
Definition at line 1108 of file OW_String.cpp. References m_buf. Referenced by OW_NAMESPACE::LocalAuthenticationCommon::createFile(), OW_NAMESPACE::CIMValue::CIMValueImpl::createSimpleValue(), OW_NAMESPACE::isUInt16(), and OW_NAMESPACE::XMLCIMFactory::StringToType(). |
|
Definition at line 1120 of file OW_String.cpp. References m_buf. Referenced by OW_NAMESPACE::LocalAuthenticationCommon::createFile(), OW_NAMESPACE::CIMValue::CIMValueImpl::createSimpleValue(), OW_NAMESPACE::MetaRepository::init(), OW_NAMESPACE::MetaRepository2::MetaRepository2(), and OW_NAMESPACE::XMLCIMFactory::StringToType(). |
|
Definition at line 1132 of file OW_String.cpp. References m_buf. Referenced by OW_NAMESPACE::HTTPClient::convertToFiniteStream(), OW_NAMESPACE::LocalAuthenticationCommon::createFile(), OW_NAMESPACE::CIMValue::CIMValueImpl::createSimpleValue(), and OW_NAMESPACE::XMLCIMFactory::StringToType(). |
|
Definition at line 1096 of file OW_String.cpp. References m_buf. Referenced by OW_NAMESPACE::CIMValue::CIMValueImpl::createSimpleValue(), and OW_NAMESPACE::XMLCIMFactory::StringToType(). |
|
Definition at line 1144 of file OW_String.cpp. References m_buf. |
|
Convert this String object to upper case characters.
Definition at line 872 of file OW_String.cpp. References m_buf, OW_NAMESPACE::UTF8Utils::toUpperCase(), and OW_NAMESPACE::UTF8Utils::toUpperCaseInPlace(). |
|
Strip all leading and trailing space characters from this String object.
Definition at line 799 of file OW_String.cpp. References length(), m_buf, strchr(), and String(). Referenced by OW_NAMESPACE::HTTPUtils::addHeader(), OW_NAMESPACE::HTTPChunkedOStream::addTrailer(), OW_NAMESPACE::HTTPClient::getFeatures(), OW_NAMESPACE::HTTPClient::getStatusLine(), OW_NAMESPACE::ConfigFile::loadConfigFile(), OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv::loadConfigMap(), OW_NAMESPACE::CIMObjectPath::parse(), OW_NAMESPACE::parseInfo(), OW_NAMESPACE::CIMNameSpace::setNameSpace(), and OW_NAMESPACE::URL::URL(). |
|
If the string is not valid UTF-8, then the result of this function is undefined.
Definition at line 367 of file OW_String.cpp. References c_str(), and OW_NAMESPACE::UTF8Utils::charCount(). Referenced by toChar16(). |
|
Write this String object to the given ostream.
Referenced by OW_NAMESPACE::BinarySerialization::write(), OW_NAMESPACE::CIMName::writeObject(), OW_NAMESPACE::writeRealValue(), and OW_NAMESPACE::BinarySerialization::writeString(). |
|
Definition at line 754 of file OW_String.hpp. Referenced by c_str(), charAt(), compareTo(), compareToIgnoreCase(), concat(), endsWith(), erase(), format(), hashCode(), indexOf(), isSpaces(), lastIndexOf(), length(), ltrim(), operator=(), operator[](), rtrim(), startsWith(), String(), substring(), swap(), toInt(), toInt16(), toInt32(), toInt64(), toInt8(), tokenize(), toLowerCase(), toReal32(), toReal64(), toUInt16(), toUInt32(), toUInt64(), toUInt8(), toUnsignedInt(), toUpperCase(), and trim(). |
|
Definition at line 744 of file OW_String.hpp. Referenced by OW_NAMESPACE::CIMUrl::checkRef(), OW_NAMESPACE::cleanupEntryHelper(), OW_NAMESPACE::MOF::Compiler::compile(), erase(), OW_NAMESPACE::SocketAddress::getAnyLocalHost(), OW_NAMESPACE::getAuthParam(), OW_NAMESPACE::HTTPClient::getFeatures(), indexOf(), lastIndexOf(), OW_NAMESPACE::ConfigFile::loadConfigFile(), OW_NAMESPACE::NPIProviderIFC::loadNoIdProviders(), OW_NAMESPACE::CMPIProviderIFC::loadNoIdProviders(), OW_NAMESPACE::parseInfo(), OW_NAMESPACE::HTTPClient::processHeaders(), OW_NAMESPACE::splitUpProps(), substring(), and OW_NAMESPACE::URL::URL(). |