equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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: This file contains the header file of the class TPEMatcher. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TPEMATCHER_H_ |
|
19 #define TPEMATCHER_H_ |
|
20 |
|
21 #include <e32def.h> |
|
22 #include <e32cmn.h> |
|
23 |
|
24 class TPEMatcher |
|
25 { |
|
26 public: |
|
27 |
|
28 /** |
|
29 * C++ default constructor. |
|
30 */ |
|
31 TPEMatcher(); |
|
32 |
|
33 /** |
|
34 * Destructor. |
|
35 */ |
|
36 ~TPEMatcher(); |
|
37 |
|
38 /** |
|
39 * Finds if the two numbers match. Numbers are matched from |
|
40 * right to left. If either or both of the numbers passed as a parameter |
|
41 * are shorter than aCount the shortes number count is used in |
|
42 * matching. |
|
43 * |
|
44 * @since S60 v5.2 |
|
45 * @param aNumber1 phone number. |
|
46 * @param aNumber2 phone number. |
|
47 * @param aCount Digit count used to match numbers. |
|
48 * @return Found match. |
|
49 */ |
|
50 TBool numbersMatch( const TDesC& aNumber1, const TDesC& aNumber2, TInt aCount ); |
|
51 |
|
52 }; |
|
53 |
|
54 |
|
55 #endif /* TPEMATCHER_H_ */ |