~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qdomcharacterdata.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE html
 
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/xml/qdom.cpp -->
 
6
<head>
 
7
    <title>Qt 4.0: QDomCharacterData Class Reference</title>
 
8
    <style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
 
9
a:link { color: #004faf; text-decoration: none }
 
10
a:visited { color: #672967; text-decoration: none }
 
11
td.postheader { font-family: sans-serif }
 
12
tr.address { font-family: sans-serif }
 
13
body { background: #ffffff; color: black; }</style>
 
14
</head>
 
15
<body>
 
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
17
<tr>
 
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
 
19
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="annotated.html"><font color="#004faf">Annotated</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
 
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QDomCharacterData Class Reference</h1>
 
21
<p>The QDomCharacterData class represents a generic string in the DOM. <a href="#details">More...</a></p>
 
22
<pre>#include &lt;QDomCharacterData&gt;</pre><p>Part of the <a href="qtxml.html">QtXml</a> module.</p>
 
23
<p>Inherits <a href="qdomnode.html">QDomNode</a>.</p>
 
24
<p>Inherited by <a href="qdomcomment.html">QDomComment</a> and <a href="qdomtext.html">QDomText</a>.</p>
 
25
<p><b>Note:</b> All the functions in this class are <a href="threads.html#reentrant">reentrant</a>.</p>
 
26
<ul>
 
27
<li><a href="qdomcharacterdata-members.html">List of all members, including inherited members</a></li>
 
28
</ul>
 
29
<a name="public-functions"></a>
 
30
<h3>Public Functions</h3>
 
31
<ul>
 
32
<li><div class="fn"/><b><a href="qdomcharacterdata.html#QDomCharacterData">QDomCharacterData</a></b> ()</li>
 
33
<li><div class="fn"/><b><a href="qdomcharacterdata.html#QDomCharacterData-2">QDomCharacterData</a></b> ( const QDomCharacterData &amp; <i>x</i> )</li>
 
34
<li><div class="fn"/>void <b><a href="qdomcharacterdata.html#appendData">appendData</a></b> ( const QString &amp; <i>arg</i> )</li>
 
35
<li><div class="fn"/>QString <b><a href="qdomcharacterdata.html#data">data</a></b> () const</li>
 
36
<li><div class="fn"/>void <b><a href="qdomcharacterdata.html#deleteData">deleteData</a></b> ( unsigned long <i>offset</i>, unsigned long <i>count</i> )</li>
 
37
<li><div class="fn"/>void <b><a href="qdomcharacterdata.html#insertData">insertData</a></b> ( unsigned long <i>offset</i>, const QString &amp; <i>arg</i> )</li>
 
38
<li><div class="fn"/>uint <b><a href="qdomcharacterdata.html#length">length</a></b> () const</li>
 
39
<li><div class="fn"/>QDomNode::NodeType <b><a href="qdomcharacterdata.html#nodeType">nodeType</a></b> () const</li>
 
40
<li><div class="fn"/>void <b><a href="qdomcharacterdata.html#replaceData">replaceData</a></b> ( unsigned long <i>offset</i>, unsigned long <i>count</i>, const QString &amp; <i>arg</i> )</li>
 
41
<li><div class="fn"/>void <b><a href="qdomcharacterdata.html#setData">setData</a></b> ( const QString &amp; <i>v</i> )</li>
 
42
<li><div class="fn"/>QString <b><a href="qdomcharacterdata.html#substringData">substringData</a></b> ( unsigned long <i>offset</i>, unsigned long <i>count</i> )</li>
 
43
<li><div class="fn"/>QDomCharacterData &amp; <b><a href="qdomcharacterdata.html#operator-eq">operator=</a></b> ( const QDomCharacterData &amp; <i>x</i> )</li>
 
44
</ul>
 
45
<ul>
 
46
<li><div class="fn"/>63 public functions inherited from <a href="qdomnode.html#public-functions">QDomNode</a></li>
 
47
</ul>
 
48
<a name="details"></a>
 
49
<hr />
 
50
<h2>Detailed Description</h2>
 
51
<p>The QDomCharacterData class represents a generic string in the DOM.</p>
 
52
<p>Character data as used in XML specifies a generic data string. More specialized versions of this class are <a href="qdomtext.html">QDomText</a>, <a href="qdomcomment.html">QDomComment</a> and <a href="qdomcdatasection.html">QDomCDATASection</a>.</p>
 
53
<p>The data string is set with <a href="qdomcharacterdata.html#setData">setData</a>() and retrieved with <a href="qdomcharacterdata.html#data">data</a>(). You can retrieve a portion of the data string using <a href="qdomcharacterdata.html#substringData">substringData</a>(). Extra data can be appended with <a href="qdomcharacterdata.html#appendData">appendData</a>(), or inserted with <a href="qdomcharacterdata.html#insertData">insertData</a>(). Portions of the data string can be deleted with <a href="qdomcharacterdata.html#deleteData">deleteData</a>() or replaced with <a href="qdomcharacterdata.html#replaceData">replaceData</a>(). The length of the data string is returned by <a href="qdomcharacterdata.html#length">length</a>().</p>
 
54
<p>The node type of the node containing this character data is returned by <a href="qdomcharacterdata.html#nodeType">nodeType</a>().</p>
 
55
<p>See also <a href="qdomtext.html">QDomText</a>, <a href="qdomcomment.html">QDomComment</a>, and <a href="qdomcdatasection.html">QDomCDATASection</a>.</p>
 
56
<hr />
 
57
<h2>Member Function Documentation</h2>
 
58
<h3 class="fn"><a name="QDomCharacterData"></a>QDomCharacterData::QDomCharacterData ()</h3>
 
59
<p>Constructs an empty character data object.</p>
 
60
<h3 class="fn"><a name="QDomCharacterData-2"></a>QDomCharacterData::QDomCharacterData ( const QDomCharacterData &amp; <i>x</i> )</h3>
 
61
<p>Constructs a copy of <i>x</i>.</p>
 
62
<p>The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use <a href="qdomnode.html#cloneNode">cloneNode</a>().</p>
 
63
<h3 class="fn"><a name="appendData"></a>void QDomCharacterData::appendData ( const <a href="qstring.html">QString</a> &amp; <i>arg</i> )</h3>
 
64
<p>Appends the string <i>arg</i> to the stored string.</p>
 
65
<h3 class="fn"><a name="data"></a><a href="qstring.html">QString</a> QDomCharacterData::data () const</h3>
 
66
<p>Returns the string stored in this object.</p>
 
67
<p>If the node is a <a href="qdomnode.html#isNull">null node</a>, it will return an empty string.</p>
 
68
<h3 class="fn"><a name="deleteData"></a>void QDomCharacterData::deleteData ( unsigned long <i>offset</i>, unsigned long <i>count</i> )</h3>
 
69
<p>Deletes a substring of length <i>count</i> from position <i>offset</i>.</p>
 
70
<h3 class="fn"><a name="insertData"></a>void QDomCharacterData::insertData ( unsigned long <i>offset</i>, const <a href="qstring.html">QString</a> &amp; <i>arg</i> )</h3>
 
71
<p>Inserts the string <i>arg</i> into the stored string at position <i>offset</i>.</p>
 
72
<h3 class="fn"><a name="length"></a><a href="qtglobal.html#uint-typedef">uint</a> QDomCharacterData::length () const</h3>
 
73
<p>Returns the length of the stored string.</p>
 
74
<h3 class="fn"><a name="nodeType"></a><a href="qdomnode.html#NodeType-enum">QDomNode::NodeType</a> QDomCharacterData::nodeType () const</h3>
 
75
<p>Returns the type of node this object refers to (i.e. <tt>TextNode</tt>, <tt>CDATASectionNode</tt>, <tt>CommentNode</tt> or <tt>CharacterDataNode</tt>). For a <a href="qdomnode.html#isNull">null node</a>, returns <tt>CharacterDataNode</tt>.</p>
 
76
<h3 class="fn"><a name="replaceData"></a>void QDomCharacterData::replaceData ( unsigned long <i>offset</i>, unsigned long <i>count</i>, const <a href="qstring.html">QString</a> &amp; <i>arg</i> )</h3>
 
77
<p>Replaces the substring of length <i>count</i> starting at position <i>offset</i> with the string <i>arg</i>.</p>
 
78
<h3 class="fn"><a name="setData"></a>void QDomCharacterData::setData ( const <a href="qstring.html">QString</a> &amp; <i>v</i> )</h3>
 
79
<p>Sets this object's string to <i>v</i>.</p>
 
80
<h3 class="fn"><a name="substringData"></a><a href="qstring.html">QString</a> QDomCharacterData::substringData ( unsigned long <i>offset</i>, unsigned long <i>count</i> )</h3>
 
81
<p>Returns the substring of length <i>count</i> from position <i>offset</i>.</p>
 
82
<h3 class="fn"><a name="operator-eq"></a>QDomCharacterData &amp; QDomCharacterData::operator= ( const QDomCharacterData &amp; <i>x</i> )</h3>
 
83
<p>Assigns <i>x</i> to this character data.</p>
 
84
<p>The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use <a href="qdomnode.html#cloneNode">cloneNode</a>().</p>
 
85
<p /><address><hr /><div align="center">
 
86
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
87
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
 
88
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
89
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
 
90
</tr></table></div></address></body>
 
91
</html>