equal
deleted
inserted
replaced
22 |
22 |
23 |
23 |
24 |
24 |
25 |
25 |
26 #include <PtiEngine.h> |
26 #include <PtiEngine.h> |
27 #include <CentralRepository.h> |
27 #include <centralrepository.h> |
28 #include <AknFepInternalCRKeys.h> |
28 #include <AknFepInternalCRKeys.h> |
29 #include <AvkonInternalCRKeys.h> |
29 #include <AvkonInternalCRKeys.h> |
30 #include <aknedsts.h> |
30 #include <aknedsts.h> |
31 #include <COEAUI.H> |
31 #include <coeaui.h> |
32 #include <aknenv.h> //phonebook |
32 #include <aknenv.h> //phonebook |
33 #include <aknappui.h> |
33 #include <aknappui.h> |
34 #include <aknapp.h> |
34 #include <aknapp.h> |
35 #include <eikenv.h> |
35 #include <eikenv.h> |
36 #include <eikapp.h> |
36 #include <eikapp.h> |
37 #include <eikappui.h> |
37 #include <eikappui.h> |
38 |
38 |
39 |
39 |
40 #include "FindUtilChinese.h" |
40 #include "FindUtilChinese.h" |
41 #include "chinesefindutils.h" |
41 #include "ChineseFindUtils.h" |
42 |
42 |
43 // CONSTANTS |
43 // CONSTANTS |
44 const TUint16 KStarChar = 0x002a; |
44 const TUint16 KStarChar = 0x002a; |
45 const TUint16 KZhuyinstart = 0x3105; |
45 const TUint16 KZhuyinstart = 0x3105; |
46 const TInt KZhuyincount = 37; |
46 const TInt KZhuyincount = 37; |
1917 |
1917 |
1918 if(astringInfoArr.Count()>aindex) |
1918 if(astringInfoArr.Count()>aindex) |
1919 { |
1919 { |
1920 pStringInfo= astringInfoArr[aindex]; |
1920 pStringInfo= astringInfoArr[aindex]; |
1921 } |
1921 } |
1922 else |
|
1923 { |
|
1924 return; |
|
1925 } |
|
1926 |
1922 |
1927 if (pStringInfo->isChinese) |
1923 if (pStringInfo->isChinese) |
1928 { |
1924 { |
1929 if((pStringInfo->segmentString).Length()>aindexforfind+1)//in same segment |
1925 if((pStringInfo->segmentString).Length()>aindexforfind+1)//in same segment |
1930 { |
1926 { |
2332 } |
2328 } |
2333 else |
2329 else |
2334 { |
2330 { |
2335 //for multiphnetic spell |
2331 //for multiphnetic spell |
2336 TInt spellCount = tempSpellList.Count(); |
2332 TInt spellCount = tempSpellList.Count(); |
2337 |
2333 TInt matchMaxIndex = 0; |
|
2334 TInt matchMax = 0; |
|
2335 TInt matchMaxPre = 0; |
2338 // Search all spelling |
2336 // Search all spelling |
2339 for (TInt j = 0; j < spellCount; j++) |
2337 for (TInt j = 0; j < spellCount; j++) |
2340 { |
2338 { |
2341 //for multiphnetic spell |
2339 //for multiphnetic spell |
2342 TInt spellCount = tempSpellList.Count(); |
2340 TInt spellCount = tempSpellList.Count(); |