CXmlEncoding Class Reference
class CXmlEncoding : public CBase |
A misc. char-encoding related utilities.
Library: FeedsEngine.lib
Nested Classes and Structures
Constructor & Destructor Documentation
Member Functions Documentation
ConstructL()
void | ConstructL | ( | ) | [private] |
By default Symbian 2nd phase constructor is private.
ConvertToUcs2L(TUint, const TDesC8 &)
Converts the given native buffer into ucs2.
Parameters
TUint aEncoding | The encoding. |
const TDesC8 & aBuffer | The native buffer. |
ConvertToUtf8L(TUint, const TDesC8 &)
Converts the given native buffer into utf8.
Parameters
TUint aEncoding | The encoding. |
const TDesC8 & aBuffer | The native buffer. |
ConvertToUtf8L(HBufC16 &)
Converts the given ucs2 buffer into utf8.
Parameters
HBufC16 & aUsc2Buffer | The ucs2 buffer. |
DetermineCharEncodingFromBom(const TDesC8 &, TUint &)
TBool
| DetermineCharEncodingFromBom | ( | const TDesC8 & | aBuffer, |
| TUint & | aEncoding |
| ) | const |
Determine the char-encoding from the BOM.
Parameters
const TDesC8 & aBuffer | The native buffer. |
TUint & aEncoding | The resulting encoding. |
DetermineCharEncodingFromXmlProlog(const TDesC8 &, TUint &)
TBool
| DetermineCharEncodingFromXmlProlog | ( | const TDesC8 & | aBuffer, |
| TUint & | aEncoding |
| ) | const |
Determine the char-encoding from the char-encoding in the xml-prolog.
Parameters
const TDesC8 & aBuffer | The native buffer. |
TUint & aEncoding | The resulting encoding. |
DetermineCharEncodingL(const TDesC8 &, const TDesC &, TUint &)
IMPORT_C TBool | DetermineCharEncodingL | ( | const TDesC8 & | aBuffer, |
| const TDesC & | aCharSet, |
| TUint & | aEncoding |
| ) | const |
Determine the char-encoding.
Parameters
const TDesC8 & aBuffer | The native buffer. |
const TDesC & aCharSet | The char-set provided by the orignal source |
TUint & aEncoding | The resulting encoding. |
FindEncoding(const TDesC8 &, TInt &, TInt &, TInt &, TInt &)
Finds the location of the encoding attribute in the xml-prolog.
Parameters
const TDesC8 & aBuffer | The native buffer. |
TInt & aBegin | The beginning of the attribute. |
TInt & aEnd | The end of the attribute. |
TInt & aValueBegin | The beginning of the encoding's value. |
TInt & aValueEnd | The end of the encoding's value |
FindEncoding(const TDesC &, TInt &, TInt &, TInt &, TInt &)
Finds the location of the encoding attribute in the xml-prolog.
Parameters
const TDesC & aBuffer | The ucs2 buffer. |
TInt & aBegin | The beginning of the attribute. |
TInt & aEnd | The end of the attribute. |
TInt & aValueBegin | The beginning of the encoding's value. |
TInt & aValueEnd | The end of the encoding's value |
ResolveCharEncodingL(const TDesC8 &, TUint &)
Resolves the given char-encoding into its uid.
Parameters
const TDesC8 & aCharEncoding | The encoding. |
TUint & aUid | The resulting uid for the given encoding. |
StripCharEncoding(HBufC8 &)
void | StripCharEncoding | ( | HBufC8 & | aUtf8Buffer | ) | const |
Erase the char-encoding attribute (if any) from the xml-prolog.
Parameters
HBufC8 & aUtf8Buffer | The utf8 buffer. |
StripCharEncoding(HBufC16 &)
void | StripCharEncoding | ( | HBufC16 & | aUcs2Buffer | ) | const |
Erase the char-encoding attribute (if any) from the xml-prolog.
Member Data Documentation
RArray< SupportedEncodings > iCharEncodings
CCnvCharacterSetConverter * iConverter
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.