First public contribution.
2 * Copyright (c) 1253 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
25 #include <convgeneratedcpp.h>
26 #include <ecom/implementationproxy.h>
27 #include <charactersetconverter.h>
28 // New Interface class
29 class CWin1253Implementation : public CCharacterSetConverterPluginInterface
32 virtual const TDesC8& ReplacementForUnconvertibleUnicodeCharacters();
34 virtual TInt ConvertFromUnicode(
35 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
36 const TDesC8& aReplacementForUnconvertibleUnicodeCharacters,
38 const TDesC16& aUnicode,
39 CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters );
41 virtual TInt ConvertToUnicode(
42 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
44 const TDesC8& aForeign,
46 TInt& aNumberOfUnconvertibleCharacters,
47 TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter );
49 virtual TBool IsInThisCharacterSetL(
51 TInt& aConfidenceLevel,
54 static CWin1253Implementation* NewL();
56 virtual ~CWin1253Implementation();
58 CWin1253Implementation();
61 const TDesC8& CWin1253Implementation::ReplacementForUnconvertibleUnicodeCharacters()
63 return ReplacementForUnconvertibleUnicodeCharacters_internal();
66 TInt CWin1253Implementation::ConvertFromUnicode(
67 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
68 const TDesC8& aReplacementForUnconvertibleUnicodeCharacters,
70 const TDesC16& aUnicode,
71 CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters )
73 return CCnvCharacterSetConverter::DoConvertFromUnicode(
75 aDefaultEndiannessOfForeignCharacters,
76 aReplacementForUnconvertibleUnicodeCharacters,
79 aIndicesOfUnconvertibleCharacters );
82 TInt CWin1253Implementation::ConvertToUnicode(
83 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
85 const TDesC8& aForeign,
86 TInt&, TInt& aNumberOfUnconvertibleCharacters,
87 TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter )
89 return CCnvCharacterSetConverter::DoConvertToUnicode(
91 aDefaultEndiannessOfForeignCharacters,
94 aNumberOfUnconvertibleCharacters,
95 aIndexOfFirstByteOfFirstUnconvertibleCharacter );
98 TBool CWin1253Implementation::IsInThisCharacterSetL(
100 TInt& aConfidenceLevel,
108 CWin1253Implementation* CWin1253Implementation::NewL()
110 CWin1253Implementation* self = new(ELeave) CWin1253Implementation;
114 CWin1253Implementation::CWin1253Implementation()
116 //default constructor.. do nothing
119 CWin1253Implementation::~CWin1253Implementation()
121 //default destructor .. do nothing
124 // ECOM CREATION FUNCTION
125 const TImplementationProxy ImplementationTable[] =
127 // Note: This is the same UID as defined in old mmp-file
128 // Used also in 12221212.rss ( implementation_uid )
129 IMPLEMENTATION_PROXY_ENTRY( 0x100059D8, CWin1253Implementation::NewL )
132 EXPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount )
134 aTableCount = sizeof( ImplementationTable ) / sizeof(TImplementationProxy);
135 return ImplementationTable;