44 */ |
44 */ |
45 static void FormCompleteSearchResultsL(RPointerArray<CPSDATA_R_PTR_ARRAY>& aSearchResultsArr, |
45 static void FormCompleteSearchResultsL(RPointerArray<CPSDATA_R_PTR_ARRAY>& aSearchResultsArr, |
46 RPointerArray<CPsData>& SearchResults); |
46 RPointerArray<CPsData>& SearchResults); |
47 |
47 |
48 /** |
48 /** |
|
49 * Compare by length. |
|
50 */ |
|
51 static TBool CompareByLength(const HBufC& aFirst, const HBufC& aSecond); |
|
52 |
|
53 /** |
|
54 * Compare strings exactly case sensitively. |
|
55 */ |
|
56 static TBool CompareExact(const TDesC& aFirst, const TDesC& aSecond); |
|
57 |
|
58 /** |
|
59 * Compare strings with collate rules depending on locale. |
|
60 */ |
|
61 static TBool CompareCollate(const TDesC& aFirst, const TDesC& aSecond); |
|
62 |
|
63 /** |
|
64 * Compare for keys and strings: |
|
65 * - Case sensitive compare for keys, |
|
66 * - Case insensitive and language dependent compare for Contact Data and Query. |
|
67 */ |
|
68 static TBool MyCompareKeyAndString(const TDesC& aContactString, |
|
69 const TDesC& aQueryAsString, |
|
70 CPsQuery& aPsQuery); |
|
71 |
|
72 /** |
49 * Case Sensitive compare for keys |
73 * Case Sensitive compare for keys |
50 */ |
74 */ |
51 static TBool MyCompareK(const TDesC& aLeft, const TDesC& aRight, CPsQuery& aPsQuery); |
75 static TBool MyCompareK(const TDesC& aLeft, const TDesC& aRight, CPsQuery& aPsQuery); |
52 |
76 |
53 /** |
77 /** |
54 * Customized CompareC |
78 * Customized CompareC |
55 */ |
79 */ |
56 static TInt MyCompareC(const TDesC& aLeft, const TDesC& aRight); |
80 static TInt MyCompareC(const TDesC& aLeft, const TDesC& aRight); |
57 |
81 |
58 |
82 |
59 /** |
83 /** |
60 * TLinearOrder rule for comparison of data objects |
84 * TLinearOrder rule for comparison of data objects |
61 */ |
85 */ |
62 static TInt CompareDataBySortOrderL(const CPsData& aObject1, |
86 static TInt CompareDataBySortOrderL(const CPsData& aObject1, |
63 const CPsData& aObject2); |
87 const CPsData& aObject2); |
64 |
88 |
65 /** |
89 /** |
66 * Trim off all white spaces and special chars |
90 * Trim off all white spaces and special chars |
67 */ |
91 */ |
68 static void MyTrim(TDes& aString); |
92 static void MyTrim(TDes& aString); |
69 |
93 |
70 |
94 |
71 /** |
95 /** |
72 * Check if the input URI is of contact search in a group template form |
96 * Check if the input URI is of contact search in a group template form |
73 */ |
97 */ |
74 static TBool IsGroupUri(TDesC& aURI); |
98 static TBool IsGroupUri(TDesC& aURI); |
75 |
99 |
76 }; |
100 }; |
77 #endif // C_PCS_ALGORITHM_1_UTILS |
101 #endif // C_PCS_ALGORITHM_1_UTILS |
78 |
102 |