First public contribution.
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32\include\k32keys.inl
16 // WARNING: This file contains some APIs which are internal and are subject
17 // to change without noticed. Such APIs should therefore not be used
18 // outside the Kernel and Hardware Services package.
25 inline TBool MatchesMaskedValue(TInt aModifiers,const TMaskedModifiers &aMaskedModifiers)
27 return (TBool)((aModifiers&aMaskedModifiers.iMask)==aMaskedModifiers.iValue);
34 inline void MergeModifiers(TInt &aModifiers,const TMaskedModifiers &aMaskedModifiers)
35 // Set the masked bits only of the parameter
37 aModifiers&=~aMaskedModifiers.iMask;
38 aModifiers|=(aMaskedModifiers.iMask&aMaskedModifiers.iValue);
41 inline void TCtrlDigits::SetRadix(TRadix aRadix)
44 inline void TCtrlDigits::SetMaxCount(TInt aMaxCount)
45 {iMaxCount=Min(aMaxCount, iMaximumCtrlDigitsMaxCount);}
47 inline TRadix TCtrlDigits::GetRadix() const
50 inline TBool TCtrlDigits::WithinLimits() const
51 {return (TBool)(iDigits<=0xffffL);}
53 inline TUint TCtrlDigits::GetDigits() const
56 inline TBool TCtrlDigits::Error() const
59 inline TUint TConvTable::FirstScanCode() const
60 {return iFirstScanCode;}
62 inline TUint TConvTable::LastScanCode() const
63 {return iLastScanCode;}
65 inline TCharExtended::TCharExtended():
69 inline TCharExtended::TCharExtended(TUint aChar):