Qt 4.8
Public Functions | List of all members
QDomCharacterDataPrivate Class Reference
Inheritance diagram for QDomCharacterDataPrivate:
QDomNodePrivate QDomCommentPrivate QDomTextPrivate QDomCDATASectionPrivate

Public Functions

void appendData (const QString &arg)
 
QDomNodePrivatecloneNode (bool deep=true)
 
uint dataLength () const
 
void deleteData (unsigned long offset, unsigned long count)
 
void insertData (unsigned long offset, const QString &arg)
 
virtual bool isCharacterData () const
 
QDomNode::NodeType nodeType () const
 
 QDomCharacterDataPrivate (QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &data)
 
 QDomCharacterDataPrivate (QDomCharacterDataPrivate *n, bool deep)
 
void replaceData (unsigned long offset, unsigned long count, const QString &arg)
 
QString substringData (unsigned long offset, unsigned long count) const
 
- Public Functions inherited from QDomNodePrivate
virtual QDomNodePrivateappendChild (QDomNodePrivate *newChild)
 
virtual void clear ()
 
virtual QDomNodePrivateinsertAfter (QDomNodePrivate *newChild, QDomNodePrivate *refChild)
 
virtual QDomNodePrivateinsertBefore (QDomNodePrivate *newChild, QDomNodePrivate *refChild)
 
virtual bool isAttr () const
 
virtual bool isCDATASection () const
 
virtual bool isComment () const
 
virtual bool isDocument () const
 
virtual bool isDocumentFragment () const
 
virtual bool isDocumentType () const
 
virtual bool isElement () const
 
virtual bool isEntity () const
 
virtual bool isEntityReference () const
 
virtual bool isNotation () const
 
virtual bool isProcessingInstruction () const
 
virtual bool isText () const
 
QDomNodePrivatenamedItem (const QString &name)
 
QString nodeName () const
 
QString nodeValue () const
 
virtual void normalize ()
 
QDomDocumentPrivateownerDocument ()
 
QDomNodePrivateparent () const
 
 QDomNodePrivate (QDomDocumentPrivate *, QDomNodePrivate *parent=0)
 
 QDomNodePrivate (QDomNodePrivate *n, bool deep)
 
virtual QDomNodePrivateremoveChild (QDomNodePrivate *oldChild)
 
virtual QDomNodePrivatereplaceChild (QDomNodePrivate *newChild, QDomNodePrivate *oldChild)
 
virtual void save (QTextStream &, int, int) const
 
void setLocation (int lineNumber, int columnNumber)
 
virtual void setNodeValue (const QString &v)
 
void setNoParent ()
 
void setOwnerDocument (QDomDocumentPrivate *doc)
 
void setParent (QDomNodePrivate *p)
 
virtual ~QDomNodePrivate ()
 

Additional Inherited Members

- Public Variables inherited from QDomNodePrivate
int columnNumber
 
bool createdWithDom1Interface: 1
 
QDomNodePrivatefirst
 
bool hasParent: 1
 
QDomNodePrivatelast
 
int lineNumber
 
QString name
 
QString namespaceURI
 
QDomNodePrivatenext
 
QDomNodePrivateownerNode
 
QString prefix
 
QDomNodePrivateprev
 
QAtomicInt ref
 
QString value
 

Detailed Description

Definition at line 324 of file qdom.cpp.

Constructors and Destructors

◆ QDomCharacterDataPrivate() [1/2]

QDomCharacterDataPrivate::QDomCharacterDataPrivate ( QDomDocumentPrivate d,
QDomNodePrivate parent,
const QString data 
)

Definition at line 3966 of file qdom.cpp.

Referenced by cloneNode().

3968  : QDomNodePrivate(d, p)
3969 {
3970  value = data;
3971  name = QLatin1String("#character-data");
3972 }
QString name
Definition: qdom.cpp:198
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QDomNodePrivate(QDomDocumentPrivate *, QDomNodePrivate *parent=0)
Definition: qdom.cpp:1482
QString value
Definition: qdom.cpp:199
static const char * data(const QByteArray &arr)

