DOMString
is the generic string class that stores all strings
used in the DOM C++ API
![]() | Cloning function.
| ||||||||||||||||||
![]() | Constructors and assignment operator
| ||||||||||||||||||
![]() | Destructor.
| ||||||||||||||||||
![]() | Equality and Inequality operators.
| ||||||||||||||||||
![]() | Functions to change the string.
| ||||||||||||||||||
![]() | Functions to compare a string with another.
| ||||||||||||||||||
![]() | Functions to get properties of the string.
| ||||||||||||||||||
![]() | Operators for string manipulation.
| ||||||||||||||||||
![]() | Print functions.
|
DOMString
is the generic string class that stores all strings
used in the DOM C++ API.
Though this class supports most of the common string operations to manipulate
strings, it is not meant to be a comphrehensive string class.
DOMString(const XMLCh *other)
DOMString(const XMLCh *other, unsigned int length)
DOMString
length - The length of the character array to be imported DOMString(const char *other)
DOMString
DOMString(int nullPointerValue)
DOMString& operator = (const DOMString &other)
WARNING: operator == does NOT compare the contents of
the two strings. To do this, use the DOMString::equals()
This behavior is modelled after the String operations in Java, and
is also similar to operator == on the other DOM_* classes.
WARNING: operator == does NOT compare the contents of
the two strings. To do this, use the
bool operator != (const DOMString &other) const
DOMString::equals()
This behavior is modelled after the String operations in Java, and
is also similar to operator == on the other DOM_* classes.
bool operator == (const DOM_NullPtr *other) const
bool operator != (const DOM_NullPtr *other) const
void appendData(const DOMString &other)
DOMString
to this string.
void appendData(XMLCh ch)
void appendData(const XMLCh *other)
DOMString& operator +=(const DOMString &other)
DOMString
to this string.
DOMString& operator +=(const XMLCh* other)
DOMString& operator +=(XMLCh ch)
void deleteData(unsigned int offset, unsigned int count)
DOMString
.
count - The count of characters from the offset that must be deleted void insertData(unsigned int offset, const DOMString &data)
DOMString
at an arbitrary position.
this
object
data - The DOMString
containing the data that needs to be inserted
XMLCh* rawBuffer() const
DOMString
.
DOMString
containg the string data.
Note: the data is not always null terminated. Do not rely on
a null being there, and do not add one, as several DOMStrings
with different lengths may share the same raw buffer.
char* transcode() const
static DOMString transcode(const char* str)
DOMString substringData(unsigned int offset, unsigned int count) const
DOMString
starting at a specified position.
DOMString
being requested
count - The count of characters in the requested sub-string
unsigned int length() const
DOMString
on the console
void println() const
DOMString
on the console with a line feed at the end
bool equals(const DOMString &other) const
DOMString
contains the same character data
as another.
DOMString
s are same, false otherwise.
bool equals(const XMLCh *other) const
alphabetic index hierarchy of classes
Xerces-C XML Parser for C++ Version 1.1 |
|
generated by doc++