diff -r 0f326f2e628e -r a7632c26d895 fep/aknfep/inc/AknFepZhuyinAnalyserDb.inl --- a/fep/aknfep/inc/AknFepZhuyinAnalyserDb.inl Fri Jul 23 16:49:01 2010 +0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ -/* -* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "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: vkb control pool inline function -* -*/ - - - - - - - - - - - - -inline TInt CZhuyinAnalyserDbFeed::GetSpellCount() const - { - return iSpellLenBuf.Length(); - } - -inline const TPtrC CZhuyinAnalyserDbFeed::GetSpellByIndex( TInt aIndex ) const - { - int offset = 0; - for ( TInt i = 0; i < aIndex; ++i ) - { - offset += iSpellLenBuf[i]; - } - return iSpellBuf.Mid( offset, iSpellLenBuf[aIndex] ); - } - -inline TInt CZhuyinAnalyserDbFeed::GetSpellElementCount() const - { - return iSpellElemLen; - } - -inline TUint16 CZhuyinAnalyserDbFeed::GetSpellElementByIndex( TInt aIndex ) const - { - return iSpellElemBase + aIndex; - } - -inline TBool CZhuyinAnalyserDbFeed::IsNormalElement( TUint16 aCode ) const - { - return aCode >= iSpellElemBase && aCode < iSpellElemBase + iSpellElemLen; - } - -inline TSpellType CZhuyinAnalyserDbFeed::GetSpellElementType( TUint16 aCode ) const - { - return ( TSpellType )iSpellTypeBuf[ aCode - iSpellElemBase ]; - } - -inline TBool CZhuyinAnalyserDbFeed::IsFirstElement( TUint16 aCode ) const - { - for ( TInt i = 0; i < iNoFirstElements.Length(); i++ ) - { - if ( iNoFirstElements[i] == aCode ) - { - return EFalse; - } - } - return ETrue; - } - - -