diff -r b9ad20498fb4 -r 8b9155204a54 charconvfw/Charconv/ongoing/Include/JISBASE.H --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/charconvfw/Charconv/ongoing/Include/JISBASE.H Fri Jun 04 10:37:54 2010 +0100 @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2000 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + + + + + + +#ifndef __JISBASE_H__ +#define __JISBASE_H__ + +#if !defined(__E32STD_H__) +#include +#endif + +#if !defined(__CHARCONV_H__) +#include +#endif + +class CnvJisBase +/** +@internalComponent +*/ + { +public: + IMPORT_C static void IsCharacterJISBased(TInt& aConfidenceLevel, const TDesC8& aSample); + IMPORT_C static TInt ConvertToUnicode(CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters, TDes16& aUnicode, const TDesC8& aForeign, TInt& aState, TInt& aNumberOfUnconvertibleCharacters, TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter); + IMPORT_C static const SCnvConversionData& HalfWidthKatakana7ConversionData(); +private: + static TInt ChangeToNonStandardStateJis7(TInt aState); + static TInt ChangeToNonStandardStateJis8(TInt aState); + static TInt ChangeToStandardState(TInt aState); + static TInt AppendConvertToUnicodeFromModalForeign(CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters, TDes16& aUnicode, const TDesC8& aModalForeign, TInt& aState, TInt& aNumberOfUnconvertibleCharacters, TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter, const TArray& aArrayOfStates, TUint& aOutputConversionFlags, TUint aInputConversionFlags); + static TInt AppendConvertToUnicodeFromJis7(CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters, TDes16& aUnicode, const TDesC8& aJis7, TInt&, TInt& aNumberOfUnconvertibleCharacters, TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter, const TArray&, TUint& aOutputConversionFlags, TUint aInputConversionFlags); + static TInt AppendConvertToUnicodeFromJis8(CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters, TDes16& aUnicode, const TDesC8& aJis8, TInt&, TInt& aNumberOfUnconvertibleCharacters, TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter, const TArray&, TUint& aOutputConversionFlags, TUint aInputConversionFlags); + }; + +#endif +