◆ QDomCharacterDataPrivate() [2/2]

QDomCharacterDataPrivate::QDomCharacterDataPrivate ( QDomCharacterDataPrivate n,
bool  deep 
)

Definition at line 3974 of file qdom.cpp.

3975  : QDomNodePrivate(n, deep)
3976 {
3977 }
QDomNodePrivate(QDomDocumentPrivate *, QDomNodePrivate *parent=0)
Definition: qdom.cpp:1482

Functions

◆ appendData()

void QDomCharacterDataPrivate::appendData ( const QString arg)

Definition at line 4012 of file qdom.cpp.

Referenced by qNormalizeNode().

4013 {
4014  value += arg;
4015 }
QString value
Definition: qdom.cpp:199

◆ cloneNode()

QDomNodePrivate * QDomCharacterDataPrivate::cloneNode ( bool  deep = true)
virtual

Reimplemented from QDomNodePrivate.

Reimplemented in QDomCDATASectionPrivate, QDomCommentPrivate, and QDomTextPrivate.

Definition at line 3979 of file qdom.cpp.

3980 {
3981  QDomNodePrivate* p = new QDomCharacterDataPrivate(this, deep);
3982  // We are not interested in this node
3983  p->ref.deref();
3984  return p;
3985 }
QAtomicInt ref
Definition: qdom.cpp:191
bool deref()
Atomically decrements the value of this QAtomicInt.
QDomCharacterDataPrivate(QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &data)
Definition: qdom.cpp:3966

◆ dataLength()

uint QDomCharacterDataPrivate::dataLength ( ) const

Definition at line 3987 of file qdom.cpp.

3988 {
3989  return value.length();
3990 }
int length() const
Returns the number of characters in this string.
Definition: qstring.h:696
QString value
Definition: qdom.cpp:199

◆ deleteData()

void QDomCharacterDataPrivate::deleteData ( unsigned long  offset,
unsigned long  count 
)

Definition at line 4002 of file qdom.cpp.

4003 {
4004  value.remove(offset, n);
4005 }
QString value
Definition: qdom.cpp:199
QString & remove(int i, int len)
Removes n characters from the string, starting at the given position index, and returns a reference t...
Definition: qstring.cpp:1867

◆ insertData()

void QDomCharacterDataPrivate::insertData ( unsigned long  offset,
const QString arg 
)

Definition at line 3997 of file qdom.cpp.

3998 {
3999  value.insert(offset, arg);
4000 }
QString value
Definition: qdom.cpp:199
QString & insert(int i, QChar c)
Definition: qstring.cpp:1671

◆ isCharacterData()

virtual bool QDomCharacterDataPrivate::isCharacterData ( ) const
inlinevirtual

Reimplemented from QDomNodePrivate.

Definition at line 338 of file qdom.cpp.

338 { return true; }

◆ nodeType()

QDomNode::NodeType QDomCharacterDataPrivate::nodeType ( ) const
inlinevirtual

Reimplemented from QDomNodePrivate.

Reimplemented in QDomCDATASectionPrivate, QDomCommentPrivate, and QDomTextPrivate.

Definition at line 339 of file qdom.cpp.

◆ replaceData()

void QDomCharacterDataPrivate::replaceData ( unsigned long  offset,
unsigned long  count,
const QString arg 
)

Definition at line 4007 of file qdom.cpp.

4008 {
4009  value.replace(offset, n, arg);
4010 }
QString & replace(int i, int len, QChar after)
Definition: qstring.cpp:2005
QString value
Definition: qdom.cpp:199

◆ substringData()

QString QDomCharacterDataPrivate::substringData ( unsigned long  offset,
unsigned long  count 
) const

Definition at line 3992 of file qdom.cpp.

3993 {
3994  return value.mid(offset, n);
3995 }
QString value
Definition: qdom.cpp:199
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
Definition: qstring.cpp:3706

The documentation for this class was generated from the following file: