equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: |
|
15 * Provides the CAknFepUICtrlPinyinEEP definition |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 // --------------------------------------------------------- |
|
31 // C++ constructor. |
|
32 // --------------------------------------------------------- |
|
33 // |
|
34 inline CAknFepUICtrlEEPControl::TSegment::TSegment( TInt aBeg, TInt aEnd, |
|
35 TDspStyle aStyle ) |
|
36 { |
|
37 iBegin = aBeg; |
|
38 iEnd = aEnd; |
|
39 iStyle = aStyle; |
|
40 } |
|
41 |
|
42 // --------------------------------------------------------- |
|
43 // Compare the Index. |
|
44 // --------------------------------------------------------- |
|
45 // |
|
46 inline TInt CAknFepUICtrlEEPControl::TSegment::CompareByBegIndex( |
|
47 const TSegment& s1, const TSegment& s2 ) |
|
48 { |
|
49 if ( s1.iBegin == s2.iBegin ) |
|
50 return 0; |
|
51 else |
|
52 return s1.iBegin > s2.iBegin ? 1 : -1; |
|
53 } |
|
54 |