gmxmlconstants.h File Reference

const TInt KReadBufferLen

const TIntKReadBufferLen

const TInt KWriteBufferLen

const TIntKWriteBufferLen

const TInt KErrXMLBadNesting

const TIntKErrXMLBadNesting

XML element nesting error code.

const TInt KErrXMLIncomplete

const TIntKErrXMLIncomplete

XML element incomplete error code.

const TInt KErrXMLBadElementName

const TIntKErrXMLBadElementName

XML element name error code.

const TInt KErrXMLDuplicateDocTypeTags

const TIntKErrXMLDuplicateDocTypeTags

Error code that indicates that more than one DOCTYPE tag has been encountered: the first one encountered will be used.

const TInt KErrXMLDuplicateVersionTags

const TIntKErrXMLDuplicateVersionTags

Error code that indicates that more than one XML version tag has been encountered: the first one encountered will be used.

const TInt KErrXMLDuplicateRootElements

const TIntKErrXMLDuplicateRootElements

Error code that indicates that more than one element has been encountered at the root of the document (there should be a single <smil> element). The resulting tree may be confused, but is provided rather than being discarded.

const TInt KErrXMLMissingDocTypeTag

const TIntKErrXMLMissingDocTypeTag

Error code that indicates that no DOCTYPE tag was encountered.

const TInt KErrXMLMissingVersionTag

const TIntKErrXMLMissingVersionTag

Error code that indicates that no XML version tag was encountered.

const TInt KErrXMLDuplicateAttributeName

const TIntKErrXMLDuplicateAttributeName

Error code that indicates that an element has two or more entries for the same attribute.

const TInt KErrXMLMultipleRootElements

const TIntKErrXMLMultipleRootElements

Error code that indicates there is no single root element.

This may be the result of two of more root elements being added incorrectly, or a missing root element leading to the child elements being assumed to be root nodes.

const TInt KErrXMLCorruptFile

const TIntKErrXMLCorruptFile

Error code that indicates spurious characters have been found.

This may occur as the result of a missing or an extra attribute or element delimiter.

const TInt KErrXMLIllegalCharacter

const TIntKErrXMLIllegalCharacter

Error code that indicates a built-in entity or element / attribute delimiter is at an inappropriate place.

const TInt KErrXMLBadEntity

const TIntKErrXMLBadEntity

const TInt KErrXMLInvalidElement

const TIntKErrXMLInvalidElement

Error code that indicates an element was found to be invalid by the DTD

const TInt KErrXMLInvalidAttribute

const TIntKErrXMLInvalidAttribute

Error code that indicates an attribute was found to be invalid by the DTD

const TLitC< sizeof(L"\r\n")/2 > KNewLine

const TLitC< sizeof(L"\r\n")/2 >KNewLine[static]

const TLitC< sizeof(L";")/2 > KXMLSemiColon

const TLitC< sizeof(L";")/2 >KXMLSemiColon[static]

const TLitC< sizeof(L"&#")/2 > KXMLDecimalId

const TLitC< sizeof(L"&#")/2 >KXMLDecimalId[static]

const TLitC< sizeof(L"&#x")/2 > KXMLHexidecimalId

const TLitC< sizeof(L"&#x")/2 >KXMLHexidecimalId[static]

