First public contribution.
2 * Copyright (c) 1997-2009 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.
21 #include <convgeneratedcpp.h>
22 #include <ecom/implementationproxy.h>
23 #include <charactersetconverter.h>
26 class CGB12345ConverterImpl : public CCharacterSetConverterPluginInterface
30 virtual const TDesC8& ReplacementForUnconvertibleUnicodeCharacters();
32 virtual TInt ConvertFromUnicode(
33 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
34 const TDesC8& aReplacementForUnconvertibleUnicodeCharacters,
36 const TDesC16& aUnicode,
37 CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters);
39 virtual TInt ConvertToUnicode(
40 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
42 const TDesC8& aForeign,
44 TInt& aNumberOfUnconvertibleCharacters,
45 TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter);
47 virtual TBool IsInThisCharacterSetL(
49 TInt& aConfidenceLevel,
50 const TDesC8& aSample);
52 static CGB12345ConverterImpl* NewL();
53 virtual ~CGB12345ConverterImpl();
56 CGB12345ConverterImpl();
62 const TDesC8& CGB12345ConverterImpl::ReplacementForUnconvertibleUnicodeCharacters()
64 return ReplacementForUnconvertibleUnicodeCharacters_internal();
67 TInt CGB12345ConverterImpl::ConvertFromUnicode(
68 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
69 const TDesC8& aReplacementForUnconvertibleUnicodeCharacters,
71 const TDesC16& aUnicode,
72 CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters)
74 return CCnvCharacterSetConverter::DoConvertFromUnicode(conversionData, aDefaultEndiannessOfForeignCharacters, aReplacementForUnconvertibleUnicodeCharacters, aForeign, aUnicode, aIndicesOfUnconvertibleCharacters);
77 TInt CGB12345ConverterImpl::ConvertToUnicode(
78 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
80 const TDesC8& aForeign,
82 TInt& aNumberOfUnconvertibleCharacters,
83 TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter)
85 return CCnvCharacterSetConverter::DoConvertToUnicode(conversionData, aDefaultEndiannessOfForeignCharacters, aUnicode, aForeign, aNumberOfUnconvertibleCharacters, aIndexOfFirstByteOfFirstUnconvertibleCharacter);
88 TBool CGB12345ConverterImpl::IsInThisCharacterSetL(
90 TInt& aConfidenceLevel,
91 const TDesC8& /*aSample*/)
98 CGB12345ConverterImpl* CGB12345ConverterImpl::NewL()
100 CGB12345ConverterImpl* self = new(ELeave) CGB12345ConverterImpl();
104 CGB12345ConverterImpl::~CGB12345ConverterImpl()
108 CGB12345ConverterImpl::CGB12345ConverterImpl()
112 const TImplementationProxy ImplementationTable[] =
114 IMPLEMENTATION_PROXY_ENTRY(0x1000401A,CGB12345ConverterImpl::NewL)
117 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
119 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
121 return ImplementationTable;