fep/aknfep/inc/AknFepZhuyinAnalyserDb.inl
branchRCL_3
changeset 44 ecbabf52600f
parent 0 eb1f2e154e89
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fep/aknfep/inc/AknFepZhuyinAnalyserDb.inl	Wed Sep 01 12:23:33 2010 +0100
@@ -0,0 +1,77 @@
+/*
+* 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;
+    }
+
+ 
+