1QDomCharacterData(3qt) QDomCharacterData(3qt)
2
3
4
6 QDomCharacterData - Represents a generic string in the DOM
7
9 All the functions in this class are reentrant when Qt is built with
10 thread support.</p>
11
12 #include <qdom.h>
13
14 Inherits QDomNode.
15
16 Inherited by QDomText and QDomComment.
17
18 Public Members
19 QDomCharacterData ()
20 QDomCharacterData ( const QDomCharacterData & x )
21 QDomCharacterData & operator= ( const QDomCharacterData & x )
22 ~QDomCharacterData ()
23 virtual QString substringData ( unsigned long offset, unsigned long
24 count )
25 virtual void appendData ( const QString & arg )
26 virtual void insertData ( unsigned long offset, const QString & arg )
27 virtual void deleteData ( unsigned long offset, unsigned long count )
28 virtual void replaceData ( unsigned long offset, unsigned long count,
29 const QString & arg )
30 virtual uint length () const
31 virtual QString data () const
32 virtual void setData ( const QString & v )
33 virtual QDomNode::NodeType nodeType () const
34 virtual bool isCharacterData () const
35
37 The QDomCharacterData class represents a generic string in the DOM.
38
39 Character data as used in XML specifies a generic data string. More
40 specialized versions of this class are QDomText, QDomComment and
41 QDomCDATASection.
42
43 The data string is set with setData() and retrieved with data(). You
44 can retrieve a portion of the data string using substringData(). Extra
45 data can be appended with appendData(), or inserted with insertData().
46 Portions of the data string can be deleted with deleteData() or
47 replaced with replaceData(). The length of the data string is returned
48 by length().
49
50 The node type of the node containing this character data is returned by
51 nodeType().
52
53 See also QDomText, QDomComment, QDomCDATASection, and XML.
54
57 Constructs an empty character data object.
58
60 Constructs a copy of x.
61
62 The data of the copy is shared (shallow copy): modifying one node will
63 also change the other. If you want to make a deep copy, use
64 cloneNode().
65
67 Destroys the object and frees its resources.
68
70 Appends the string arg to the stored string.
71
73 Returns the string stored in this object.
74
75 If the node is a null node, it will return QString::null.
76
78 ) [virtual]
79 Deletes a substring of length count from position offset.
80
82 ) [virtual]
83 Inserts the string arg into the stored string at position offset.
84
86 Returns TRUE.
87
88 Reimplemented from QDomNode.
89
91 Returns the length of the stored string.
92
94 Returns the type of node this object refers to (i.e. TextNode,
95 CDATASectionNode, CommentNode or CharacterDataNode). For a null node
96 CharacterDataNode is returned.
97
98 Reimplemented from QDomNode.
99
100 Reimplemented in QDomText and QDomComment.
101
103 )
104 Assigns x to this character data.
105
106 The data of the copy is shared (shallow copy): modifying one node will
107 also change the other. If you want to make a deep copy, use
108 cloneNode().
109
111 count, const QString & arg ) [virtual]
112 Replaces the substring of length count starting at position offset with
113 the string arg.
114
116 Sets this object's string to v.
117
119 count ) [virtual]
120 Returns the substring of length count from position offset.
121
122
124 http://doc.trolltech.com/qdomcharacterdata.html
125 http://www.trolltech.com/faq/tech.html
126
128 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
129 license file included in the distribution for a complete license
130 statement.
131
133 Generated automatically from the source code.
134
136 If you find a bug in Qt, please report it as described in
137 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
138 help you. Thank you.
139
140 The definitive Qt documentation is provided in HTML format; it is
141 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
142 web browser. This man page is provided as a convenience for those users
143 who prefer man pages, although this format is not officially supported
144 by Trolltech.
145
146 If you find errors in this manual page, please report them to qt-
147 bugs@trolltech.com. Please include the name of the manual page
148 (qdomcharacterdata.3qt) and the Qt version (3.3.8).
149
150
151
152Trolltech AS 2 February 2007 QDomCharacterData(3qt)