equal
deleted
inserted
replaced
284 CCenRepNotifyHandler::EIntKey, |
284 CCenRepNotifyHandler::EIntKey, |
285 KAknFepInputTxtLang ); |
285 KAknFepInputTxtLang ); |
286 iNotifyHandler->StartListeningL(); |
286 iNotifyHandler->StartListeningL(); |
287 } |
287 } |
288 //TSW: LYEE-7Q2GRV |
288 //TSW: LYEE-7Q2GRV |
289 if(!iFindUtilKorean) |
289 FeatureManager::InitializeLibL(); |
290 { |
290 if( !iFindUtilKorean && FeatureManager::FeatureSupported( KFeatureIdKorean ) ) |
|
291 { |
291 iFindUtilKorean = CFindUtilKorean::NewL(); |
292 iFindUtilKorean = CFindUtilKorean::NewL(); |
292 } |
293 } |
|
294 FeatureManager::UnInitializeLib(); |
293 } |
295 } |
294 |
296 |
295 void CFindUtilWestern::HandleNotifyInt( TUint32 aId, TInt aNewValue ) |
297 void CFindUtilWestern::HandleNotifyInt( TUint32 aId, TInt aNewValue ) |
296 { |
298 { |
297 if(aId == KAknFepInputTxtLang) |
299 if(aId == KAknFepInputTxtLang) |
304 // ----------------------------------------------------------------------------- |
306 // ----------------------------------------------------------------------------- |
305 // |
307 // |
306 |
308 |
307 TBool CFindUtilWestern::Match(const TDesC& aContactsField, const TDesC& aWord) |
309 TBool CFindUtilWestern::Match(const TDesC& aContactsField, const TDesC& aWord) |
308 { |
310 { |
309 if ( iFindUtilKorean->IsKoreanLanguage( aContactsField ) || iFindUtilKorean->IsKoreanLanguage( aWord ) ) |
311 if ( iFindUtilKorean && ( iFindUtilKorean->IsKoreanLanguage( aContactsField ) || iFindUtilKorean->IsKoreanLanguage( aWord ) ) ) |
310 { |
312 { |
311 return iFindUtilKorean->Match( aContactsField, aWord ); |
313 return iFindUtilKorean->Match( aContactsField, aWord ); |
312 } |
314 } |
313 else |
315 else |
314 { |
316 { |
343 // (other items were commented in a header). |
345 // (other items were commented in a header). |
344 // ----------------------------------------------------------------------------- |
346 // ----------------------------------------------------------------------------- |
345 // |
347 // |
346 TBool CFindUtilWestern::MatchRefineL( const TDesC& aItemString, const TDesC& aSearchText ) |
348 TBool CFindUtilWestern::MatchRefineL( const TDesC& aItemString, const TDesC& aSearchText ) |
347 { |
349 { |
348 if ( FeatureManager::FeatureSupported( KFeatureIdKorean ) || |
350 if ( iFindUtilKorean && |
349 iFindUtilKorean->IsKoreanLanguage( aItemString ) || |
351 ( iFindUtilKorean->IsKoreanLanguage( aItemString ) || |
350 iFindUtilKorean->IsKoreanLanguage( aSearchText ) ) |
352 iFindUtilKorean->IsKoreanLanguage( aSearchText ) ) ) |
351 { |
353 { |
352 return iFindUtilKorean->MatchRefineL( aItemString, aSearchText ); |
354 return iFindUtilKorean->MatchRefineL( aItemString, aSearchText ); |
353 } |
355 } |
354 else |
356 else |
355 { |
357 { |
1314 if ( aItemString.Length() == 0 ) |
1316 if ( aItemString.Length() == 0 ) |
1315 { |
1317 { |
1316 return EFalse; |
1318 return EFalse; |
1317 } |
1319 } |
1318 |
1320 |
1319 if ( iFindUtilKorean ) |
1321 if ( iFindUtilKorean && ( iFindUtilKorean->IsKoreanLanguage( aItemString ) || iFindUtilKorean->IsKoreanLanguage( aSearchText ) ) ) |
1320 { |
1322 { |
1321 return iFindUtilKorean->MatchAdaptiveRefineL(aItemString,aSearchText,aNextChars); |
1323 return iFindUtilKorean->MatchAdaptiveRefineL(aItemString,aSearchText,aNextChars); |
1322 } |
1324 } |
1323 |
1325 |
1324 if ( aSearchText.Length() == 0 ) |
1326 if ( aSearchText.Length() == 0 ) |