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 DOMString &other)
DOMString(const XMLCh *other)
DOMString(const XMLCh *other, int length)
DOMString
length - The length of the character array to be imported DOMString(const char *other)
DOMString
DOMString(int initalBufferSize)
DOMString
, measured in 16 bit characters. 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
DOMString
to this string.
void deleteData(int offset, int count)
DOMString
.
count - The count of characters from the offset that must be deleted void insertData(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.
DOMString substringData(int offset, int count) const
DOMString
starting at a specified position.
DOMString
being requested
count - The count of characters in the requested sub-string
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
XML Parser for C++ 2.0 Copyright © IBM Corp, 1999 Center for Java Technology 10275 N. De Anza Blvd. Cupertino CA 95014 USA Email: xml4c@us.ibm.com |
|