|
1 /* |
|
2 * Copyright (c) 2009 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 * |
|
16 */ |
|
17 #ifndef TPENINPUTLAYOUTMICFNOMATCHESINLINE_H |
|
18 #define TPENINPUTLAYOUTMICFNOMATCHESINLINE_H |
|
19 |
|
20 #include <e32base.h> |
|
21 |
|
22 class TFepLayoutMIcfNoMatchesInline |
|
23 { |
|
24 public: |
|
25 |
|
26 /** |
|
27 * This returns a text sensitive no matches indication |
|
28 * |
|
29 * @returns a TPtr to the No Matches indication text to use for this buffer |
|
30 */ |
|
31 static TPtrC TextForUnknownPredictiveTextIndication(const TDesC& aTextSample); |
|
32 |
|
33 private: |
|
34 /** |
|
35 * Returns a value that is the base value of a unicode code page. The significant content of |
|
36 * the buffer ( indices [1,aBufferLength]) and is examined from low to high index. |
|
37 * Code page is the here defined as the unicode value excluding its lowest byte - Masked |
|
38 * by 0xFF00 |
|
39 * |
|
40 * If a character with non-zero code page is found, that value is returned. Otherwise, 0x0000 |
|
41 * is returned |
|
42 * |
|
43 * To totally dependable, this routine depends upon the chunk being of uniform codepage, |
|
44 * or mixed codepage 0 + one other codepage. For no-matches indicator text, this is the case |
|
45 * |
|
46 * @param aTextSample buffer containing text, |
|
47 * @returns Codepage of first |
|
48 */ |
|
49 static TUint CodeBaseOfText(const TDesC& aTextSample); |
|
50 }; |
|
51 |
|
52 #endif // TPENINPUTLAYOUTMICFNOMATCHESINLINE_H |