Inheritance diagram for DOM_CharacterData:
Public Methods | |
Constructors and assignment operator | |
DOM_CharacterData () | |
DOM_CharacterData (const DOM_CharacterData &other) | |
DOM_CharacterData & | operator= (const DOM_CharacterData &other) |
DOM_CharacterData & | operator= (const DOM_NullPtr *val) |
Destructor. | |
~DOM_CharacterData () | |
Getter functions. | |
DOMString | getData () const |
unsigned int | getLength () const |
DOMString | substringData (unsigned int offset, unsigned int count) const |
Functions that set or change data. | |
void | appendData (const DOMString &arg) |
void | insertData (unsigned int offset, const DOMString &arg) |
void | deleteData (unsigned int offset, unsigned int count) |
void | replaceData (unsigned int offset, unsigned int count, const DOMString &arg) |
void | setData (const DOMString &data) |
Protected Methods | |
DOM_CharacterData (CharacterDataImpl *impl) |
DOM_CharacterData
interface extends Node with a set of methods for accessing character data in the DOM.
For clarity this set is defined here rather than on each class that uses these methods. No DOM objects correspond directly to CharacterData
, though Text
and others do inherit the interface from it. All offset
s in this interface start from 0, and index in terms of Unicode 16 bit storage units.
|
Default constructor for DOM_CharacterData. While there can be no actual DOM nodes of type CharacterData, the C++ objects function more like reference variables, and instances of |
|
Copy constructor
|
|
Destructor for DOM_CharacterData. The object being destroyed is the reference to the Character Data node, not the character data itself. |
|
Append the string to the end of the character data of the node.
Upon success,
|
|
Remove a range of characters from the node.
Upon success,
|
|
Returns the character data of the node that implements this interface.
The DOM implementation may not put arbitrary limits on the amount of data that may be stored in a
|
|
Returns the number of characters that are available through
This may have the value zero, i.e., |
|
Insert a string at the specified character offset.
|
|
Assignment operator. This overloaded variant is provided for the sole purpose of setting a DOM_Node reference variable to zero. Nulling out a reference variable in this way will decrement the reference count on the underlying Node object that the variable formerly referenced. This effect is normally obtained when reference variable goes out of scope, but zeroing them can be useful for global instances, or for local instances that will remain in scope for an extended time, when the storage belonging to the underlying node needs to be reclaimed.
Reimplemented from DOM_Node. Reimplemented in DOM_CDATASection, DOM_Comment, and DOM_Text. |
|
Assignment operator
|
|
Replace the characters starting at the specified character offset with the specified string.
|
|
Sets the character data of the node that implements this interface.
|
|
Extracts a range of data from the node.
|