Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
2 * Copyright (c) 2004-2006 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: All text nodes functions
24 #ifndef XMLENGINE_CHARACTERDATA_H_INCLUDED
25 #define XMLENGINE_CHARACTERDATA_H_INCLUDED
27 #include "xmlengnode.h"
30 * Instance of TXmlEngCharacterData class represents all kinds of XML text nodes
31 * (i.e. text node, comment node) in the DOM tree.
33 * Describe DOM action for nodes that contains text data.
35 * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-FF21A306
37 * @lib XmlEngineDOM.lib
40 class TXmlEngCharacterData : public TXmlEngNode
45 * Get content of the node.
48 * @return String with nodes content
50 * This method applies to TXmlEngCDATASection, TXmlEngComment and TXmlEngTextNode nodes.
52 IMPORT_C TPtrC8 Contents() const;
55 * Sets contents of basic character nodes: TXmlEngTextNode, TXmlEngComment, TXmlEngCDATASection
58 * @param aNewContents The actual value to store
60 * The input is taken as non-escaped: for example,
61 * aNewContents = "123 > 34 && P" will be serialized as "123 > 34 && P"
63 * Escaped contents may be set only for TXmlEngElement and TXmlEngAttr nodes.
64 * @see TXmlEngAttr::SetEscapedValueL(const TDesC8&), TXmlEngElement::SetEscapedTextL(const TDesC8&),
66 IMPORT_C void SetContentsL(const TDesC8& aNewContents);
69 * Extends the contents of the node by appending aString
72 * @param aString Content to be added to current content
74 IMPORT_C void AppendContentsL(const TDesC8& aString);
77 * Get length of the content
80 * @return Number of characters in the contents
82 IMPORT_C TUint Length() const;
90 inline TXmlEngCharacterData(); // protected from API users
96 * @param aInternal node pointer
98 inline TXmlEngCharacterData(void* aInternal);
102 #include "xmlengcharacterdata.inl"
104 #endif /* XMLENGINE_CHARACTERDATA_H_INCLUDED */