const TLitC< sizeof(L"<!--")/2 >KXMLStartComment={sizeof(L"<!--")/2-1, L"<!--"};const static TLitC< sizeof(L"-->")/2 >KXMLEndComment={sizeof(L"-->")/2-1, L"-->

constTLitC< sizeof(L"<!--")/2 >KXMLStartComment={sizeof(L"<!--")/2-1, L"<!--"};const static TLitC< sizeof(L"-->")/2 >KXMLEndComment={sizeof(L"-->")/2-1, L"-->[static]

const TLitC< sizeof(L"</")/2 > KXMLStartEndTag={sizeof(L"</")/2-1, L"</"};const static TLitC< sizeof(L"<")/2 > KXMLStartTag={sizeof(L"<")/2-1, L"<"};const static TLitC< sizeof(L"/>")/2 > KXMLEndStartTag={sizeof(L"/>")/2-1, L"/>"};const static TLitC< sizeof(L"<?")/2 > KXMLStartProcessingInstruction={sizeof(L"<?")/2-1, L"<?"};const static TLitC< sizeof(L"?>")/2 > KXMLEndProcessingInstruction={sizeof(L"?>")/2-1, L"?>"};const static TLitC< sizeof(L"<![CDATA[")/2 > KXMLStartCDataSection={sizeof(L"<![CDATA[")/2-1, L"<![CDATA["};const static TLitC< sizeof(L"]]>")/2 > KXMLEndCDataSection={sizeof(L"]]>")/2-1, L"]]>"};const static TLitC< sizeof(L"\\")/2 > KBackSlash={sizeof(L"\\")/2-1, L"\\"};const static TLitC< sizeof(L"-")/2 > KDash={sizeof(L"-")/2-1, L"-"};const static TLitC< sizeof(L"!")/2 > KExclamation={sizeof(L"!")/2-1, L"!"};const static TLitC< sizeof(L"/")/2 > KForwardSlash={sizeof(L"/")/2-1, L"/"};const static TLitC< sizeof(L"=")/2 > KEqualSign={sizeof(L"=")/2-1, L"="};const static TLitC< sizeof(L"<")/2 > KLeftArrow={sizeof(L"<")/2-1, L"<"};const static TLitC< sizeof(L">")/2 > KRightArrow={sizeof(L">")/2-1, L">"};const static TLitC< sizeof(L"&")/2 > KAmpersand={sizeof(L"&")/2-1, L"&"};const static TLitC< sizeof(L"\'")/2 > KApostrophe={sizeof(L"\'")/2-1, L"\'"};const static TLitC< sizeof(L"\"")/2 > KQuotation={sizeof(L"\"")/2-1, L"\""};const static TLitC< sizeof(L" ")/2 > KSingleSpace={sizeof(L" ")/2-1, L" "};const TInt KNominalTagLength=256;const TInt KStartPosition=-1;#25"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLParser/SRC/GMXMLComposer.cpp"2#1"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLDom/INC/gmxmlnode.h"1#define __GMXMLNODE_H__#1"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLDom/INC/gmxmldocument.h"1#define __GMXMLDOCUMENT_H__#1"X:/epoc32/include/badesca.h"1#define __BADESCA_H__#1"X:/epoc32/include/bamdesca.h"1#define __BAMDESCA_H__class MDesC8Array{public:virtual ~MDesC8Array(){}virtual TInt MdcaCount() const =0;virtual TPtrC8 MdcaPoint(TInt aIndex) const =0;};class MDesC16Array{public:virtual ~MDesC16Array(){}virtual TInt MdcaCount() const =0;virtual TPtrC16 MdcaPoint(TInt aIndex) const =0;};#define MDesCArray#23"X:/epoc32/include/badesca.h"2class CDesC8Array:public CArrayFixBase, public MDesC8Array{protected:IMPORT_C CDesC8Array(TBufRep aRep, TInt aGranularity);public:IMPORT_C~CDesC8Array();IMPORT_C void AppendL(const TDesC8 &aPtr);IMPORT_C void InsertL(TInt aPos, const TDesC8 &aPtr);IMPORT_C TInt InsertIsqL(const TDesC8 &aPtr, TKeyCmpText aTextComparisonType=ECmpFolded);IMPORT_C TInt InsertIsqAllowDuplicatesL(const TDesC8 &aPtr, TKeyCmpText aTextComparisonType=ECmpFolded);IMPORT_C void Sort(TKeyCmpText aTextComparisonType=ECmpFolded);IMPORT_C TInt Find(const TDesC8 &aPtr, TInt &aPos, TKeyCmpText aTextComparisonType=ECmpFolded) const ;IMPORT_C TInt FindIsq(const TDesC8 &aPtr, TInt &aPos, TKeyCmpText aTextComparisonType=ECmpFolded) const ;IMPORT_C void Delete(TInt aPos);IMPORT_C void Delete(TInt aIndex, TInt aCount);IMPORT_C void Reset();inline TPtrC8 operator[](TInt aIndex) const ;IMPORT_C TInt MdcaCount() const ;IMPORT_C TPtrC8 MdcaPoint(TInt aIndex) const ;};inline TPtrC8 CDesC8Array::operator[](TInt aIndex) const {return(MdcaPoint(aIndex));}class CDesC8ArrayFlat:public CDesC8Array{public:IMPORT_C CDesC8ArrayFlat(TInt aGranularity);IMPORT_C~CDesC8ArrayFlat();};class CDesC8ArraySeg:public CDesC8Array{public:IMPORT_C CDesC8ArraySeg(TInt aGranularity);IMPORT_C~CDesC8ArraySeg();};class CDesC16Array:public CArrayFixBase, public MDesC16Array{protected:IMPORT_C CDesC16Array(TBufRep aRep, TInt aGranularity);public:IMPORT_C~CDesC16Array();IMPORT_C void AppendL(const TDesC16 &aPtr);IMPORT_C void InsertL(TInt aPos, const TDesC16 &aPtr);IMPORT_C TInt InsertIsqL(const TDesC16 &aPtr, TKeyCmpText aTextComparisonType=ECmpFolded);IMPORT_C TInt InsertIsqAllowDuplicatesL(const TDesC16 &aPtr, TKeyCmpText aTextComparisonType=ECmpFolded);IMPORT_C void Sort(TKeyCmpText aTextComparisonType=ECmpFolded);IMPORT_C TInt Find(const TDesC16 &aPtr, TInt &aPos, TKeyCmpText aTextComparisonType=ECmpFolded) const ;IMPORT_C TInt FindIsq(const TDesC16 &aPtr, TInt &aPos, TKeyCmpText aTextComparisonType=ECmpFolded) const ;IMPORT_C void Delete(TInt aPos);IMPORT_C void Delete(TInt aIndex, TInt aCount);IMPORT_C void Reset();inline TPtrC16 operator[](TInt aIndex) const ;IMPORT_C TInt MdcaCount() const ;IMPORT_C TPtrC16 MdcaPoint(TInt aIndex) const ;};inline TPtrC16 CDesC16Array::operator[](TInt aIndex) const {return(MdcaPoint(aIndex));}class CDesC16ArrayFlat:public CDesC16Array{public:IMPORT_C CDesC16ArrayFlat(TInt aGranularity);IMPORT_C~CDesC16ArrayFlat();};class CDesC16ArraySeg:public CDesC16Array{public:IMPORT_C CDesC16ArraySeg(TInt aGranularity);IMPORT_C~CDesC16ArraySeg();};class CPtrC8Array:public CArrayFixFlat< TPtrC8 >, public MDesC8Array{public:IMPORT_C CPtrC8Array(TInt aGranularity);IMPORT_C~CPtrC8Array();IMPORT_C void CopyL(const MDesC8Array &aArray);inline void operator=(const MDesC8Array &aArray);IMPORT_C TInt MdcaCount() const ;IMPORT_C TPtrC8 MdcaPoint(TInt aIndex) const ;};class CPtrC16Array:public CArrayFixFlat< TPtrC16 >, public MDesC16Array{public:IMPORT_C CPtrC16Array(TInt aGranularity);IMPORT_C~CPtrC16Array();IMPORT_C void CopyL(const MDesC16Array &aArray);inline void operator=(const MDesC16Array &aArray);IMPORT_C TInt MdcaCount() const ;IMPORT_C TPtrC16 MdcaPoint(TInt aIndex) const ;};inline void CPtrC8Array::operator=(const MDesC8Array &aArray){CopyL(aArray);}inline void CPtrC16Array::operator=(const MDesC16Array &aArray){CopyL(aArray);}typedef CDesC16Array CDesCArray;typedef CDesC16ArrayFlat CDesCArrayFlat;typedef CDesC16ArraySeg CDesCArraySeg;typedef CPtrC16Array CPtrCArray;#30"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLDom/INC/gmxmldocument.h"2class CMDXMLElement;class MXMLDtd;class MXMLDtd{public:virtual TBool IsValidElementL(const TDesC &aElement) const =0;virtual TInt IsValidAttributeForElementL(const TDesC &aElement, const TDesC &aAttribute, const TDesC &aAttributeValue) const =0;virtual TBool AreValidChildElementsL(const TDesC &aParentElement, const CDesCArray &aChildElements) const =0;virtual TBool CanElementHaveChildren(const TDesC &aElement) const =0;};#1"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLDom/INC/gmxmldummydtd.h"1#define __GMXMLDUMMYDTD_H__const static TLitC< sizeof(L"#cdata-section")/2 > KXMLCDATASectionNodeName={sizeof(L"#cdata-section")/2-1, L"#cdata-section"};const static TLitC< sizeof(L"comment")/2 > KXMLCommentNodeName={sizeof(L"comment")/2-1, L"comment"};const static TLitC< sizeof(L"processing_instruction")/2 > KXMLProcessingInstructionNodeName={sizeof(L"processing_instruction")/2-1, L"processing_instruction"};const static TLitC< sizeof(L"#text")/2 > KXMLTextNodeName={sizeof(L"#text")/2-1, L"#text"};const static TLitC< sizeof(L"<?xml version=\"1.0\" ?>")/2 > KXMLDefaultVersionTag={sizeof(L"<?xml version=\"1.0\" ?>")/2-1, L"<?xml version=\"1.0\" ?>"};const static TLitC< sizeof(L"<!DOCTYPE smil SYSTEM \"mms_smil.dtd\">")/2 > KXMLDefaultDocTypeTag={sizeof(L"<!DOCTYPE smil SYSTEM \"mms_smil.dtd\">")/2-1, L"<!DOCTYPE smil SYSTEM \"mms_smil.dtd\">"};const static TLitC< sizeof(L"<?xml")/2 > KXMLVersion={sizeof(L"<?xml")/2-1, L"<?xml"};const static TLitC< sizeof(L">")/2 > KXMLEndTag={sizeof(L">")/2-1, L">"};const static TLitC< sizeof(L"<!DOCTYPE")/2 > KXMLDocumentTypes={sizeof(L"<!DOCTYPE")/2-1, L"<!DOCTYPE"};const TInt KXMLUndefinedElement=-1;const static TLitC< sizeof(L"LDR-IMPORT")/2 > KLDRIMPORT={sizeof(L"LDR-IMPORT")/2-1, L"LDR-IMPORT"};const TInt KLdrImportedOrdinalDoesNotExist=2;class CMDXMLDummyDtd:public MXMLDtd{TBool IsValidElementL(const TDesC &aElement) const ;TInt IsValidAttributeForElementL(const TDesC &aElement, const TDesC &aAttribute, const TDesC &aAttributeValue) const ;TBool AreValidChildElementsL(const TDesC &aParentElement, const CDesCArray &aChildElements) const ;TBool CanElementHaveChildren(const TDesC &aElement) const ;};#85"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLDom/INC/gmxmldocument.h"2class CMDXMLDocument:public CBase{public:IMPORT_C static CMDXMLDocument *NewL(MXMLDtd &iDtdRepresentation);IMPORT_C static CMDXMLDocument *NewLC(MXMLDtd &iDtdRepresentation);IMPORT_C static CMDXMLDocument *NewL();IMPORT_C static CMDXMLDocument *NewLC();IMPORT_C virtual ~CMDXMLDocument();inline CMDXMLElement *DocumentElement(){return iRootElement;}IMPORT_C TBool SetVersionTagL(const TDesC &aVersionTag);IMPORT_C TBool SetDocTypeTagL(const TDesC &aDocTypeTag);IMPORT_C TBool ValidElementNameL(const TDesC &aElement) const ;IMPORT_C TBool CanElementHaveChildren(const TDesC &aElement) const ;inline const TDesC &VersionTag() const {return *iVersionTag;}inline const TDesC &DocTypeTag() const {return *iDocTypeTag;}const MXMLDtd &CMDXMLDocument::DtdRepresentation() const ;private:CMDXMLDocument(MXMLDtd &aDtdRepresentation);CMDXMLDocument();inline void SetDocumentElement(CMDXMLElement *aRootElement){iRootElement=aRootElement;}void ConstructL();IMPORT_C void PlaceholderForRemovedExport1(MXMLDtd &aDtdRepresentation);IMPORT_C void PlaceholderForRemovedExport2();private:CMDXMLElement *iRootElement;protected:HBufC *iVersionTag;HBufC *iDocTypeTag;private:MXMLDtd *iDtdRepresentation;TBool iOwnsDtd;};#28"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLDom/INC/gmxmlnode.h"2class CMDXMLComposer;class CMDXMLDocument;class CMDXMLEntityConverter;class CMDXMLNode:public CBase{public:enum TDOMNodeType{EElementNode=1, ETextNode=3, ECDATASectionNode=4, EProcessingInstructionNode=7, ECommentNode=8, EDocumentNode=9};IMPORT_C virtual ~CMDXMLNode();inline TDOMNodeType NodeType(){return iNodeType;}IMPORT_C TPtrC NodeName();inline TBool CanHaveChildNodes(){return iCanHaveChildren;}inline TBool HasChildNodes(){return(iFirstChildPtr!=NULL);}inline CMDXMLDocument *OwnerDocument(){return(CMDXMLDocument *) iOwnerDocument;}inline CMDXMLNode *FirstChild(){return iFirstChildPtr;}inline CMDXMLNode *LastChild(){return iLastChildPtr;}inline CMDXMLNode *NextSibling(){return iNextSiblingPtr;}inline CMDXMLNode *PreviousSibling(){return iPrevSiblingPtr;}inline CMDXMLNode *ParentNode(){return iParentPtr;}inline TInt ElementType(){return iElementType;}IMPORT_C TInt RemoveChild(CMDXMLNode *aChildToRemove);IMPORT_C TInt InsertBefore(CMDXMLNode *aInsertBeforeChild, CMDXMLNode *aChildToInsert);IMPORT_C TInt AppendChild(CMDXMLNode *aChildToInsert);IMPORT_C TInt ReplaceChild(CMDXMLNode *aChildToInsert, CMDXMLNode *aChildToReplace);IMPORT_C virtual TBool CheckChildren()=0;protected:CMDXMLNode(TDOMNodeType aNodeType, TBool aCanHaveChildren, CMDXMLDocument *aOwnerDocument);IMPORT_C CMDXMLNode *PreviousSameTypeSibling();IMPORT_C CMDXMLNode *NextSameTypeSibling();IMPORT_C void SetNodeNameL(const TDesC &aNodeName);inline void SetElementType(TInt aElementType){iElementType=aElementType;}protected:CMDXMLDocument *iOwnerDocument;private:TInt iElementType;TDOMNodeType iNodeType;HBufC *iNodeName;CMDXMLNode *iParentPtr;CMDXMLNode *iFirstChildPtr;CMDXMLNode *iLastChildPtr;CMDXMLNode *iNextSiblingPtr;CMDXMLNode *iPrevSiblingPtr;TBool iCanHaveChildren;};#26"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLParser/SRC/GMXMLComposer.cpp"2#1"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLDom/INC/gmxmlelement.h"1#define __GMXMLELEMENT_H__class CMDXMLEntityConverter;class CMDXMLComposer;const TInt KXMLMinJump=5;class CMDXMLElement:public CMDXMLNode{public:IMPORT_C static CMDXMLElement *NewLC(TBool aCanHaveChildren, CMDXMLDocument *aOwnerDocument, TPtrC aTagName);IMPORT_C static CMDXMLElement *NewL(TBool aCanHaveChildren, CMDXMLDocument *aOwnerDocument, TPtrC aTagName);IMPORT_C virtual ~CMDXMLElement();IMPORT_C virtual TInt GetAttribute(const TDesC &aAttributeName, TPtrC &aAttributeValue) const ;IMPORT_C virtual TInt SetAttributeL(const TDesC &aAttributeName, const TDesC &aAttributeValue);IMPORT_C TInt SetAttributeL(const TDesC &aAttributeName, const TDesC &aAttributeValue, TBool aStoreInvalid);IMPORT_C virtual TInt RemoveAttribute(const TDesC &aAttributeName);IMPORT_C virtual TBool IsAttributeSpecified(const TDesC &aAttributeName) const ;IMPORT_C virtual TBool CheckChildren();IMPORT_C CMDXMLElement *FirstChildOfType(const TDesC &aElementType);IMPORT_C CMDXMLElement *LastChildOfType(const TDesC &aElementType);protected:IMPORT_C CMDXMLElement(TBool aCanHaveChildren, CMDXMLDocument *aOwnerDocument);void ConstructL();protected:IMPORT_C virtual TBool CheckImmediateChildren();private:TBool DoCheckImmediateChildrenL();public:IMPORT_C TInt FindIndex(const TDesC &aAttName);IMPORT_C TInt AttributeDetails(TInt Index, TPtrC &aAttributeName, TPtrC &aAttributeValue);IMPORT_C TInt NumAttributes();protected:CDesCArraySeg *iDescAttName;CDesCArraySeg *iDescAttValue;};#28"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLParser/SRC/GMXMLComposer.cpp"2#1"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLParser/INC/gmxmlcomposer.h"1#define __GMXMLCOMPOSER_H__#1"X:/epoc32/include/charconv.h"1#define __CHARCONV_H__const TInt KMaximumLengthOfReplacementForUnconvertibleUnicodeCharacters=50;const TUint KCharacterSetIdentifierUtf7=0x1000582c;const TUint KCharacterSetIdentifierUtf8=0x1000582d;const TUint KCharacterSetIdentifierImapUtf7=0x1000582e;const TUint KCharacterSetIdentifierJavaConformantUtf8=0x1000582f;const TUint KCharacterSetIdentifierCodePage1252=0x100012b6;const TUint KCharacterSetIdentifierIso88591=0x10003b10;const TUint KCharacterSetIdentifierIso88592=0x1000507e;const TUint KCharacterSetIdentifierIso88593=0x10008a28;const TUint KCharacterSetIdentifierIso88594=0x1000507f;const TUint KCharacterSetIdentifierIso88595=0x10005080;const TUint KCharacterSetIdentifierIso88596=0x10008a29;const TUint KCharacterSetIdentifierIso88597=0x10005081;const TUint KCharacterSetIdentifierIso88598=0x10008a2a;const TUint KCharacterSetIdentifierIso88599=0x10005082;const TUint KCharacterSetIdentifierIso885910=0x10008a2b;const TUint KCharacterSetIdentifierIso885913=0x10008a2c;const TUint KCharacterSetIdentifierIso885914=0x10008a2d;const TUint KCharacterSetIdentifierIso885915=0x10008a2e;const TUint KCharacterSetIdentifierAscii=0x10004cc6;const TUint KCharacterSetIdentifierSms7Bit=0x100053ab;const TUint KCharacterSetIdentifierGb2312=0x10000fbe;const TUint KCharacterSetIdentifierHz=0x10006065;const TUint KCharacterSetIdentifierGb12345=0x1000401a;const TUint KCharacterSetIdentifierGbk=0x10003ecb;const TUint KCharacterSetIdentifierGb18030=0x10287038;const TUint KCharacterSetIdentifierBig5=0x10000fbf;const TUint KCharacterSetIdentifierShiftJis=0x10000fbd;const TUint KCharacterSetIdentifierIso2022Jp=0x100066a0;const TUint KCharacterSetIdentifierIso2022Jp1=0x100066a3;const TUint KCharacterSetIdentifierJis=0x10006066;const TUint KCharacterSetIdentifierEucJpPacked=0x10006067;const TUint KCharacterSetIdentifierJ5=0x1020D408;const TUint KCharacterSetIdentifierCP850=0x102825AD;const TUint KCharacterSetIdentifierUnicodeLittle=0x101f3fae;const TUint KCharacterSetIdentifierUnicodeBig=0x101f4052;const TUint KCharacterSetIdentifierUcs2=0x101ff492;const TUint KCharacterSetIdentifierExtendedSms7Bit=0x102863FD;const TUint KCharacterSetIdentifierTurkishSingleSms7Bit=0x102863FE;const TUint KCharacterSetIdentifierTurkishLockingSms7Bit=0x102863FF;const TUint KCharacterSetIdentifierTurkishLockingAndSingleSms7Bit=0x10286400;const TUint KCharacterSetIdentifierPortugueseSingleSms7Bit=0x10286407;const TUint KCharacterSetIdentifierPortugueseLockingSms7Bit=0x10286408;const TUint KCharacterSetIdentifierPortugueseLockingAndSingleSms7Bit=0x10286409;const TUint KCharacterSetIdentifierSpanishSingleSms7Bit=0x1028640A;const TUint KCharacterSetIdentifierCP949=0x200100FF;const TUint KCharacterSetIdentifierShiftJisDirectmap=0x101F8691;const TUint KCharacterSetIdentifierEucJpDirectmap=0x101F86A6;const TUint KCharacterSetIdentifierEUCKR=0x2000E526;const TUint KCharacterSetIdentifierIscii=0x1027508E;const TUint KCharacterSetIdentifierIso2022kr=0x20010101;const TUint KCharacterSetIdentifierKOI8R=0x101F8778;const TUint KCharacterSetIdentifierKOI8U=0x101F8761;const TUint KCharacterSetIdentifierKsc5601=0x200113CD;const TUint KCharacterSetIdentifierTIS_620=0x101F8549;const TUint KCharacterSetIdentifierWin874=0x101F854A;const TUint KCharacterSetIdentifierWin1250=0x100059D6;const TUint KCharacterSetIdentifierWin1251=0x100059D7;const TUint KCharacterSetIdentifierWin1253=0x100059D8;const TUint KCharacterSetIdentifierWin1254=0x100059D9;const TUint KCharacterSetIdentifierWin1255=0x101F8547;const TUint KCharacterSetIdentifierWin1256=0x101F8548;const TUint KCharacterSetIdentifierWin1257=0x100059DA;const TUint KCharacterSetIdentifierWin1258=0x102073B8;struct SCnvConversionData;class CDeepDestructingArrayOfCharactersSets;class CFileReader;class CStandardNamesAndMibEnums;class RFs;class CCharsetCnvCache;class CCnvCharacterSetConverter:public CBase{public:enum TAvailability{EAvailable, ENotAvailable};enum TError{EErrorIllFormedInput=KErrCorrupt};enum TEndianness{ELittleEndian, EBigEndian};enum TDowngradeForExoticLineTerminatingCharacters{EDowngradeExoticLineTerminatingCharactersToCarriageReturnLineFeed, EDowngradeExoticLineTerminatingCharactersToJustLineFeed};enum{EInputConversionFlagAppend=0x00010000, EInputConversionFlagAllowTruncatedInputNotEvenPartlyConsumable=0x00020000, EInputConversionFlagStopAtFirstUnconvertibleCharacter=0x00040000, EInputConversionFlagMustEndInDefaultCharacterSet=0x00080000, EInputConversionFlagAssumeStartInDefaultCharacterSet=0x00100000};enum{EOutputConversionFlagInputIsTruncated=0x01000000};enum{KStateDefault=0};enum{ELowestThreshold=25};struct SCharacterSet{inline TUint Identifier() const {return iIdentifier;}inline TBool NameIsFileName() const {return iFlags &EFlagNameIsFileName;}inline TPtrC Name() const {return *iName;}private:enum{EFlagNameIsFileName=0x00000001, EFlagFileIsConversionPlugInLibrary=0x00000002};private:inline TBool FileIsConversionPlugInLibrary() const {return iFlags &EFlagFileIsConversionPlugInLibrary;}private:TUint iIdentifier;TUint iFlags;HBufC *iName;private:friend class CCnvCharacterSetConverter;friend class CDeepDestructingArrayOfCharactersSets;};class TArrayOfAscendingIndices{public:enum TAppendResult{EAppendFailed, EAppendSuccessful};public:inline TArrayOfAscendingIndices():iArrayOfIndices(0){}IMPORT_C TAppendResult AppendIndex(TInt aIndex);inline void Remove(TInt aIndexOfIndex){iArrayOfIndices.Delete(aIndexOfIndex, 1);}inline void RemoveAll(){iArrayOfIndices.SetLength(0);}inline TInt NumberOfIndices() const {return iArrayOfIndices.Length();}inline TInt operator[](TInt aIndexOfIndex) const {return iArrayOfIndices[aIndexOfIndex];}private:enum{KMaximumNumberOfIndices=25};private:TBuf16< KMaximumNumberOfIndices > iArrayOfIndices;};public:IMPORT_C static CCnvCharacterSetConverter *NewL();IMPORT_C static CCnvCharacterSetConverter *NewLC();IMPORT_C virtual ~CCnvCharacterSetConverter();IMPORT_C static CArrayFix< SCharacterSet > *CreateArrayOfCharacterSetsAvailableL(RFs &aFileServerSession);IMPORT_C static CArrayFix< SCharacterSet > *CreateArrayOfCharacterSetsAvailableLC(RFs &aFileServerSession);IMPORT_C TUint ConvertStandardNameOfCharacterSetToIdentifierL(const TDesC8 &aStandardNameOfCharacterSet, RFs &aFileServerSession);IMPORT_C HBufC8 *ConvertCharacterSetIdentifierToStandardNameL(TUint aCharacterSetIdentifier, RFs &aFileServerSession);IMPORT_C TUint ConvertMibEnumOfCharacterSetToIdentifierL(TInt aMibEnumOfCharacterSet, RFs &aFileServerSession);IMPORT_C TInt ConvertCharacterSetIdentifierToMibEnumL(TUint aCharacterSetIdentifier, RFs &aFileServerSession);IMPORT_C void PrepareToConvertToOrFromL(TUint aCharacterSetIdentifier, const CArrayFix< SCharacterSet > &aArrayOfCharacterSetsAvailable, RFs &aFileServerSession);IMPORT_C TAvailability PrepareToConvertToOrFromL(TUint aCharacterSetIdentifier, RFs &aFileServerSession);IMPORT_C void SetDefaultEndiannessOfForeignCharacters(TEndianness aEndianness);IMPORT_C void SetDowngradeForExoticLineTerminatingCharacters(TDowngradeForExoticLineTerminatingCharacters aDowngradeForExoticLineTerminatingCharacters);IMPORT_C void SetReplacementForUnconvertibleUnicodeCharactersL(const TDesC8 &aReplacementForUnconvertibleUnicodeCharacters);IMPORT_C TInt ConvertFromUnicode(TDes8 &aForeign, const TDesC16 &aUnicode) const ;IMPORT_C TInt ConvertFromUnicode(TDes8 &aForeign, const TDesC16 &aUnicode, TInt &aNumberOfUnconvertibleCharacters) const ;IMPORT_C TInt ConvertFromUnicode(TDes8 &aForeign, const TDesC16 &aUnicode, TInt &aNumberOfUnconvertibleCharacters, TInt &aIndexOfFirstUnconvertibleCharacter) const ;IMPORT_C TInt ConvertFromUnicode(TDes8 &aForeign, const TDesC16 &aUnicode, TArrayOfAscendingIndices &aIndicesOfUnconvertibleCharacters) const ;IMPORT_C TInt ConvertToUnicode(TDes16 &aUnicode, const TDesC8 &aForeign, TInt &aState) const ;IMPORT_C TInt ConvertToUnicode(TDes16 &aUnicode, const TDesC8 &aForeign, TInt &aState, TInt &aNumberOfUnconvertibleCharacters) const ;IMPORT_C TInt ConvertToUnicode(TDes16 &aUnicode, const TDesC8 &aForeign, TInt &aState, TInt &aNumberOfUnconvertibleCharacters, TInt &aIndexOfFirstByteOfFirstUnconvertibleCharacter) const ;IMPORT_C static void AutoDetectCharacterSetL(TInt &aConfidenceLevel, TUint &aCharacterSetIdentifier, const CArrayFix< SCharacterSet > &aArrayOfCharacterSetsAvailable, const TDesC8 &aSample);IMPORT_C void AutoDetectCharSetL(TInt &aConfidenceLevel, TUint &aCharacterSetIdentifier, const CArrayFix< SCharacterSet > &aArrayOfCharacterSetsAvailable, const TDesC8 &aSample);IMPORT_C static void ConvertibleToCharacterSetL(TInt &aConfidenceLevel, const TUint aCharacterSetIdentifier, const CArrayFix< SCharacterSet > &aArrayOfCharacterSetsAvailable, const TDesC8 &aSample);IMPORT_C void ConvertibleToCharSetL(TInt &aConfidenceLevel, const TUint aCharacterSetIdentifier, const CArrayFix< SCharacterSet > &aArrayOfCharacterSetsAvailable, const TDesC8 &aSample);IMPORT_C void SetMaxCacheSize(TInt aSize);IMPORT_C static TInt DoConvertFromUnicode(const SCnvConversionData &aConversionData, TEndianness aDefaultEndiannessOfForeignCharacters, const TDesC8 &aReplacementForUnconvertibleUnicodeCharacters, TDes8 &aForeign, const TDesC16 &aUnicode, TArrayOfAscendingIndices &aIndicesOfUnconvertibleCharacters);IMPORT_C static TInt DoConvertFromUnicode(const SCnvConversionData &aConversionData, TEndianness aDefaultEndiannessOfForeignCharacters, const TDesC8 &aReplacementForUnconvertibleUnicodeCharacters, TDes8 &aForeign, const TDesC16 &aUnicode, TArrayOfAscendingIndices &aIndicesOfUnconvertibleCharacters, TUint &aOutputConversionFlags, TUint aInputConversionFlags);IMPORT_C static TInt DoConvertToUnicode(const SCnvConversionData &aConversionData, TEndianness aDefaultEndiannessOfForeignCharacters, TDes16 &aUnicode, const TDesC8 &aForeign, TInt &aNumberOfUnconvertibleCharacters, TInt &aIndexOfFirstByteOfFirstUnconvertibleCharacter);IMPORT_C static TInt DoConvertToUnicode(const SCnvConversionData &aConversionData, TEndianness aDefaultEndiannessOfForeignCharacters, TDes16 &aUnicode, const TDesC8 &aForeign, TInt &aNumberOfUnconvertibleCharacters, TInt &aIndexOfFirstByteOfFirstUnconvertibleCharacter, TUint &aOutputConversionFlags, TUint aInputConversionFlags);IMPORT_C static const SCnvConversionData &AsciiConversionData();inline TDowngradeForExoticLineTerminatingCharacters GetDowngradeForExoticLineTerminatingCharacters(){return iDowngradeForExoticLineTerminatingCharacters;};private:enum{EStoredFlagOwnsConversionData=0x00000001, EStoredFlagConversionPlugInLibraryIsLoaded=0x00000002};enum TCharacterSetSearch{EStopCharacterSetSearch, EContinueCharacterSetSearch};enum TConversionPlugInFunctionOrdinals{EReplacementForUnconvertibleUnicodeCharacters=1, EConvertFromUnicode=2, EConvertToUnicode=3, EIsInThisCharacterSet=4};private:CCnvCharacterSetConverter();void ConstructL();static CArrayFix< SCharacterSet > *DoCreateArrayOfCharacterSetsAvailableLC(RFs &aFileServerSession, TUint aIdentifierOfOnlyCharacterSetOfInterest);static TCharacterSetSearch AppendHardCodedCharacterSetIfRequiredL(CArrayFix< SCharacterSet > &aArrayOfCharacterSets, TUint aIdentifierOfOnlyCharacterSetOfInterest, TUint aIdentifierOfHardCodedCharacterSet, const TDesC &aNameOfHardCodedCharacterSet);void ScanForStandardNamesAndMibEnumsL(RFs &aFileServerSession);void ScanForStandardNamesAndMibEnumsROMOnlyL(RFs &aFileServerSession);TAvailability DoPrepareToConvertToOrFromL(TUint aCharacterSetIdentifier, const CArrayFix< SCharacterSet > *aArrayOfCharacterSetsAvailable, RFs &aFileServerSession);static void DeleteConversionData(const SCnvConversionData *aConversionData);static void DeleteConversionData(TAny *aConversionData);static TEndianness EndiannessOfForeignCharacters(const SCnvConversionData &aConversionData, TEndianness aDefaultEndiannessOfForeignCharacters);private:TUint iStoredFlags;TUint iCharacterSetIdentifierOfLoadedConversionData;const SCnvConversionData *iConversionData;TEndianness iDefaultEndiannessOfForeignCharacters;TDowngradeForExoticLineTerminatingCharacters iDowngradeForExoticLineTerminatingCharacters;TBuf8< KMaximumLengthOfReplacementForUnconvertibleUnicodeCharacters > iReplacementForUnconvertibleUnicodeCharacters;CStandardNamesAndMibEnums *iStandardNamesAndMibEnums;TBool iTlsDataConstructed;CCharsetCnvCache *iCharsetCnvCache;TBool iIsSystemStandardNamesAndMibEnumsScanned;};#31"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLParser/INC/gmxmlcomposer.h"2class CMDXMLDocument;class CMDXMLEntityConverter;class CMDXMLNode;class MMDXMLComposerObserver{public:virtual void ComposeFileCompleteL()=0;};class CMDXMLComposer:public CActive{public:IMPORT_C~CMDXMLComposer();IMPORT_C static CMDXMLComposer *NewL(MMDXMLComposerObserver *aComposerObserver);IMPORT_C static CMDXMLComposer *NewL(MMDXMLComposerObserver *aComposerObserver, TBool aOutputProlog);IMPORT_C static CMDXMLComposer *NewLC(MMDXMLComposerObserver *aComposerObserver);IMPORT_C static CMDXMLComposer *NewLC(MMDXMLComposerObserver *aComposerObserver, TBool aOutputProlog);IMPORT_C TInt ComposeFile(RFs aRFs, const TDesC &aFileToCompose, CMDXMLDocument *aDocument, TXMLFileType aFileType);IMPORT_C TInt ComposeFile(RFile &aFileHandleToCompose, CMDXMLDocument *aDocument, TXMLFileType aFileType);IMPORT_C TInt CalculateFileSize(TInt &aSize, CMDXMLDocument *aDocument, TXMLFileType aFileType);IMPORT_C TInt Error() const ;IMPORT_C TXMLErrorCodeSeverity ErrorSeverity() const ;IMPORT_C TInt OutputDataL(const TDesC &aData);IMPORT_C void SetEntityConverter(CMDXMLEntityConverter *aEntityConverter);public:IMPORT_C CMDXMLEntityConverter *EntityConverter() const ;TInt OutputCommentL(const TDesC &aComment);TInt OutputProcessingInstructionL(const TDesC &aInstruction);TInt OutputCDataSectionL(const TDesC &aCDataSection);IMPORT_C TInt OutputStartOfElementTagL(const TDesC &aElementName);IMPORT_C TInt OutputEndOfElementTagL(const TBool aHasChildren);TInt OutputEndTagL(const TDesC &aElementName);IMPORT_C TInt OutputAttributeL(const TDesC &aAttributeName, const TDesC &aAttributeValue);private:void BaseConstructL();IMPORT_C TInt RunError(TInt aError);IMPORT_C virtual void DoCancel();virtual void RunL();virtual TInt WriteFileL(const TDesC &aStringToWrite);virtual TInt FlushOutputBufferL();CMDXMLComposer(MMDXMLComposerObserver *aComposerObserver);CMDXMLComposer(MMDXMLComposerObserver *aComposerObserver, TBool aOutputProlog);IMPORT_C void SetError(const TInt aErrorCode, const TXMLErrorCodeSeverity aSeverity);IMPORT_C TInt ComposeStartTagL(CMDXMLNode &aNode);IMPORT_C TInt ComposeEndTagL(CMDXMLNode &aNode);void ConstructL();TInt ComposeL();void InitialiseCompose(CMDXMLDocument *aDocument, TXMLFileType aFileType);IMPORT_C void PlaceholderForRemovedExport1(MMDXMLComposerObserver *aComposerObserver);IMPORT_C void PlaceholderForRemovedExport2();IMPORT_C void PlaceholderForRemovedExport3();TInt ReplaceXmlCharactersL(const TDesC16 &aXmlData, const TDesC &aString);private:MMDXMLComposerObserver *iComposerObserver;CMDXMLEntityConverter *iEntityConverter;CMDXMLDocument *iXMLDoc;RFile iXMLFile;TXMLFileType iFileType;TInt iError;TXMLErrorCodeSeverity iSeverity;CCnvCharacterSetConverter *iCharconv;TBuf< KWriteBufferLen > iOutputBuffer;RFs iRFs;TBool iOutputProlog;TInt iSizeTally;TInt *iSize;TBool iOnlyCalculatingSize;};#29"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLParser/SRC/GMXMLComposer.cpp"2#1"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLParser/INC/gmxmlentityconverter.h"1#define __GMXMLENTITYCONVERTER_H__#1"X:/epoc32/include/txtetext.h"1#define __TXTETEXT_H__#1"X:/epoc32/include/s32std.h"1#define __S32STD_H__#1"X:/epoc32/include/s32strm.h"1#define __S32STRM_H__const TInt KMaxCardinality=0x1fffffff;class MStreamBuf;class RWriteStream;class RReadStream{public:inline RReadStream();inline RReadStream(MStreamBuf *aSource);inline MStreamBuf *Source();inline void Close();IMPORT_C void Release();IMPORT_C void PushL();inline void Pop();IMPORT_C void ReadL(TDes8 &aDes);IMPORT_C void ReadL(TDes8 &aDes, TInt aLength);IMPORT_C void ReadL(TDes8 &aDes, TChar aDelim);IMPORT_C void ReadL(TUint8 *aPtr, TInt aLength);IMPORT_C void ReadL(TInt aLength);inline void ReadL(RWriteStream &aStream);inline void ReadL(RWriteStream &aStream, TInt aLength);IMPORT_C void ReadL(TDes16 &aDes);IMPORT_C void ReadL(TDes16 &aDes, TInt aLength);IMPORT_C void ReadL(TDes16 &aDes, TChar aDelim);IMPORT_C void ReadL(TUint16 *aPtr, TInt aLength);IMPORT_C TInt8 ReadInt8L();IMPORT_C TInt16 ReadInt16L();IMPORT_C TInt32 ReadInt32L();IMPORT_C TUint8 ReadUint8L();IMPORT_C TUint16 ReadUint16L();IMPORT_C TUint32 ReadUint32L();IMPORT_C TReal32 ReadReal32L() __SOFTFP;IMPORT_C TReal64 ReadReal64L() __SOFTFP;protected:inline void Attach(MStreamBuf *aSource);inline void Detach();private:MStreamBuf *iSrc;private:friend class RWriteStream;};template< class T >class MExternalizer;class TStreamRef;class RWriteStream{public:inline RWriteStream();inline RWriteStream(const MExternalizer< TStreamRef > &anExter);inline RWriteStream(MStreamBuf *aSink);inline MStreamBuf *Sink();IMPORT_C void Close();IMPORT_C void Release();IMPORT_C void CommitL();IMPORT_C void PushL();inline void Pop();IMPORT_C void WriteL(const TDesC8 &aDes);IMPORT_C void WriteL(const TDesC8 &aDes, TInt aLength);IMPORT_C void WriteL(const TUint8 *aPtr, TInt aLength);IMPORT_C void WriteL(RReadStream &aStream);IMPORT_C void WriteL(RReadStream &aStream, TInt aLength);IMPORT_C void WriteL(const TDesC16 &aDes);IMPORT_C void WriteL(const TDesC16 &aDes, TInt aLength);IMPORT_C void WriteL(const TUint16 *aPtr, TInt aLength);IMPORT_C void WriteInt8L(TInt aValue);IMPORT_C void WriteInt16L(TInt aValue);IMPORT_C void WriteInt32L(TInt32 aValue);IMPORT_C void WriteUint8L(TUint aValue);IMPORT_C void WriteUint16L(TUint aValue);IMPORT_C void WriteUint32L(TUint32 aValue);IMPORT_C void WriteReal32L(TReal aValue) __SOFTFP;IMPORT_C void WriteReal64L(TReal64 aValue) __SOFTFP;protected:inline void Attach(MStreamBuf *aSink);inline void Detach();private:IMPORT_C void WriteRefL(TStreamRef aRef);private:MStreamBuf *iSnk;const MExternalizer< TStreamRef > *iExterL;private:friend class TStreamRef;};template< class T >inline RWriteStream &operator<<(RWriteStream &aStream, const T &anObject);template< class T >inline RReadStream &operator> >RReadStream &aStream, T &anObject);class TCardinality{public:TCardinality(){}inline TCardinality(TInt aCount);inline operator TInt() const ;IMPORT_C void ExternalizeL(RWriteStream &aStream) const ;IMPORT_C void InternalizeL(RReadStream &aStream);private:TInt iCount;private:IMPORT_C static void __DbgChkRange(TInt aCount);};typedef void(*TExternalizeFunction)(const TAny *aPtr, RWriteStream &aStream);typedef void(*TInternalizeFunction)(TAny *aPtr, RReadStream &aStream);template< class T >class TExternalizer{public:inline void operator()(const T &anObject, RWriteStream &aStream) const ;inline static TExternalizeFunction Function();private:static void ExternalizeAsL(const TAny *aPtr, RWriteStream &aStream);};TEMPLATE_SPECIALIZATION class TExternalizer< TAny >{public:TExternalizer(){}inline TExternalizer(TExternalizeFunction aFunction);inline void operator()(const TAny *aPtr, RWriteStream &aStream) const ;inline TExternalizeFunction Function() const ;private:TExternalizeFunction iFunc;};template< class T >class TInternalizer{public:inline void operator()(T &anObject, RReadStream &aStream) const ;inline static TInternalizeFunction Function();private:static void InternalizeAsL(TAny *aPtr, RReadStream &aStream);};TEMPLATE_SPECIALIZATION class TInternalizer< TAny >{public:TInternalizer(){}inline TInternalizer(TInternalizeFunction aFunction);inline void operator()(TAny *aPtr, RReadStream &aStream) const ;inline TInternalizeFunction Function() const ;private:TInternalizeFunction iFunc;};template< class T >class MExternalizer{public:inline void operator()(const T &anObject, RWriteStream &aStream) const ;private:virtual void ExternalizeL(const T &anObject, RWriteStream &aStream) const =0;};template< class T >class MInternalizer{public:inline void operator()(T &anObject, RReadStream &aStream) const ;private:virtual void InternalizeL(T &anObject, RReadStream &aStream) const =0;};class TStreamRef{public:inline TStreamRef(const TAny *aPtr, TExternalizeFunction aFunction);inline const TAny *Ptr() const ;inline TExternalizeFunction Function() const ;inline void ExternalizeL(RWriteStream &aStream) const ;private:const TAny *iPtr;TExternalizeFunction iFunc;};class Externalize{public:class Member{};class Function{};};class Internalize{public:class Member{};class Function{};};#1"X:/epoc32/include/s32strm.inl"1inline RReadStream::RReadStream():iSrc(NULL){}inline RReadStream::RReadStream(MStreamBuf *aSource):iSrc(aSource){}inline MStreamBuf *RReadStream::Source(){return iSrc;}inline void RReadStream::Close(){Release();}inline void RReadStream::ReadL(RWriteStream &aStream){aStream.WriteL(*this);}inline void RReadStream::ReadL(RWriteStream &aStream, TInt aLength){aStream.WriteL(*this, aLength);}inline void RReadStream::Pop(){CleanupStack::Pop();}inline void RReadStream::Attach(MStreamBuf *aSource){iSrc=aSource;}inline void RReadStream::Detach(){iSrc=NULL;}inline RWriteStream::RWriteStream():iSnk(NULL), iExterL(NULL){}inline RWriteStream::RWriteStream(const MExternalizer< TStreamRef > &anExter):iSnk(NULL), iExterL(&anExter){}inline RWriteStream::RWriteStream(MStreamBuf *aSink):iSnk(aSink), iExterL(NULL){}inline MStreamBuf *RWriteStream::Sink(){return iSnk;}inline void RWriteStream::Pop(){CleanupStack::Pop();}inline void RWriteStream::Attach(MStreamBuf *aSink){iSnk=aSink;}inline void RWriteStream::Detach(){iSnk=NULL;}inline TCardinality::TCardinality(TInt aCount):iCount(aCount){}inline TCardinality::operator TInt() const {return iCount;}template< class T >inline void TExternalizer< T >::operator()(const T &anObject, RWriteStream &aStream) const {aStream<< anObject;}template< class T >inline TExternalizeFunction TExternalizer< T >::Function(){return &ExternalizeAsL;}template< class T >void TExternalizer< T >::ExternalizeAsL(const TAny *aPtr, RWriteStream &aStream){aStream<<*((const T *) aPtr);}inline TExternalizer< TAny >::TExternalizer(TExternalizeFunction aFunction):iFunc(aFunction){}inline void TExternalizer< TAny >::operator()(const TAny *aPtr, RWriteStream &aStream) const {(*iFunc)(aPtr, aStream);}inline TExternalizeFunction TExternalizer< TAny >::Function() const {return iFunc;}template< class T >inline void TInternalizer< T >::operator()(T &anObject, RReadStream &aStream) const {aStream > >anObject;}template< class T >inline TInternalizeFunction TInternalizer< T >::Function(){return &InternalizeAsL;}template< class T >void TInternalizer< T >::InternalizeAsL(TAny *aPtr, RReadStream &aStream){aStream > > *T * aPtr

const TLitC< sizeof(L"</")/2 > KXMLStartEndTag={sizeof(L"</")/2-1, L"</"};const static TLitC< sizeof(L"<")/2 > KXMLStartTag={sizeof(L"<")/2-1, L"<"};const static TLitC< sizeof(L"/>")/2 > KXMLEndStartTag={sizeof(L"/>")/2-1, L"/>"};const static TLitC< sizeof(L"<?")/2 > KXMLStartProcessingInstruction={sizeof(L"<?")/2-1, L"<?"};const static TLitC< sizeof(L"?>")/2 > KXMLEndProcessingInstruction={sizeof(L"?>")/2-1, L"?>"};const static TLitC< sizeof(L"<![CDATA[")/2 > KXMLStartCDataSection={sizeof(L"<![CDATA[")/2-1, L"<![CDATA["};const static TLitC< sizeof(L"]]>")/2 > KXMLEndCDataSection={sizeof(L"]]>")/2-1, L"]]>"};const static TLitC< sizeof(L"\\")/2 > KBackSlash={sizeof(L"\\")/2-1, L"\\"};const static TLitC< sizeof(L"-")/2 > KDash={sizeof(L"-")/2-1, L"-"};const static TLitC< sizeof(L"!")/2 > KExclamation={sizeof(L"!")/2-1, L"!"};const static TLitC< sizeof(L"/")/2 > KForwardSlash={sizeof(L"/")/2-1, L"/"};const static TLitC< sizeof(L"=")/2 > KEqualSign={sizeof(L"=")/2-1, L"="};const static TLitC< sizeof(L"<")/2 > KLeftArrow={sizeof(L"<")/2-1, L"<"};const static TLitC< sizeof(L">")/2 > KRightArrow={sizeof(L">")/2-1, L">"};const static TLitC< sizeof(L"&")/2 > KAmpersand={sizeof(L"&")/2-1, L"&"};const static TLitC< sizeof(L"\'")/2 > KApostrophe={sizeof(L"\'")/2-1, L"\'"};const static TLitC< sizeof(L"\"")/2 > KQuotation={sizeof(L"\"")/2-1, L"\""};const static TLitC< sizeof(L" ")/2 > KSingleSpace={sizeof(L" ")/2-1, L" "};const TInt KNominalTagLength=256;const TInt KStartPosition=-1;#25"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLParser/SRC/GMXMLComposer.cpp"2#1"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLDom/INC/gmxmlnode.h"1#define __GMXMLNODE_H__#1"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLDom/INC/gmxmldocument.h"1#define __GMXMLDOCUMENT_H__#1"X:/epoc32/include/badesca.h"1#define __BADESCA_H__#1"X:/epoc32/include/bamdesca.h"1#define __BAMDESCA_H__class MDesC8Array{public:virtual ~MDesC8Array(){}virtual TInt MdcaCount() const =0;virtual TPtrC8 MdcaPoint(TInt aIndex) const =0;};class MDesC16Array{public:virtual ~MDesC16Array(){}virtual TInt MdcaCount() const =0;virtual TPtrC16 MdcaPoint(TInt aIndex) const =0;};#define MDesCArray#23"X:/epoc32/include/badesca.h"2class CDesC8Array:public CArrayFixBase, public MDesC8Array{protected:IMPORT_C CDesC8Array(TBufRep aRep, TInt aGranularity);public:IMPORT_C~CDesC8Array();IMPORT_C void AppendL(const TDesC8 &aPtr);IMPORT_C void InsertL(TInt aPos, const TDesC8 &aPtr);IMPORT_C TInt InsertIsqL(const TDesC8 &aPtr, TKeyCmpText aTextComparisonType=ECmpFolded);IMPORT_C TInt InsertIsqAllowDuplicatesL(const TDesC8 &aPtr, TKeyCmpText aTextComparisonType=ECmpFolded);IMPORT_C void Sort(TKeyCmpText aTextComparisonType=ECmpFolded);IMPORT_C TInt Find(const TDesC8 &aPtr, TInt &aPos, TKeyCmpText aTextComparisonType=ECmpFolded) const ;IMPORT_C TInt FindIsq(const TDesC8 &aPtr, TInt &aPos, TKeyCmpText aTextComparisonType=ECmpFolded) const ;IMPORT_C void Delete(TInt aPos);IMPORT_C void Delete(TInt aIndex, TInt aCount);IMPORT_C void Reset();inline TPtrC8 operator[](TInt aIndex) const ;IMPORT_C TInt MdcaCount() const ;IMPORT_C TPtrC8 MdcaPoint(TInt aIndex) const ;};inline TPtrC8 CDesC8Array::operator[](TInt aIndex) const {return(MdcaPoint(aIndex));}class CDesC8ArrayFlat:public CDesC8Array{public:IMPORT_C CDesC8ArrayFlat(TInt aGranularity);IMPORT_C~CDesC8ArrayFlat();};class CDesC8ArraySeg:public CDesC8Array{public:IMPORT_C CDesC8ArraySeg(TInt aGranularity);IMPORT_C~CDesC8ArraySeg();};class CDesC16Array:public CArrayFixBase, public MDesC16Array{protected:IMPORT_C CDesC16Array(TBufRep aRep, TInt aGranularity);public:IMPORT_C~CDesC16Array();IMPORT_C void AppendL(const TDesC16 &aPtr);IMPORT_C void InsertL(TInt aPos, const TDesC16 &aPtr);IMPORT_C TInt InsertIsqL(const TDesC16 &aPtr, TKeyCmpText aTextComparisonType=ECmpFolded);IMPORT_C TInt InsertIsqAllowDuplicatesL(const TDesC16 &aPtr, TKeyCmpText aTextComparisonType=ECmpFolded);IMPORT_C void Sort(TKeyCmpText aTextComparisonType=ECmpFolded);IMPORT_C TInt Find(const TDesC16 &aPtr, TInt &aPos, TKeyCmpText aTextComparisonType=ECmpFolded) const ;IMPORT_C TInt FindIsq(const TDesC16 &aPtr, TInt &aPos, TKeyCmpText aTextComparisonType=ECmpFolded) const ;IMPORT_C void Delete(TInt aPos);IMPORT_C void Delete(TInt aIndex, TInt aCount);IMPORT_C void Reset();inline TPtrC16 operator[](TInt aIndex) const ;IMPORT_C TInt MdcaCount() const ;IMPORT_C TPtrC16 MdcaPoint(TInt aIndex) const ;};inline TPtrC16 CDesC16Array::operator[](TInt aIndex) const {return(MdcaPoint(aIndex));}class CDesC16ArrayFlat:public CDesC16Array{public:IMPORT_C CDesC16ArrayFlat(TInt aGranularity);IMPORT_C~CDesC16ArrayFlat();};class CDesC16ArraySeg:public CDesC16Array{public:IMPORT_C CDesC16ArraySeg(TInt aGranularity);IMPORT_C~CDesC16ArraySeg();};class CPtrC8Array:public CArrayFixFlat< TPtrC8 >, public MDesC8Array{public:IMPORT_C CPtrC8Array(TInt aGranularity);IMPORT_C~CPtrC8Array();IMPORT_C void CopyL(const MDesC8Array &aArray);inline void operator=(const MDesC8Array &aArray);IMPORT_C TInt MdcaCount() const ;IMPORT_C TPtrC8 MdcaPoint(TInt aIndex) const ;};class CPtrC16Array:public CArrayFixFlat< TPtrC16 >, public MDesC16Array{public:IMPORT_C CPtrC16Array(TInt aGranularity);IMPORT_C~CPtrC16Array();IMPORT_C void CopyL(const MDesC16Array &aArray);inline void operator=(const MDesC16Array &aArray);IMPORT_C TInt MdcaCount() const ;IMPORT_C TPtrC16 MdcaPoint(TInt aIndex) const ;};inline void CPtrC8Array::operator=(const MDesC8Array &aArray){CopyL(aArray);}inline void CPtrC16Array::operator=(const MDesC16Array &aArray){CopyL(aArray);}typedef CDesC16Array CDesCArray;typedef CDesC16ArrayFlat CDesCArrayFlat;typedef CDesC16ArraySeg CDesCArraySeg;typedef CPtrC16Array CPtrCArray;#30"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLDom/INC/gmxmldocument.h"2class CMDXMLElement;class MXMLDtd;class MXMLDtd{public:virtual TBool IsValidElementL(const TDesC &aElement) const =0;virtual TInt IsValidAttributeForElementL(const TDesC &aElement, const TDesC &aAttribute, const TDesC &aAttributeValue) const =0;virtual TBool AreValidChildElementsL(const TDesC &aParentElement, const CDesCArray &aChildElements) const =0;virtual TBool CanElementHaveChildren(const TDesC &aElement) const =0;};#1"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLDom/INC/gmxmldummydtd.h"1#define __GMXMLDUMMYDTD_H__const static TLitC< sizeof(L"#cdata-section")/2 > KXMLCDATASectionNodeName={sizeof(L"#cdata-section")/2-1, L"#cdata-section"};const static TLitC< sizeof(L"comment")/2 > KXMLCommentNodeName={sizeof(L"comment")/2-1, L"comment"};const static TLitC< sizeof(L"processing_instruction")/2 > KXMLProcessingInstructionNodeName={sizeof(L"processing_instruction")/2-1, L"processing_instruction"};const static TLitC< sizeof(L"#text")/2 > KXMLTextNodeName={sizeof(L"#text")/2-1, L"#text"};const static TLitC< sizeof(L"<?xml version=\"1.0\" ?>")/2 > KXMLDefaultVersionTag={sizeof(L"<?xml version=\"1.0\" ?>")/2-1, L"<?xml version=\"1.0\" ?>"};const static TLitC< sizeof(L"<!DOCTYPE smil SYSTEM \"mms_smil.dtd\">")/2 > KXMLDefaultDocTypeTag={sizeof(L"<!DOCTYPE smil SYSTEM \"mms_smil.dtd\">")/2-1, L"<!DOCTYPE smil SYSTEM \"mms_smil.dtd\">"};const static TLitC< sizeof(L"<?xml")/2 > KXMLVersion={sizeof(L"<?xml")/2-1, L"<?xml"};const static TLitC< sizeof(L">")/2 > KXMLEndTag={sizeof(L">")/2-1, L">"};const static TLitC< sizeof(L"<!DOCTYPE")/2 > KXMLDocumentTypes={sizeof(L"<!DOCTYPE")/2-1, L"<!DOCTYPE"};const TInt KXMLUndefinedElement=-1;const static TLitC< sizeof(L"LDR-IMPORT")/2 > KLDRIMPORT={sizeof(L"LDR-IMPORT")/2-1, L"LDR-IMPORT"};const TInt KLdrImportedOrdinalDoesNotExist=2;class CMDXMLDummyDtd:public MXMLDtd{TBool IsValidElementL(const TDesC &aElement) const ;TInt IsValidAttributeForElementL(const TDesC &aElement, const TDesC &aAttribute, const TDesC &aAttributeValue) const ;TBool AreValidChildElementsL(const TDesC &aParentElement, const CDesCArray &aChildElements) const ;TBool CanElementHaveChildren(const TDesC &aElement) const ;};#85"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLDom/INC/gmxmldocument.h"2class CMDXMLDocument:public CBase{public:IMPORT_C static CMDXMLDocument *NewL(MXMLDtd &iDtdRepresentation);IMPORT_C static CMDXMLDocument *NewLC(MXMLDtd &iDtdRepresentation);IMPORT_C static CMDXMLDocument *NewL();IMPORT_C static CMDXMLDocument *NewLC();IMPORT_C virtual ~CMDXMLDocument();inline CMDXMLElement *DocumentElement(){return iRootElement;}IMPORT_C TBool SetVersionTagL(const TDesC &aVersionTag);IMPORT_C TBool SetDocTypeTagL(const TDesC &aDocTypeTag);IMPORT_C TBool ValidElementNameL(const TDesC &aElement) const ;IMPORT_C TBool CanElementHaveChildren(const TDesC &aElement) const ;inline const TDesC &VersionTag() const {return *iVersionTag;}inline const TDesC &DocTypeTag() const {return *iDocTypeTag;}const MXMLDtd &CMDXMLDocument::DtdRepresentation() const ;private:CMDXMLDocument(MXMLDtd &aDtdRepresentation);CMDXMLDocument();inline void SetDocumentElement(CMDXMLElement *aRootElement){iRootElement=aRootElement;}void ConstructL();IMPORT_C void PlaceholderForRemovedExport1(MXMLDtd &aDtdRepresentation);IMPORT_C void PlaceholderForRemovedExport2();private:CMDXMLElement *iRootElement;protected:HBufC *iVersionTag;HBufC *iDocTypeTag;private:MXMLDtd *iDtdRepresentation;TBool iOwnsDtd;};#28"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLDom/INC/gmxmlnode.h"2class CMDXMLComposer;class CMDXMLDocument;class CMDXMLEntityConverter;class CMDXMLNode:public CBase{public:enum TDOMNodeType{EElementNode=1, ETextNode=3, ECDATASectionNode=4, EProcessingInstructionNode=7, ECommentNode=8, EDocumentNode=9};IMPORT_C virtual ~CMDXMLNode();inline TDOMNodeType NodeType(){return iNodeType;}IMPORT_C TPtrC NodeName();inline TBool CanHaveChildNodes(){return iCanHaveChildren;}inline TBool HasChildNodes(){return(iFirstChildPtr!=NULL);}inline CMDXMLDocument *OwnerDocument(){return(CMDXMLDocument *) iOwnerDocument;}inline CMDXMLNode *FirstChild(){return iFirstChildPtr;}inline CMDXMLNode *LastChild(){return iLastChildPtr;}inline CMDXMLNode *NextSibling(){return iNextSiblingPtr;}inline CMDXMLNode *PreviousSibling(){return iPrevSiblingPtr;}inline CMDXMLNode *ParentNode(){return iParentPtr;}inline TInt ElementType(){return iElementType;}IMPORT_C TInt RemoveChild(CMDXMLNode *aChildToRemove);IMPORT_C TInt InsertBefore(CMDXMLNode *aInsertBeforeChild, CMDXMLNode *aChildToInsert);IMPORT_C TInt AppendChild(CMDXMLNode *aChildToInsert);IMPORT_C TInt ReplaceChild(CMDXMLNode *aChildToInsert, CMDXMLNode *aChildToReplace);IMPORT_C virtual TBool CheckChildren()=0;protected:CMDXMLNode(TDOMNodeType aNodeType, TBool aCanHaveChildren, CMDXMLDocument *aOwnerDocument);IMPORT_C CMDXMLNode *PreviousSameTypeSibling();IMPORT_C CMDXMLNode *NextSameTypeSibling();IMPORT_C void SetNodeNameL(const TDesC &aNodeName);inline void SetElementType(TInt aElementType){iElementType=aElementType;}protected:CMDXMLDocument *iOwnerDocument;private:TInt iElementType;TDOMNodeType iNodeType;HBufC *iNodeName;CMDXMLNode *iParentPtr;CMDXMLNode *iFirstChildPtr;CMDXMLNode *iLastChildPtr;CMDXMLNode *iNextSiblingPtr;CMDXMLNode *iPrevSiblingPtr;TBool iCanHaveChildren;};#26"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLParser/SRC/GMXMLComposer.cpp"2#1"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLDom/INC/gmxmlelement.h"1#define __GMXMLELEMENT_H__class CMDXMLEntityConverter;class CMDXMLComposer;const TInt KXMLMinJump=5;class CMDXMLElement:public CMDXMLNode{public:IMPORT_C static CMDXMLElement *NewLC(TBool aCanHaveChildren, CMDXMLDocument *aOwnerDocument, TPtrC aTagName);IMPORT_C static CMDXMLElement *NewL(TBool aCanHaveChildren, CMDXMLDocument *aOwnerDocument, TPtrC aTagName);IMPORT_C virtual ~CMDXMLElement();IMPORT_C virtual TInt GetAttribute(const TDesC &aAttributeName, TPtrC &aAttributeValue) const ;IMPORT_C virtual TInt SetAttributeL(const TDesC &aAttributeName, const TDesC &aAttributeValue);IMPORT_C TInt SetAttributeL(const TDesC &aAttributeName, const TDesC &aAttributeValue, TBool aStoreInvalid);IMPORT_C virtual TInt RemoveAttribute(const TDesC &aAttributeName);IMPORT_C virtual TBool IsAttributeSpecified(const TDesC &aAttributeName) const ;IMPORT_C virtual TBool CheckChildren();IMPORT_C CMDXMLElement *FirstChildOfType(const TDesC &aElementType);IMPORT_C CMDXMLElement *LastChildOfType(const TDesC &aElementType);protected:IMPORT_C CMDXMLElement(TBool aCanHaveChildren, CMDXMLDocument *aOwnerDocument);void ConstructL();protected:IMPORT_C virtual TBool CheckImmediateChildren();private:TBool DoCheckImmediateChildrenL();public:IMPORT_C TInt FindIndex(const TDesC &aAttName);IMPORT_C TInt AttributeDetails(TInt Index, TPtrC &aAttributeName, TPtrC &aAttributeValue);IMPORT_C TInt NumAttributes();protected:CDesCArraySeg *iDescAttName;CDesCArraySeg *iDescAttValue;};#28"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLParser/SRC/GMXMLComposer.cpp"2#1"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLParser/INC/gmxmlcomposer.h"1#define __GMXMLCOMPOSER_H__#1"X:/epoc32/include/charconv.h"1#define __CHARCONV_H__const TInt KMaximumLengthOfReplacementForUnconvertibleUnicodeCharacters=50;const TUint KCharacterSetIdentifierUtf7=0x1000582c;const TUint KCharacterSetIdentifierUtf8=0x1000582d;const TUint KCharacterSetIdentifierImapUtf7=0x1000582e;const TUint KCharacterSetIdentifierJavaConformantUtf8=0x1000582f;const TUint KCharacterSetIdentifierCodePage1252=0x100012b6;const TUint KCharacterSetIdentifierIso88591=0x10003b10;const TUint KCharacterSetIdentifierIso88592=0x1000507e;const TUint KCharacterSetIdentifierIso88593=0x10008a28;const TUint KCharacterSetIdentifierIso88594=0x1000507f;const TUint KCharacterSetIdentifierIso88595=0x10005080;const TUint KCharacterSetIdentifierIso88596=0x10008a29;const TUint KCharacterSetIdentifierIso88597=0x10005081;const TUint KCharacterSetIdentifierIso88598=0x10008a2a;const TUint KCharacterSetIdentifierIso88599=0x10005082;const TUint KCharacterSetIdentifierIso885910=0x10008a2b;const TUint KCharacterSetIdentifierIso885913=0x10008a2c;const TUint KCharacterSetIdentifierIso885914=0x10008a2d;const TUint KCharacterSetIdentifierIso885915=0x10008a2e;const TUint KCharacterSetIdentifierAscii=0x10004cc6;const TUint KCharacterSetIdentifierSms7Bit=0x100053ab;const TUint KCharacterSetIdentifierGb2312=0x10000fbe;const TUint KCharacterSetIdentifierHz=0x10006065;const TUint KCharacterSetIdentifierGb12345=0x1000401a;const TUint KCharacterSetIdentifierGbk=0x10003ecb;const TUint KCharacterSetIdentifierGb18030=0x10287038;const TUint KCharacterSetIdentifierBig5=0x10000fbf;const TUint KCharacterSetIdentifierShiftJis=0x10000fbd;const TUint KCharacterSetIdentifierIso2022Jp=0x100066a0;const TUint KCharacterSetIdentifierIso2022Jp1=0x100066a3;const TUint KCharacterSetIdentifierJis=0x10006066;const TUint KCharacterSetIdentifierEucJpPacked=0x10006067;const TUint KCharacterSetIdentifierJ5=0x1020D408;const TUint KCharacterSetIdentifierCP850=0x102825AD;const TUint KCharacterSetIdentifierUnicodeLittle=0x101f3fae;const TUint KCharacterSetIdentifierUnicodeBig=0x101f4052;const TUint KCharacterSetIdentifierUcs2=0x101ff492;const TUint KCharacterSetIdentifierExtendedSms7Bit=0x102863FD;const TUint KCharacterSetIdentifierTurkishSingleSms7Bit=0x102863FE;const TUint KCharacterSetIdentifierTurkishLockingSms7Bit=0x102863FF;const TUint KCharacterSetIdentifierTurkishLockingAndSingleSms7Bit=0x10286400;const TUint KCharacterSetIdentifierPortugueseSingleSms7Bit=0x10286407;const TUint KCharacterSetIdentifierPortugueseLockingSms7Bit=0x10286408;const TUint KCharacterSetIdentifierPortugueseLockingAndSingleSms7Bit=0x10286409;const TUint KCharacterSetIdentifierSpanishSingleSms7Bit=0x1028640A;const TUint KCharacterSetIdentifierCP949=0x200100FF;const TUint KCharacterSetIdentifierShiftJisDirectmap=0x101F8691;const TUint KCharacterSetIdentifierEucJpDirectmap=0x101F86A6;const TUint KCharacterSetIdentifierEUCKR=0x2000E526;const TUint KCharacterSetIdentifierIscii=0x1027508E;const TUint KCharacterSetIdentifierIso2022kr=0x20010101;const TUint KCharacterSetIdentifierKOI8R=0x101F8778;const TUint KCharacterSetIdentifierKOI8U=0x101F8761;const TUint KCharacterSetIdentifierKsc5601=0x200113CD;const TUint KCharacterSetIdentifierTIS_620=0x101F8549;const TUint KCharacterSetIdentifierWin874=0x101F854A;const TUint KCharacterSetIdentifierWin1250=0x100059D6;const TUint KCharacterSetIdentifierWin1251=0x100059D7;const TUint KCharacterSetIdentifierWin1253=0x100059D8;const TUint KCharacterSetIdentifierWin1254=0x100059D9;const TUint KCharacterSetIdentifierWin1255=0x101F8547;const TUint KCharacterSetIdentifierWin1256=0x101F8548;const TUint KCharacterSetIdentifierWin1257=0x100059DA;const TUint KCharacterSetIdentifierWin1258=0x102073B8;struct SCnvConversionData;class CDeepDestructingArrayOfCharactersSets;class CFileReader;class CStandardNamesAndMibEnums;class RFs;class CCharsetCnvCache;class CCnvCharacterSetConverter:public CBase{public:enum TAvailability{EAvailable, ENotAvailable};enum TError{EErrorIllFormedInput=KErrCorrupt};enum TEndianness{ELittleEndian, EBigEndian};enum TDowngradeForExoticLineTerminatingCharacters{EDowngradeExoticLineTerminatingCharactersToCarriageReturnLineFeed, EDowngradeExoticLineTerminatingCharactersToJustLineFeed};enum{EInputConversionFlagAppend=0x00010000, EInputConversionFlagAllowTruncatedInputNotEvenPartlyConsumable=0x00020000, EInputConversionFlagStopAtFirstUnconvertibleCharacter=0x00040000, EInputConversionFlagMustEndInDefaultCharacterSet=0x00080000, EInputConversionFlagAssumeStartInDefaultCharacterSet=0x00100000};enum{EOutputConversionFlagInputIsTruncated=0x01000000};enum{KStateDefault=0};enum{ELowestThreshold=25};struct SCharacterSet{inline TUint Identifier() const {return iIdentifier;}inline TBool NameIsFileName() const {return iFlags &EFlagNameIsFileName;}inline TPtrC Name() const {return *iName;}private:enum{EFlagNameIsFileName=0x00000001, EFlagFileIsConversionPlugInLibrary=0x00000002};private:inline TBool FileIsConversionPlugInLibrary() const {return iFlags &EFlagFileIsConversionPlugInLibrary;}private:TUint iIdentifier;TUint iFlags;HBufC *iName;private:friend class CCnvCharacterSetConverter;friend class CDeepDestructingArrayOfCharactersSets;};class TArrayOfAscendingIndices{public:enum TAppendResult{EAppendFailed, EAppendSuccessful};public:inline TArrayOfAscendingIndices():iArrayOfIndices(0){}IMPORT_C TAppendResult AppendIndex(TInt aIndex);inline void Remove(TInt aIndexOfIndex){iArrayOfIndices.Delete(aIndexOfIndex, 1);}inline void RemoveAll(){iArrayOfIndices.SetLength(0);}inline TInt NumberOfIndices() const {return iArrayOfIndices.Length();}inline TInt operator[](TInt aIndexOfIndex) const {return iArrayOfIndices[aIndexOfIndex];}private:enum{KMaximumNumberOfIndices=25};private:TBuf16< KMaximumNumberOfIndices > iArrayOfIndices;};public:IMPORT_C static CCnvCharacterSetConverter *NewL();IMPORT_C static CCnvCharacterSetConverter *NewLC();IMPORT_C virtual ~CCnvCharacterSetConverter();IMPORT_C static CArrayFix< SCharacterSet > *CreateArrayOfCharacterSetsAvailableL(RFs &aFileServerSession);IMPORT_C static CArrayFix< SCharacterSet > *CreateArrayOfCharacterSetsAvailableLC(RFs &aFileServerSession);IMPORT_C TUint ConvertStandardNameOfCharacterSetToIdentifierL(const TDesC8 &aStandardNameOfCharacterSet, RFs &aFileServerSession);IMPORT_C HBufC8 *ConvertCharacterSetIdentifierToStandardNameL(TUint aCharacterSetIdentifier, RFs &aFileServerSession);IMPORT_C TUint ConvertMibEnumOfCharacterSetToIdentifierL(TInt aMibEnumOfCharacterSet, RFs &aFileServerSession);IMPORT_C TInt ConvertCharacterSetIdentifierToMibEnumL(TUint aCharacterSetIdentifier, RFs &aFileServerSession);IMPORT_C void PrepareToConvertToOrFromL(TUint aCharacterSetIdentifier, const CArrayFix< SCharacterSet > &aArrayOfCharacterSetsAvailable, RFs &aFileServerSession);IMPORT_C TAvailability PrepareToConvertToOrFromL(TUint aCharacterSetIdentifier, RFs &aFileServerSession);IMPORT_C void SetDefaultEndiannessOfForeignCharacters(TEndianness aEndianness);IMPORT_C void SetDowngradeForExoticLineTerminatingCharacters(TDowngradeForExoticLineTerminatingCharacters aDowngradeForExoticLineTerminatingCharacters);IMPORT_C void SetReplacementForUnconvertibleUnicodeCharactersL(const TDesC8 &aReplacementForUnconvertibleUnicodeCharacters);IMPORT_C TInt ConvertFromUnicode(TDes8 &aForeign, const TDesC16 &aUnicode) const ;IMPORT_C TInt ConvertFromUnicode(TDes8 &aForeign, const TDesC16 &aUnicode, TInt &aNumberOfUnconvertibleCharacters) const ;IMPORT_C TInt ConvertFromUnicode(TDes8 &aForeign, const TDesC16 &aUnicode, TInt &aNumberOfUnconvertibleCharacters, TInt &aIndexOfFirstUnconvertibleCharacter) const ;IMPORT_C TInt ConvertFromUnicode(TDes8 &aForeign, const TDesC16 &aUnicode, TArrayOfAscendingIndices &aIndicesOfUnconvertibleCharacters) const ;IMPORT_C TInt ConvertToUnicode(TDes16 &aUnicode, const TDesC8 &aForeign, TInt &aState) const ;IMPORT_C TInt ConvertToUnicode(TDes16 &aUnicode, const TDesC8 &aForeign, TInt &aState, TInt &aNumberOfUnconvertibleCharacters) const ;IMPORT_C TInt ConvertToUnicode(TDes16 &aUnicode, const TDesC8 &aForeign, TInt &aState, TInt &aNumberOfUnconvertibleCharacters, TInt &aIndexOfFirstByteOfFirstUnconvertibleCharacter) const ;IMPORT_C static void AutoDetectCharacterSetL(TInt &aConfidenceLevel, TUint &aCharacterSetIdentifier, const CArrayFix< SCharacterSet > &aArrayOfCharacterSetsAvailable, const TDesC8 &aSample);IMPORT_C void AutoDetectCharSetL(TInt &aConfidenceLevel, TUint &aCharacterSetIdentifier, const CArrayFix< SCharacterSet > &aArrayOfCharacterSetsAvailable, const TDesC8 &aSample);IMPORT_C static void ConvertibleToCharacterSetL(TInt &aConfidenceLevel, const TUint aCharacterSetIdentifier, const CArrayFix< SCharacterSet > &aArrayOfCharacterSetsAvailable, const TDesC8 &aSample);IMPORT_C void ConvertibleToCharSetL(TInt &aConfidenceLevel, const TUint aCharacterSetIdentifier, const CArrayFix< SCharacterSet > &aArrayOfCharacterSetsAvailable, const TDesC8 &aSample);IMPORT_C void SetMaxCacheSize(TInt aSize);IMPORT_C static TInt DoConvertFromUnicode(const SCnvConversionData &aConversionData, TEndianness aDefaultEndiannessOfForeignCharacters, const TDesC8 &aReplacementForUnconvertibleUnicodeCharacters, TDes8 &aForeign, const TDesC16 &aUnicode, TArrayOfAscendingIndices &aIndicesOfUnconvertibleCharacters);IMPORT_C static TInt DoConvertFromUnicode(const SCnvConversionData &aConversionData, TEndianness aDefaultEndiannessOfForeignCharacters, const TDesC8 &aReplacementForUnconvertibleUnicodeCharacters, TDes8 &aForeign, const TDesC16 &aUnicode, TArrayOfAscendingIndices &aIndicesOfUnconvertibleCharacters, TUint &aOutputConversionFlags, TUint aInputConversionFlags);IMPORT_C static TInt DoConvertToUnicode(const SCnvConversionData &aConversionData, TEndianness aDefaultEndiannessOfForeignCharacters, TDes16 &aUnicode, const TDesC8 &aForeign, TInt &aNumberOfUnconvertibleCharacters, TInt &aIndexOfFirstByteOfFirstUnconvertibleCharacter);IMPORT_C static TInt DoConvertToUnicode(const SCnvConversionData &aConversionData, TEndianness aDefaultEndiannessOfForeignCharacters, TDes16 &aUnicode, const TDesC8 &aForeign, TInt &aNumberOfUnconvertibleCharacters, TInt &aIndexOfFirstByteOfFirstUnconvertibleCharacter, TUint &aOutputConversionFlags, TUint aInputConversionFlags);IMPORT_C static const SCnvConversionData &AsciiConversionData();inline TDowngradeForExoticLineTerminatingCharacters GetDowngradeForExoticLineTerminatingCharacters(){return iDowngradeForExoticLineTerminatingCharacters;};private:enum{EStoredFlagOwnsConversionData=0x00000001, EStoredFlagConversionPlugInLibraryIsLoaded=0x00000002};enum TCharacterSetSearch{EStopCharacterSetSearch, EContinueCharacterSetSearch};enum TConversionPlugInFunctionOrdinals{EReplacementForUnconvertibleUnicodeCharacters=1, EConvertFromUnicode=2, EConvertToUnicode=3, EIsInThisCharacterSet=4};private:CCnvCharacterSetConverter();void ConstructL();static CArrayFix< SCharacterSet > *DoCreateArrayOfCharacterSetsAvailableLC(RFs &aFileServerSession, TUint aIdentifierOfOnlyCharacterSetOfInterest);static TCharacterSetSearch AppendHardCodedCharacterSetIfRequiredL(CArrayFix< SCharacterSet > &aArrayOfCharacterSets, TUint aIdentifierOfOnlyCharacterSetOfInterest, TUint aIdentifierOfHardCodedCharacterSet, const TDesC &aNameOfHardCodedCharacterSet);void ScanForStandardNamesAndMibEnumsL(RFs &aFileServerSession);void ScanForStandardNamesAndMibEnumsROMOnlyL(RFs &aFileServerSession);TAvailability DoPrepareToConvertToOrFromL(TUint aCharacterSetIdentifier, const CArrayFix< SCharacterSet > *aArrayOfCharacterSetsAvailable, RFs &aFileServerSession);static void DeleteConversionData(const SCnvConversionData *aConversionData);static void DeleteConversionData(TAny *aConversionData);static TEndianness EndiannessOfForeignCharacters(const SCnvConversionData &aConversionData, TEndianness aDefaultEndiannessOfForeignCharacters);private:TUint iStoredFlags;TUint iCharacterSetIdentifierOfLoadedConversionData;const SCnvConversionData *iConversionData;TEndianness iDefaultEndiannessOfForeignCharacters;TDowngradeForExoticLineTerminatingCharacters iDowngradeForExoticLineTerminatingCharacters;TBuf8< KMaximumLengthOfReplacementForUnconvertibleUnicodeCharacters > iReplacementForUnconvertibleUnicodeCharacters;CStandardNamesAndMibEnums *iStandardNamesAndMibEnums;TBool iTlsDataConstructed;CCharsetCnvCache *iCharsetCnvCache;TBool iIsSystemStandardNamesAndMibEnumsScanned;};#31"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLParser/INC/gmxmlcomposer.h"2class CMDXMLDocument;class CMDXMLEntityConverter;class CMDXMLNode;class MMDXMLComposerObserver{public:virtual void ComposeFileCompleteL()=0;};class CMDXMLComposer:public CActive{public:IMPORT_C~CMDXMLComposer();IMPORT_C static CMDXMLComposer *NewL(MMDXMLComposerObserver *aComposerObserver);IMPORT_C static CMDXMLComposer *NewL(MMDXMLComposerObserver *aComposerObserver, TBool aOutputProlog);IMPORT_C static CMDXMLComposer *NewLC(MMDXMLComposerObserver *aComposerObserver);IMPORT_C static CMDXMLComposer *NewLC(MMDXMLComposerObserver *aComposerObserver, TBool aOutputProlog);IMPORT_C TInt ComposeFile(RFs aRFs, const TDesC &aFileToCompose, CMDXMLDocument *aDocument, TXMLFileType aFileType);IMPORT_C TInt ComposeFile(RFile &aFileHandleToCompose, CMDXMLDocument *aDocument, TXMLFileType aFileType);IMPORT_C TInt CalculateFileSize(TInt &aSize, CMDXMLDocument *aDocument, TXMLFileType aFileType);IMPORT_C TInt Error() const ;IMPORT_C TXMLErrorCodeSeverity ErrorSeverity() const ;IMPORT_C TInt OutputDataL(const TDesC &aData);IMPORT_C void SetEntityConverter(CMDXMLEntityConverter *aEntityConverter);public:IMPORT_C CMDXMLEntityConverter *EntityConverter() const ;TInt OutputCommentL(const TDesC &aComment);TInt OutputProcessingInstructionL(const TDesC &aInstruction);TInt OutputCDataSectionL(const TDesC &aCDataSection);IMPORT_C TInt OutputStartOfElementTagL(const TDesC &aElementName);IMPORT_C TInt OutputEndOfElementTagL(const TBool aHasChildren);TInt OutputEndTagL(const TDesC &aElementName);IMPORT_C TInt OutputAttributeL(const TDesC &aAttributeName, const TDesC &aAttributeValue);private:void BaseConstructL();IMPORT_C TInt RunError(TInt aError);IMPORT_C virtual void DoCancel();virtual void RunL();virtual TInt WriteFileL(const TDesC &aStringToWrite);virtual TInt FlushOutputBufferL();CMDXMLComposer(MMDXMLComposerObserver *aComposerObserver);CMDXMLComposer(MMDXMLComposerObserver *aComposerObserver, TBool aOutputProlog);IMPORT_C void SetError(const TInt aErrorCode, const TXMLErrorCodeSeverity aSeverity);IMPORT_C TInt ComposeStartTagL(CMDXMLNode &aNode);IMPORT_C TInt ComposeEndTagL(CMDXMLNode &aNode);void ConstructL();TInt ComposeL();void InitialiseCompose(CMDXMLDocument *aDocument, TXMLFileType aFileType);IMPORT_C void PlaceholderForRemovedExport1(MMDXMLComposerObserver *aComposerObserver);IMPORT_C void PlaceholderForRemovedExport2();IMPORT_C void PlaceholderForRemovedExport3();TInt ReplaceXmlCharactersL(const TDesC16 &aXmlData, const TDesC &aString);private:MMDXMLComposerObserver *iComposerObserver;CMDXMLEntityConverter *iEntityConverter;CMDXMLDocument *iXMLDoc;RFile iXMLFile;TXMLFileType iFileType;TInt iError;TXMLErrorCodeSeverity iSeverity;CCnvCharacterSetConverter *iCharconv;TBuf< KWriteBufferLen > iOutputBuffer;RFs iRFs;TBool iOutputProlog;TInt iSizeTally;TInt *iSize;TBool iOnlyCalculatingSize;};#29"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLParser/SRC/GMXMLComposer.cpp"2#1"X:/sf/os/xmlsrv/xml/legacyminidomparser/XMLParser/INC/gmxmlentityconverter.h"1#define __GMXMLENTITYCONVERTER_H__#1"X:/epoc32/include/txtetext.h"1#define __TXTETEXT_H__#1"X:/epoc32/include/s32std.h"1#define __S32STD_H__#1"X:/epoc32/include/s32strm.h"1#define __S32STRM_H__const TInt KMaxCardinality=0x1fffffff;class MStreamBuf;class RWriteStream;class RReadStream{public:inline RReadStream();inline RReadStream(MStreamBuf *aSource);inline MStreamBuf *Source();inline void Close();IMPORT_C void Release();IMPORT_C void PushL();inline void Pop();IMPORT_C void ReadL(TDes8 &aDes);IMPORT_C void ReadL(TDes8 &aDes, TInt aLength);IMPORT_C void ReadL(TDes8 &aDes, TChar aDelim);IMPORT_C void ReadL(TUint8 *aPtr, TInt aLength);IMPORT_C void ReadL(TInt aLength);inline void ReadL(RWriteStream &aStream);inline void ReadL(RWriteStream &aStream, TInt aLength);IMPORT_C void ReadL(TDes16 &aDes);IMPORT_C void ReadL(TDes16 &aDes, TInt aLength);IMPORT_C void ReadL(TDes16 &aDes, TChar aDelim);IMPORT_C void ReadL(TUint16 *aPtr, TInt aLength);IMPORT_C TInt8 ReadInt8L();IMPORT_C TInt16 ReadInt16L();IMPORT_C TInt32 ReadInt32L();IMPORT_C TUint8 ReadUint8L();IMPORT_C TUint16 ReadUint16L();IMPORT_C TUint32 ReadUint32L();IMPORT_C TReal32 ReadReal32L() __SOFTFP;IMPORT_C TReal64 ReadReal64L() __SOFTFP;protected:inline void Attach(MStreamBuf *aSource);inline void Detach();private:MStreamBuf *iSrc;private:friend class RWriteStream;};template< class T >class MExternalizer;class TStreamRef;class RWriteStream{public:inline RWriteStream();inline RWriteStream(const MExternalizer< TStreamRef > &anExter);inline RWriteStream(MStreamBuf *aSink);inline MStreamBuf *Sink();IMPORT_C void Close();IMPORT_C void Release();IMPORT_C void CommitL();IMPORT_C void PushL();inline void Pop();IMPORT_C void WriteL(const TDesC8 &aDes);IMPORT_C void WriteL(const TDesC8 &aDes, TInt aLength);IMPORT_C void WriteL(const TUint8 *aPtr, TInt aLength);IMPORT_C void WriteL(RReadStream &aStream);IMPORT_C void WriteL(RReadStream &aStream, TInt aLength);IMPORT_C void WriteL(const TDesC16 &aDes);IMPORT_C void WriteL(const TDesC16 &aDes, TInt aLength);IMPORT_C void WriteL(const TUint16 *aPtr, TInt aLength);IMPORT_C void WriteInt8L(TInt aValue);IMPORT_C void WriteInt16L(TInt aValue);IMPORT_C void WriteInt32L(TInt32 aValue);IMPORT_C void WriteUint8L(TUint aValue);IMPORT_C void WriteUint16L(TUint aValue);IMPORT_C void WriteUint32L(TUint32 aValue);IMPORT_C void WriteReal32L(TReal aValue) __SOFTFP;IMPORT_C void WriteReal64L(TReal64 aValue) __SOFTFP;protected:inline void Attach(MStreamBuf *aSink);inline void Detach();private:IMPORT_C void WriteRefL(TStreamRef aRef);private:MStreamBuf *iSnk;const MExternalizer< TStreamRef > *iExterL;private:friend class TStreamRef;};template< class T >inline RWriteStream &operator<<(RWriteStream &aStream, const T &anObject);template< class T >inline RReadStream &operator> >RReadStream &aStream, T &anObject);class TCardinality{public:TCardinality(){}inline TCardinality(TInt aCount);inline operator TInt() const ;IMPORT_C void ExternalizeL(RWriteStream &aStream) const ;IMPORT_C void InternalizeL(RReadStream &aStream);private:TInt iCount;private:IMPORT_C static void __DbgChkRange(TInt aCount);};typedef void(*TExternalizeFunction)(const TAny *aPtr, RWriteStream &aStream);typedef void(*TInternalizeFunction)(TAny *aPtr, RReadStream &aStream);template< class T >class TExternalizer{public:inline void operator()(const T &anObject, RWriteStream &aStream) const ;inline static TExternalizeFunction Function();private:static void ExternalizeAsL(const TAny *aPtr, RWriteStream &aStream);};TEMPLATE_SPECIALIZATION class TExternalizer< TAny >{public:TExternalizer(){}inline TExternalizer(TExternalizeFunction aFunction);inline void operator()(const TAny *aPtr, RWriteStream &aStream) const ;inline TExternalizeFunction Function() const ;private:TExternalizeFunction iFunc;};template< class T >class TInternalizer{public:inline void operator()(T &anObject, RReadStream &aStream) const ;inline static TInternalizeFunction Function();private:static void InternalizeAsL(TAny *aPtr, RReadStream &aStream);};TEMPLATE_SPECIALIZATION class TInternalizer< TAny >{public:TInternalizer(){}inline TInternalizer(TInternalizeFunction aFunction);inline void operator()(TAny *aPtr, RReadStream &aStream) const ;inline TInternalizeFunction Function() const ;private:TInternalizeFunction iFunc;};template< class T >class MExternalizer{public:inline void operator()(const T &anObject, RWriteStream &aStream) const ;private:virtual void ExternalizeL(const T &anObject, RWriteStream &aStream) const =0;};template< class T >class MInternalizer{public:inline void operator()(T &anObject, RReadStream &aStream) const ;private:virtual void InternalizeL(T &anObject, RReadStream &aStream) const =0;};class TStreamRef{public:inline TStreamRef(const TAny *aPtr, TExternalizeFunction aFunction);inline const TAny *Ptr() const ;inline TExternalizeFunction Function() const ;inline void ExternalizeL(RWriteStream &aStream) const ;private:const TAny *iPtr;TExternalizeFunction iFunc;};class Externalize{public:class Member{};class Function{};};class Internalize{public:class Member{};class Function{};};#1"X:/epoc32/include/s32strm.inl"1inline RReadStream::RReadStream():iSrc(NULL){}inline RReadStream::RReadStream(MStreamBuf *aSource):iSrc(aSource){}inline MStreamBuf *RReadStream::Source(){return iSrc;}inline void RReadStream::Close(){Release();}inline void RReadStream::ReadL(RWriteStream &aStream){aStream.WriteL(*this);}inline void RReadStream::ReadL(RWriteStream &aStream, TInt aLength){aStream.WriteL(*this, aLength);}inline void RReadStream::Pop(){CleanupStack::Pop();}inline void RReadStream::Attach(MStreamBuf *aSource){iSrc=aSource;}inline void RReadStream::Detach(){iSrc=NULL;}inline RWriteStream::RWriteStream():iSnk(NULL), iExterL(NULL){}inline RWriteStream::RWriteStream(const MExternalizer< TStreamRef > &anExter):iSnk(NULL), iExterL(&anExter){}inline RWriteStream::RWriteStream(MStreamBuf *aSink):iSnk(aSink), iExterL(NULL){}inline MStreamBuf *RWriteStream::Sink(){return iSnk;}inline void RWriteStream::Pop(){CleanupStack::Pop();}inline void RWriteStream::Attach(MStreamBuf *aSink){iSnk=aSink;}inline void RWriteStream::Detach(){iSnk=NULL;}inline TCardinality::TCardinality(TInt aCount):iCount(aCount){}inline TCardinality::operator TInt() const {return iCount;}template< class T >inline void TExternalizer< T >::operator()(const T &anObject, RWriteStream &aStream) const {aStream<< anObject;}template< class T >inline TExternalizeFunction TExternalizer< T >::Function(){return &ExternalizeAsL;}template< class T >void TExternalizer< T >::ExternalizeAsL(const TAny *aPtr, RWriteStream &aStream){aStream<<*((const T *) aPtr);}inline TExternalizer< TAny >::TExternalizer(TExternalizeFunction aFunction):iFunc(aFunction){}inline void TExternalizer< TAny >::operator()(const TAny *aPtr, RWriteStream &aStream) const {(*iFunc)(aPtr, aStream);}inline TExternalizeFunction TExternalizer< TAny >::Function() const {return iFunc;}template< class T >inline void TInternalizer< T >::operator()(T &anObject, RReadStream &aStream) const {aStream > >anObject;}template< class T >inline TInternalizeFunction TInternalizer< T >::Function(){return &InternalizeAsL;}template< class T >void TInternalizer< T >::InternalizeAsL(TAny *aPtr, RReadStream &aStream){aStream > > *T *aPtr[static]