equal
deleted
inserted
replaced
79 |
79 |
80 \value IgnoreCombining Ignore check for adjacent combining characters. |
80 \value IgnoreCombining Ignore check for adjacent combining characters. |
81 |
81 |
82 \sa compareC, matchC |
82 \sa compareC, matchC |
83 */ |
83 */ |
84 |
|
85 /*! |
|
86 \deprecated HbStringUtil::collationMethods() |
|
87 is deprecated. |
|
88 |
|
89 Returns the number of collation methods supported. |
|
90 On Symbian platform uses Mem::CollationMethods, |
|
91 elsewhere return 0. |
|
92 |
|
93 \return The number of collation methods available. |
|
94 */ |
|
95 int HbStringUtil::collationMethods() |
|
96 { |
|
97 qWarning("HbStringUtil::collationMethods is DEPRECATED. Do not use this function."); |
|
98 #if defined( Q_OS_SYMBIAN ) |
|
99 return Mem::CollationMethods(); |
|
100 #else |
|
101 return 0; |
|
102 #endif |
|
103 } |
|
104 |
84 |
105 /*! |
85 /*! |
106 Searches source string's collated data for a |
86 Searches source string's collated data for a |
107 match with collated data supplied in pattern string |
87 match with collated data supplied in pattern string |
108 |
88 |
319 TPtrC s2Ptr( string2.utf16() ); |
299 TPtrC s2Ptr( string2.utf16() ); |
320 return s1Ptr.CompareF( s2Ptr ); |
300 return s1Ptr.CompareF( s2Ptr ); |
321 #else |
301 #else |
322 // folding is just case insensitive |
302 // folding is just case insensitive |
323 return string1.compare( string2, Qt::CaseInsensitive ); |
303 return string1.compare( string2, Qt::CaseInsensitive ); |
324 #endif |
|
325 } |
|
326 |
|
327 /*! |
|
328 \deprecated HbStringUtil::collate( const uint chr ) |
|
329 is deprecated. |
|
330 |
|
331 Converts the character to its collated form. |
|
332 Collating is the process of removing differences between characters |
|
333 that are considered unimportant for the purposes of ordering characters. |
|
334 The result of the conversion depends on the locale |
|
335 |
|
336 \param chr The charcter to be collated. |
|
337 \return The converted character. |
|
338 */ |
|
339 uint HbStringUtil::collate( const uint chr ) |
|
340 { |
|
341 qWarning("HbStringUtil::collate is DEPRECATED. Do not use this function."); |
|
342 #if defined( Q_OS_SYMBIAN ) |
|
343 return User::Collate( chr ); |
|
344 #else |
|
345 return chr; |
|
346 #endif |
304 #endif |
347 } |
305 } |
348 |
306 |
349 /*! |
307 /*! |
350 Returns the starting digit range of the native digit |
308 Returns the starting digit range of the native digit |