charconvfw/Charconv/ongoing/Include/SHIFTJIS2.H
changeset 32 8b9155204a54
equal deleted inserted replaced
31:b9ad20498fb4 32:8b9155204a54
       
     1 /*
       
     2 * Copyright (c) 2000 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 the License "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 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #if !defined(__SHIFTJIS_H__)
       
    26 #define __SHIFTJIS_H__
       
    27 
       
    28 #if !defined(__E32STD_H__)
       
    29 #include <E32STD.H>
       
    30 #endif
       
    31 
       
    32 #if !defined(__CHARCONV_H__)
       
    33 #include <CHARCONV.H>
       
    34 #endif
       
    35 
       
    36 #if !defined(__CONVUTILS_H__)
       
    37 #include <CONVUTILS.H>
       
    38 #endif
       
    39 
       
    40 class CnvShiftJis 
       
    41 /**
       
    42 only to be used by CHARCONV plug-in DLLs and by locale-DLLs (Locl::FatUtilityFunctions)
       
    43 @internalComponent
       
    44 */
       
    45     {
       
    46 public:
       
    47     IMPORT_C static const TDesC8& ReplacementForUnconvertibleUnicodeCharacters();
       
    48     IMPORT_C static TInt ConvertFromUnicode(CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters, 
       
    49                                             const TDesC8& aReplacementForUnconvertibleUnicodeCharacters, 
       
    50                                             TDes8& aForeign, const TDesC16& aUnicode, 
       
    51                                             CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters);
       
    52                                             
       
    53     IMPORT_C static TInt ConvertFromUnicode(CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters, 
       
    54                                             const TDesC8& aReplacementForUnconvertibleUnicodeCharacters, 
       
    55                                             TDes8& aForeign, const TDesC16& aUnicode, 
       
    56                                             CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters,
       
    57                                             const TArray<CnvUtilities::SCharacterSet>& aArrayOfAdditionalCharacterSets);
       
    58                                             
       
    59     IMPORT_C static TInt ConvertToUnicode(CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters, 
       
    60                                           TDes16& aUnicode, const TDesC8& aForeign, 
       
    61                                           TInt& aNumberOfUnconvertibleCharacters, 
       
    62                                           TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter);
       
    63                                           
       
    64     IMPORT_C static TInt ConvertToUnicode(CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters, 
       
    65                                           TDes16& aUnicode, const TDesC8& aForeign, 
       
    66                                           TInt& aNumberOfUnconvertibleCharacters, 
       
    67                                           TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter, 
       
    68                                           const TArray<CnvUtilities::SMethod>& aArrayOfAdditionalMethods);
       
    69     
       
    70 private:
       
    71     static TInt DoConvertToUnicode(TDes16& aUnicode, const TDesC8& aForeign, 
       
    72                                    TInt& aNumberOfUnconvertibleCharacters, 
       
    73                                    TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter) ;
       
    74 
       
    75     static TInt DoConvertFromUnicode(const TDesC8& aReplacementForUnconvertibleUnicodeCharacters, 
       
    76                                     TDes8& aForeign, const TDesC16& aUnicode, CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters) ;
       
    77     };
       
    78 
       
    79 #endif
       
    80