XMLString Class
The XMLString is a class for parsing, manipulating and containing an xml string. More...
Header: | #include <XMLString> |
Public Functions
XMLString(void) | |
XMLString(const XMLString &rhs) | |
XMLString(const char *pOther) | |
XMLString(const double val) | |
XMLString(const float val) | |
XMLString(const unsigned int val) | |
XMLString(const int val) | |
XMLString(const unsigned short val) | |
XMLString(const short val) | |
XMLString(const unsigned char val) | |
XMLString(const char val) | |
XMLString(const bool val) | |
XMLString(const int64_t val) | |
XMLString(const uint64_t val) | |
void | CopyFromTemporaryString(char *pzFrom) |
std::string | EscapedString() const |
unsigned int | Find(unsigned int nCount, const char *pzString) |
unsigned int | GetLength() const |
char | GetStopChar() |
void | Set(const char *pzNewString) |
void | Set(const char *pzNewString, unsigned int nLen) |
XMLString & | SetFromCharPointer(const char *pStartChar, const char *pzStopOnOneOf, int MaxLength, unsigned int &nLineNumber) |
XMLString & | SetFromCharPointerExact(const char *pStartChar, const char *pzStopOnString, unsigned int &nLineNumber) |
void | SetStopChar(char newEndChar) |
std::string | String() const |
void | Unescape() |
std::string | UnescapedString() const |
const char * | c_str() const |
bool | empty() const |
void | replaceAll(const char *pzFrom, const char *pzTo) |
std::string | toLower() const |
std::string | toStdString() const |
std::string | toUpper() const |
operator bool() const | |
operator char() const | |
operator const char *() const | |
operator double() const | |
operator float() const | |
operator int() const | |
operator int64_t() const | |
operator short() const | |
operator std::string() const | |
operator uint64_t() const | |
operator unsigned char() const | |
operator unsigned int() const | |
operator unsigned short() const | |
bool | operator!=(const XMLString &rOther) const |
bool | operator!=(const char *pOther) const |
std::string & | operator=(std::string &other) |
XMLString & | operator=(const XMLString &other) |
XMLString & | operator=(const char *pzFrom) |
XMLString & | operator=(char *pzFrom) |
XMLString & | operator=(double val) |
XMLString & | operator=(float val) |
XMLString & | operator=(unsigned int val) |
XMLString & | operator=(int val) |
XMLString & | operator=(unsigned short val) |
XMLString & | operator=(short val) |
XMLString & | operator=(unsigned char val) |
XMLString & | operator=(char val) |
XMLString & | operator=(bool val) |
XMLString & | operator=(int64_t val) |
XMLString & | operator=(uint64_t val) |
bool | operator==(const XMLString &rOther) const |
bool | operator==(const char *pOther) const |
Detailed Description
The XMLString is a class for parsing, manipulating and containing an xml string.
Member Function Documentation
XMLString::XMLString(void)
Constructs the string.
XMLString::XMLString(const XMLString &rhs)
Constructs from other XMLString.
XMLString::XMLString(const char *pOther)
Constructs from const char* other.
XMLString::XMLString(const double val)
Constructs from double val.
XMLString::XMLString(const float val)
Constructs from float val.
XMLString::XMLString(const unsigned int val)
Constructs from unsigned int val.
XMLString::XMLString(const int val)
Constructs from int val.
XMLString::XMLString(const unsigned short val)
Constructs from unsigned short val.
XMLString::XMLString(const short val)
Constructs from short val.
XMLString::XMLString(const unsigned char val)
Constructs from unsigned char val.
XMLString::XMLString(const char val)
Constructs from char val.
XMLString::XMLString(const bool val)
Constructs from bool val.
XMLString::XMLString(const int64_t val)
Constructs from int64_t val.
XMLString::XMLString(const uint64_t val)
Constructs from uint64_t val.
void XMLString::CopyFromTemporaryString(char *pzFrom)
Sets the content from a temporary pzFrom.
std::string XMLString::EscapedString() const
Returns escaped copy of string ('not allowed' characters like '<' converted to HTML entities like '<' etc).
unsigned int XMLString::Find(unsigned int nCount, const char *pzString)
Finds position of substring in this string, or 0xffffffff if not found.
unsigned int XMLString::GetLength() const
Returns length of the string.
char XMLString::GetStopChar()
Returns the character that parsing stopped on.
void XMLString::Set(const char *pzNewString)
Sets the content from pzNewString.
void XMLString::Set(const char *pzNewString, unsigned int nLen)
Sets content from pzNewString, limited by nLen.
XMLString &XMLString::SetFromCharPointer(const char *pStartChar, const char *pzStopOnOneOf, int MaxLength, unsigned int &nLineNumber)
Sets content of this string from pStartChar, stopping at pzStopOnOneOf, limiting the string to MaxLength.
XMLString &XMLString::SetFromCharPointerExact(const char *pStartChar, const char *pzStopOnString, unsigned int &nLineNumber)
Set content of string from pStartChar, stopping at pzStopOnString.
void XMLString::SetStopChar(char newEndChar)
Updates the stop character to newEndChar.
std::string XMLString::String() const
returns the content as an std::string.
void XMLString::Unescape()
Unescapes string value (by replacing HTML entities like < to corresponding characters like < etc).
std::string XMLString::UnescapedString() const
Returns unescaped copy of string (HTML entities like < converted to corresponding characters like < etc).
const char *XMLString::c_str() const
Returns the const char* of this object, or pointer to nullterm char if length is 0.
bool XMLString::empty() const
Returns true if the string is empty.
void XMLString::replaceAll(const char *pzFrom, const char *pzTo)
Replaces all instances of pzFrom with pzTo.
std::string XMLString::toLower() const
Returns a lowercase copy of the string.
std::string XMLString::toStdString() const
Returns this as a std::string.
std::string XMLString::toUpper() const
Returns an uppercase copy of the string.
XMLString::operator bool() const
Returns string as a bool
XMLString::operator char() const
Returns string as a char.
XMLString::operator const char *() const
Calls c_str().
XMLString::operator double() const
Returns string as a double.
XMLString::operator float() const
Returns string as a float.
XMLString::operator int() const
Returns string as an int.
XMLString::operator int64_t() const
Returns string as an int64_t.
XMLString::operator short() const
Returns string as a short.
XMLString::operator std::string() const
Returns this string as an std::string.
XMLString::operator uint64_t() const
Returns string as an uint64_t.
XMLString::operator unsigned char() const
Returns string as an unsigned char.
XMLString::operator unsigned int() const
Returns string as an unsigned int.
XMLString::operator unsigned short() const
Return string as an unsigned short.
bool XMLString::operator!=(const XMLString &rOther) const
Compares this with rOther.
bool XMLString::operator!=(const char *pOther) const
Compares this string with pOther, returns false if equal.
std::string &XMLString::operator=(std::string &other)
Assigns other to this string.
XMLString &XMLString::operator=(const XMLString &other)
Assigns other to this string.
XMLString &XMLString::operator=(const char *pzFrom)
Sets the content of this XMLString equal to that of pzFrom.
XMLString &XMLString::operator=(char *pzFrom)
Sets the content of this XMLString equal to that of pzFrom.
XMLString &XMLString::operator=(double val)
Sets the content of this XMLString equal to that of val.
XMLString &XMLString::operator=(float val)
Sets the content of this XMLString equal to that of val.
XMLString &XMLString::operator=(unsigned int val)
Sets the content of this XMLString equal to that of val.
XMLString &XMLString::operator=(int val)
Sets the content of this XMLString equal to that of val.
XMLString &XMLString::operator=(unsigned short val)
Sets the content of this XMLString equal to that of val.
XMLString &XMLString::operator=(short val)
Sets the content of this XMLString equal to that of val.
XMLString &XMLString::operator=(unsigned char val)
Sets the content of this XMLString equal to that of val.
XMLString &XMLString::operator=(char val)
Sets the content of this XMLString equal to that of val.
XMLString &XMLString::operator=(bool val)
Sets the content of this XMLString equal to that of val.
XMLString &XMLString::operator=(int64_t val)
Sets the content of this XMLString equal to that of val.
XMLString &XMLString::operator=(uint64_t val)
Sets the content of this XMLString equal to that of val.
bool XMLString::operator==(const XMLString &rOther) const
Compares this with rOther.
bool XMLString::operator==(const char *pOther) const
Compares this string with pOther, returns true if equal.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.