os/textandloc/charconvfw/charconvplugins/test/rtest/tsrc/plugins/tis1620b.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 * Implement the dummy charconv plugin CTIS1620bImplementation
    16 *
    17 */
    18 
    19 
    20 #include <convgeneratedcpp.h>
    21 #include <ecom/implementationproxy.h>
    22 #include "shiftjis.h"
    23 #include "tis1620.h"
    24 
    25 
    26 const TDesC8& CTIS1620bImplementation::ReplacementForUnconvertibleUnicodeCharacters()
    27 {
    28 	return CnvShiftJis::ReplacementForUnconvertibleUnicodeCharacters();
    29 }
    30 
    31 TInt CTIS1620bImplementation::ConvertFromUnicode(CCnvCharacterSetConverter::TEndianness /*aDefaultEndiannessOfForeignCharacters*/,
    32  const TDesC8& /*aReplacementForUnconvertibleUnicodeCharacters*/, TDes8& /*aForeign*/, const TDesC16& /*aUnicode*/, 
    33 CCnvCharacterSetConverter::TArrayOfAscendingIndices& /*aIndicesOfUnconvertibleCharacters*/)
    34 {
    35 	return 0;
    36 }
    37 
    38 TInt CTIS1620bImplementation::ConvertToUnicode(CCnvCharacterSetConverter::TEndianness /*aDefaultEndiannessOfForeignCharacters*/,
    39  TDes16& /*aUnicode*/, const TDesC8& /*aForeign*/, TInt&, TInt& /*aNumberOfUnconvertibleCharacters*/, TInt& /*aIndexOfFirstByteOfFirstUnconvertibleCharacter*/)
    40 {
    41 	return 0;
    42 }
    43 
    44 TBool CTIS1620bImplementation::IsInThisCharacterSetL(TBool& /*aSetToTrue*/, TInt& /*aConfidenceLevel*/, const TDesC8&)
    45 {
    46 	return EFalse;
    47 }
    48 
    49 CTIS1620bImplementation* CTIS1620bImplementation::NewL()
    50 {
    51 CTIS1620bImplementation* self = new (ELeave) CTIS1620bImplementation;
    52 return self;
    53 }
    54 
    55 
    56 CTIS1620bImplementation::CTIS1620bImplementation()
    57 {
    58 //default constructor.. do nothing
    59 }
    60 
    61 CTIS1620bImplementation::~ CTIS1620bImplementation()
    62 {
    63 //default destructor .. do nothing
    64 }
    65 
    66 // The ImplementationTable is in TIS1620a.cpp
    67