Base Framework
|
DOM character data node. More...
#include <base/xml/CharacterData.h>
Inherits Node.
Inherited by Comment, and Text.
Public Member Functions | |
CharacterData (Node node) | |
String | getData () const |
void | setData (const String &data) |
unsigned int | getLength () const noexcept |
String | substringData (unsigned int offset, unsigned int count) |
void | appendData (const String &value) |
void | insertData (unsigned int offset, const String &value) |
void | deleteData (unsigned int offset, unsigned int count) |
void | replaceData (unsigned int offset, unsigned int count, const String &value) |
![]() | |
Node () noexcept | |
Node (const Node ©) noexcept | |
Node & | operator= (const Node &assign) noexcept |
Node | appendChild (Node child) |
Node | insertBefore (Node newChild, Node refChild) |
Node | removeChild (Node child) |
Node | replaceChild (Node newChild, Node oldChild) |
Node | cloneNode (bool deep) |
String | getLocalName () const noexcept |
String | getNamespaceURI () const noexcept |
String | getName () const |
NodeType | getType () const |
String | getValue () const |
ShadowDocument | getOwnerDocument () noexcept |
String | getPrefix () const |
void | setPrefix (const String &prefix) |
Node | getParent () const noexcept |
Node | getPreviousSibling () const noexcept |
Node | getNextSibling () const noexcept |
Node | getFirstChild () const |
Node | getLastChild () const |
bool | hasAttributes () const noexcept |
bool | hasChildNodes () const |
bool | isSupported (const String &feature, const String &version) const noexcept |
void | normalize () |
void | setValue (const String &value) |
bool | isValid () const noexcept |
bool | isInvalid () const noexcept |
bool | isUnlinked () const noexcept |
bool | isSame (const Node &node) const noexcept |
bool | operator== (const Node &node) const noexcept |
bool | hasSameOwner (const Node &node) const noexcept |
bool | isAncestor (const Node &node) const noexcept |
operator bool () const noexcept | |
~Node () noexcept | |
Protected Member Functions | |
CharacterData (void *context) noexcept | |
![]() | |
Node (void *_context) noexcept | |
void * | getContext () noexcept |
const void * | getContext () const noexcept |
Additional Inherited Members | |
![]() | |
enum | NodeType { ELEMENT_NODE, ATTRIBUTE_NODE, TEXT_NODE, CDATA_SECTION_NODE, ENTITY_REFERENCE_NODE, ENTITY_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, DOCUMENT_FRAGMENT_NODE, NOTATION_NODE, ATTRIBUTE_DECL_NODE, ELEMENT_DECL_NODE, ENTITY_DECL_NODE } |
DOM character data node.
DOM character data node.
void CharacterData::appendData | ( | const String & | value | ) |
Append the string to the end of the character data of the node.
void CharacterData::deleteData | ( | unsigned int | offset, |
unsigned int | count | ||
) |
Remove a range of octets from the node.
String CharacterData::getData | ( | ) | const |
The character data of the node.
|
noexcept |
The number of octets that are available through data and the substringData method below.
void CharacterData::insertData | ( | unsigned int | offset, |
const String & | value | ||
) |
Inserts a string at the specified octet offset.
void CharacterData::replaceData | ( | unsigned int | offset, |
unsigned int | count, | ||
const String & | value | ||
) |
Replace the characters starting at the specified 16-bit unit offset with the specified string.
void CharacterData::setData | ( | const String & | data | ) |
Sets the data.
String CharacterData::substringData | ( | unsigned int | offset, |
unsigned int | count | ||
) |
Extracts a range of octets from the node.