27 #include <collate.h> |
27 #include <collate.h> |
28 #include <PtiIndicDefs.h> |
28 #include <PtiIndicDefs.h> |
29 #include "FindUtilKorean.h" |
29 #include "FindUtilKorean.h" |
30 #include <avkon.rsg> |
30 #include <avkon.rsg> |
31 #include <StringLoader.h> |
31 #include <StringLoader.h> |
|
32 #include <featmgr.h> |
|
33 #include <bldvariant.hrh> |
|
34 |
32 const TInt KLitTab('\t'); |
35 const TInt KLitTab('\t'); |
33 const TInt KLitSpace(' '); |
36 const TInt KLitSpace(' '); |
34 const TInt KLitHyphen('-'); |
37 const TInt KLitHyphen('-'); |
35 const TInt KLitLineFeed(8233); |
38 const TInt KLitLineFeed(8233); |
36 const TInt KLitStar('*'); |
39 const TInt KLitStar('*'); |
340 // (other items were commented in a header). |
343 // (other items were commented in a header). |
341 // ----------------------------------------------------------------------------- |
344 // ----------------------------------------------------------------------------- |
342 // |
345 // |
343 TBool CFindUtilWestern::MatchRefineL( const TDesC& aItemString, const TDesC& aSearchText ) |
346 TBool CFindUtilWestern::MatchRefineL( const TDesC& aItemString, const TDesC& aSearchText ) |
344 { |
347 { |
345 if ( iFindUtilKorean->IsKoreanLanguage( aItemString ) || iFindUtilKorean->IsKoreanLanguage( aSearchText ) ) |
348 if ( FeatureManager::FeatureSupported( KFeatureIdKorean ) || |
|
349 iFindUtilKorean->IsKoreanLanguage( aItemString ) || |
|
350 iFindUtilKorean->IsKoreanLanguage( aSearchText ) ) |
346 { |
351 { |
347 return iFindUtilKorean->MatchRefineL( aItemString, aSearchText ); |
352 return iFindUtilKorean->MatchRefineL( aItemString, aSearchText ); |
348 } |
353 } |
349 else |
354 else |
350 { |
355 { |
351 if ( aItemString.Length() == 0 ) |
356 if ( aItemString.Length() == 0 ) |
352 { |
357 { |
353 return EFalse; |
358 return EFalse; |
354 } |
359 } |
355 |
360 |
356 if ( aSearchText.Length() == 0 ) |
361 if ( aSearchText.Length() == 0 ) |
357 { |
362 { |
358 return ETrue; |
363 return ETrue; |
359 } |
364 } |
360 return IsFindMatch( aItemString, aSearchText, iInputLanguage ); |
365 return IsFindMatch( aItemString, aSearchText, iInputLanguage ); |
361 } |
366 } |
362 } |
367 } |
363 |
368 |
364 // ----------------------------------------------------------------------------- |
369 // ----------------------------------------------------------------------------- |
365 // CFindUtilWestern::IsWordValidForMatching |
370 // CFindUtilWestern::IsWordValidForMatching |