DOM::CharacterData Class Reference
The CharacterData
interface extends Node with a set of attributes and methods for accessing character data in the DOM.
More...
#include <dom_text.h>
Inheritance diagram for DOM::CharacterData:


Public Member Functions | |
CharacterData (const CharacterData &other) | |
CharacterData (const Node &other) | |
CharacterData & | operator= (const Node &other) |
CharacterData & | operator= (const CharacterData &other) |
DOMString | data () const |
The character data of the node that implements this interface. | |
void | setData (const DOMString &) |
see data | |
unsigned long | length () const |
The number of characters that are available through data and the substringData method below. | |
DOMString | substringData (const unsigned long offset, const unsigned long count) |
Extracts a range of data from the node. | |
void | appendData (const DOMString &arg) |
Append the string to the end of the character data of the node. | |
void | insertData (const unsigned long offset, const DOMString &arg) |
Insert a string at the specified character offset. | |
void | deleteData (const unsigned long offset, const unsigned long count) |
Remove a range of characters from the node. | |
void | replaceData (const unsigned long offset, const unsigned long count, const DOMString &arg) |
Replace the characters starting at the specified character offset with the specified string. | |
Protected Member Functions | |
CharacterData (CharacterDataImpl *i) |
Detailed Description
The CharacterData
interface extends Node with a set of attributes and methods for accessing character data in the DOM.
For clarity this set is defined here rather than on each object that uses these attributes and 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.
Definition at line 50 of file dom_text.h.
Member Function Documentation
|
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
Definition at line 65 of file dom_text.cpp. |
|
see data
Definition at line 71 of file dom_text.cpp. |
|
The number of characters that are available through
This may have the value zero, i.e., Definition at line 83 of file dom_text.cpp. |
|
Extracts a range of data from the node.
DOMString .
Definition at line 90 of file dom_text.cpp. |
|
Append the string to the end of the character data of the node.
Upon success,
Definition at line 102 of file dom_text.cpp. |
|
Insert a string at the specified character offset.
Definition at line 113 of file dom_text.cpp. |
|
Remove a range of characters from the node.
Upon success,
Definition at line 124 of file dom_text.cpp. |
|
Replace the characters starting at the specified character offset with the specified string.
Definition at line 135 of file dom_text.cpp. |
The documentation for this class was generated from the following files: