QDomCharacterData Class Reference |
QDomCharacterData () | |
QDomCharacterData ( const QDomCharacterData & x ) | |
void | appendData ( const QString & arg ) |
QString | data () const |
void | deleteData ( unsigned long offset, unsigned long count ) |
void | insertData ( unsigned long offset, const QString & arg ) |
uint | length () const |
QDomNode::NodeType | nodeType () const |
void | replaceData ( unsigned long offset, unsigned long count, const QString & arg ) |
void | setData ( const QString & v ) |
QString | substringData ( unsigned long offset, unsigned long count ) |
QDomCharacterData & | operator= ( const QDomCharacterData & x ) |
The QDomCharacterData class represents a generic string in the DOM.
Character data as used in XML specifies a generic data string. More specialized versions of this class are QDomText, QDomComment and QDomCDATASection.
The data string is set with setData() and retrieved with data(). You can retrieve a portion of the data string using substringData(). Extra data can be appended with appendData(), or inserted with insertData(). Portions of the data string can be deleted with deleteData() or replaced with replaceData(). The length of the data string is returned by length().
The node type of the node containing this character data is returned by nodeType().
See also QDomText, QDomComment, and QDomCDATASection.
Constructs an empty character data object.
Constructs a copy of x.
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 cloneNode().
Appends the string arg to the stored string.
Returns the string stored in this object.
If the node is a null node, it will return an empty string.
See also setData().
Deletes a substring of length count from position offset.
Inserts the string arg into the stored string at position offset.
Returns the length of the stored string.
Returns the type of node this object refers to (i.e. TextNode, CDATASectionNode, CommentNode or CharacterDataNode). For a null node, returns CharacterDataNode.
Replaces the substring of length count starting at position offset with the string arg.
Sets this object's string to v.
See also data().
Returns the substring of length count from position offset.
Assigns x to this character data.
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 cloneNode().
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.6 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com