Update contrib.
2 * Copyright (c) 2006-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.
15 * Two dummy character set converters
25 #include <charactersetconverter.h>
27 const TInt32 KTIS1620aImplUid = 0xA0001344;
28 const TInt32 KTIS1620bImplUid = 0xA0001345;
30 // A dummy character set converter plugin for testing having
31 // multiple implementations in a single DLL.
32 class CTIS1620aImplementation : public CCharacterSetConverterPluginInterface
35 virtual const TDesC8& ReplacementForUnconvertibleUnicodeCharacters();
37 virtual TInt ConvertFromUnicode(
38 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
39 const TDesC8& aReplacementForUnconvertibleUnicodeCharacters,
41 const TDesC16& aUnicode,
42 CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters);
44 virtual TInt ConvertToUnicode(
45 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
47 const TDesC8& aForeign,
49 TInt& aNumberOfUnconvertibleCharacters,
50 TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter);
52 virtual TBool IsInThisCharacterSetL(
54 TInt& aConfidenceLevel,
55 const TDesC8& aSample);
57 static CTIS1620aImplementation* NewL();
58 virtual ~CTIS1620aImplementation();
61 CTIS1620aImplementation();
65 // Another dummy character set converter plugin for testing having
66 // multiple implementations in one DLL.
67 class CTIS1620bImplementation : public CCharacterSetConverterPluginInterface
70 virtual const TDesC8& ReplacementForUnconvertibleUnicodeCharacters();
72 virtual TInt ConvertFromUnicode(
73 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
74 const TDesC8& aReplacementForUnconvertibleUnicodeCharacters,
76 const TDesC16& aUnicode,
77 CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters);
79 virtual TInt ConvertToUnicode(
80 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
82 const TDesC8& aForeign,
84 TInt& aNumberOfUnconvertibleCharacters,
85 TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter);
87 virtual TBool IsInThisCharacterSetL(
89 TInt& aConfidenceLevel,
90 const TDesC8& aSample);
92 static CTIS1620bImplementation* NewL();
93 virtual ~CTIS1620bImplementation();
96 CTIS1620bImplementation();