userdict/inc/UdictElement.inl
branchRCL_3
changeset 12 e9f0e1110077
parent 9 38691ba2fda5
child 13 261ff9819be3
equal deleted inserted replaced
9:38691ba2fda5 12:e9f0e1110077
     1 /*
       
     2 * Copyright (c) 2002-2004 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:     Inline functions of Japanese user dictionary's element class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 // ============================ MEMBER FUNCTIONS ===============================
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // TUDictElement::ListItemText
       
    27 // Returns the descriptor with a ListBox's separator character.
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 inline const TDesC&  TUDictElement::ListItemText() const 
       
    31     {
       
    32     return iWord;
       
    33     }
       
    34 
       
    35 // -----------------------------------------------------------------------------
       
    36 // TUDictElement::SetReading
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 inline void TUDictElement::SetReading(TDesC& aReading) 
       
    40     {
       
    41     iReading = aReading;
       
    42     }
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 // TUDictElement::operator!=
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 inline TInt TUDictElement::operator!=(const TUDictElement& aElement) const
       
    49     {
       
    50     return !((Word() == aElement.Word()) && (Reading() == aElement.Reading()));
       
    51     }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // TUDictElement::IsEmpty
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 inline TInt TUDictElement::IsEmpty() const
       
    58     {    
       
    59     return (Word().Length() == 0 || Reading().Length() == 0);
       
    60     }
       
    61 
       
    62 //  End of File