|
1 /** Copyright (c) 2010 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". |
|
7 * |
|
8 * Initial Contributors: |
|
9 * Nokia Corporation - initial contribution. |
|
10 * |
|
11 * Contributors: |
|
12 * |
|
13 * Description: |
|
14 * |
|
15 */ |
|
16 #include <QDebug> |
|
17 #include <smcmockclassincludes.h> |
|
18 #include "hbstringutil.h" |
|
19 |
|
20 // ============================ MEMBER FUNCTIONS =============================== |
|
21 |
|
22 // ----------------------------------------------------------------------------- |
|
23 // HbStringUtil::matchC |
|
24 // ----------------------------------------------------------------------------- |
|
25 // |
|
26 int HbStringUtil::matchC( |
|
27 const QString & strFrom, |
|
28 const QString & strToMatch, |
|
29 int maxLevel, |
|
30 Options flags, |
|
31 int wildChar, |
|
32 int wildSequenceChar, |
|
33 int escapeChar ) |
|
34 { |
|
35 /*SMC_MOCK_METHOD7( int, const QString &, strFrom, |
|
36 const QString &, strToMatch, |
|
37 int, maxLevel, |
|
38 Options, flags, |
|
39 int, wildChar, |
|
40 int, wildSequenceChar, |
|
41 int, escapeChar )*/ |
|
42 } |
|
43 |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 // HbStringUtil::compareC |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 int HbStringUtil::compareC( |
|
50 const QString & string1, |
|
51 const QString & string2, |
|
52 int maxLevel, |
|
53 Options flags ) |
|
54 { |
|
55 /*SMC_MOCK_METHOD4( int, const QString &, string1, |
|
56 const QString &, string2, |
|
57 int, maxLevel, |
|
58 Options, flags )*/ |
|
59 } |
|
60 |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // HbStringUtil::findC |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 int HbStringUtil::findC( |
|
67 const QString & strFrom, |
|
68 const QString & strToFind, |
|
69 int maxLevel ) |
|
70 { |
|
71 SMC_MOCK_METHOD3( int, const QString &, strFrom, |
|
72 const QString &, strToFind, |
|
73 int, maxLevel ) |
|
74 } |
|
75 |
|
76 |
|
77 // ----------------------------------------------------------------------------- |
|
78 // HbStringUtil::matchF |
|
79 // ----------------------------------------------------------------------------- |
|
80 // |
|
81 int HbStringUtil::matchF( |
|
82 const QString & strFrom, |
|
83 const QString & strToMatch ) |
|
84 { |
|
85 SMC_MOCK_METHOD2( int, const QString &, strFrom, |
|
86 const QString &, strToMatch ) |
|
87 } |
|
88 |
|
89 |
|
90 // ----------------------------------------------------------------------------- |
|
91 // HbStringUtil::compareF |
|
92 // ----------------------------------------------------------------------------- |
|
93 // |
|
94 int HbStringUtil::compareF( |
|
95 const QString & string1, |
|
96 const QString & string2 ) |
|
97 { |
|
98 SMC_MOCK_METHOD2( int, const QString &, string1, |
|
99 const QString &, string2 ) |
|
100 } |
|
101 |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // HbStringUtil::findF |
|
105 // ----------------------------------------------------------------------------- |
|
106 // |
|
107 int HbStringUtil::findF( |
|
108 const QString & strFrom, |
|
109 const QString & strToFind ) |
|
110 { |
|
111 SMC_MOCK_METHOD2( int, const QString &, strFrom, |
|
112 const QString &, strToFind ) |
|
113 } |
|
114 |
|
115 |
|
116 // ----------------------------------------------------------------------------- |
|
117 // HbStringUtil::convertDigits |
|
118 // ----------------------------------------------------------------------------- |
|
119 // |
|
120 QString HbStringUtil::convertDigits( |
|
121 const QString str ) |
|
122 { |
|
123 SMC_MOCK_METHOD1( QString, const QString, str ) |
|
124 } |
|
125 |
|
126 |
|
127 // ----------------------------------------------------------------------------- |
|
128 // HbStringUtil::convertDigitsTo |
|
129 // ----------------------------------------------------------------------------- |
|
130 // |
|
131 QString HbStringUtil::convertDigitsTo( |
|
132 const QString str, |
|
133 const DigitType digitType ) |
|
134 { |
|
135 SMC_MOCK_METHOD2( QString, const QString, str, |
|
136 const DigitType, digitType ) |
|
137 } |
|
138 |
|
139 |
|
140 // ----------------------------------------------------------------------------- |
|
141 // HbStringUtil::sort |
|
142 // ----------------------------------------------------------------------------- |
|
143 // |
|
144 void HbStringUtil::sort( |
|
145 QStringList & strList ) |
|
146 { |
|
147 SMC_MOCK_METHOD1( void, QStringList &, strList ) |
|
148 } |
|
149 |
|
150 |