predictivesearch/PcsAlgorithm/Algorithm1/inc/CPcsAlgorithm1MultiSearchHelper.h
branchRCL_3
changeset 21 b3431bff8c19
parent 15 e8e3147d53eb
child 64 c1e8ba0c2b16
equal deleted inserted replaced
15:e8e3147d53eb 21:b3431bff8c19
   100 		        const TDesC& aData,
   100 		        const TDesC& aData,
   101 		        TDes& aMatchedData );
   101 		        TDes& aMatchedData );
   102 
   102 
   103     private:
   103     private:
   104     
   104     
   105          /**
       
   106           * Constructs a bit pattern using the required/supported data fields
       
   107           * For example, 6, 4 and 27 are supported fields <-- 00000111
       
   108           *              6 and 4 are required fields      <-- 00000011
       
   109           * Bit pattern returned is 00000011.
       
   110           */
       
   111          TUint8 FilterDataFieldsL(RArray<TInt>& aRequiredDataFields,
       
   112                                   RArray<TInt>& aSupportedDataFields);
       
   113 
       
   114         /**
   105         /**
   115 		 * Set the bits corresponding to word matches
   106 		 * Set the bits corresponding to word matches
   116 		 *
   107 		 *
   117 		 * @param aIndex Index of data element
   108 		 * @param aIndex Index of data element
   118 		 * @param aPosition Word matched for predictive search
   109 		 * @param aPosition Word matched for predictive search
   131         
   122         
   132         /**
   123         /**
   133          * Resets iWordMatches member variable
   124          * Resets iWordMatches member variable
   134          */
   125          */
   135         void ClearWordMatches();
   126         void ClearWordMatches();
   136 
       
   137         /**
       
   138          * Appends uppercased match to sequence, not allowing duplicates.
       
   139          */
       
   140         void AppendMatchToSeqL( RPointerArray<TDesC>& aMatchSeq, const TDesC& aMatch  );
       
   141         
   127         
   142     public:
   128     public:
   143         
   129         
   144         /**
   130         /**
   145          * Utility function that counts no of bit set in 32 bit number
   131          * Utility function that counts no of bit set in 32 bit number