Update contrib.
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>
25 class CISO885915ConverterImpl : public CCharacterSetConverterPluginInterface
29 virtual const TDesC8& ReplacementForUnconvertibleUnicodeCharacters();
31 virtual TInt ConvertFromUnicode(
32 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
33 const TDesC8& aReplacementForUnconvertibleUnicodeCharacters,
35 const TDesC16& aUnicode,
36 CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters);
38 virtual TInt ConvertToUnicode(
39 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
41 const TDesC8& aForeign,
43 TInt& aNumberOfUnconvertibleCharacters,
44 TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter);
46 virtual TBool IsInThisCharacterSetL(
48 TInt& aConfidenceLevel,
49 const TDesC8& aSample);
51 static CISO885915ConverterImpl* NewL();
52 virtual ~CISO885915ConverterImpl();
55 CISO885915ConverterImpl();
60 const TDesC8& CISO885915ConverterImpl::ReplacementForUnconvertibleUnicodeCharacters()
62 return ReplacementForUnconvertibleUnicodeCharacters_internal();
65 TInt CISO885915ConverterImpl::ConvertFromUnicode(
66 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
67 const TDesC8& aReplacementForUnconvertibleUnicodeCharacters,
69 const TDesC16& aUnicode,
70 CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters)
72 return CCnvCharacterSetConverter::DoConvertFromUnicode(conversionData, aDefaultEndiannessOfForeignCharacters, aReplacementForUnconvertibleUnicodeCharacters, aForeign, aUnicode, aIndicesOfUnconvertibleCharacters);
75 TInt CISO885915ConverterImpl::ConvertToUnicode(
76 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
78 const TDesC8& aForeign,
80 TInt& aNumberOfUnconvertibleCharacters,
81 TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter)
83 return CCnvCharacterSetConverter::DoConvertToUnicode(conversionData, aDefaultEndiannessOfForeignCharacters, aUnicode, aForeign, aNumberOfUnconvertibleCharacters, aIndexOfFirstByteOfFirstUnconvertibleCharacter);
86 TBool CISO885915ConverterImpl::IsInThisCharacterSetL(
88 TInt& aConfidenceLevel,
89 const TDesC8& /*aSample*/)
96 CISO885915ConverterImpl* CISO885915ConverterImpl::NewL()
98 CISO885915ConverterImpl* self = new(ELeave) CISO885915ConverterImpl();
102 CISO885915ConverterImpl::~CISO885915ConverterImpl()
106 CISO885915ConverterImpl::CISO885915ConverterImpl()
110 const TImplementationProxy ImplementationTable[] =
112 IMPLEMENTATION_PROXY_ENTRY(0x10008A2E, CISO885915ConverterImpl::NewL)
115 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
117 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
119 return ImplementationTable;