90 CPcsAlgorithm1FilterHelper(); |
90 CPcsAlgorithm1FilterHelper(); |
91 |
91 |
92 /** |
92 /** |
93 * 2nd phase construtor |
93 * 2nd phase construtor |
94 */ |
94 */ |
95 void ConstructL(TSortType aSortType); |
95 void ConstructL(TSortType aSortType); |
96 |
96 |
97 /** |
97 /** |
98 * Adds each result into respective pool based on match pattern |
98 * Adds each result into respective pool based on match pattern |
99 */ |
99 */ |
100 TInt AddToPoolL(CPsData* psData, RPointerArray<TDesC>& aPatternSequence); |
100 TInt AddToPoolL(CPsData* psData, RPointerArray<TDesC>& aPatternSequence); |
101 |
101 |
102 /** |
102 /** |
103 * Searches for for aSeq in iMatchPatternDetails and returns index |
103 * Searches for for aSeq in iMatchPatternDetails and returns index |
104 * where input sequence is found. Returns -1 if not found |
104 * where input sequence is found. Returns -1 if not found |
105 */ |
105 */ |
106 TInt FindSequence(TDesC* aSeq); |
106 TInt FindSequence(const TDesC& aSeq); |
107 |
107 |
108 |
108 |
109 /** |
109 /** |
110 * Searches for for seq in subpatterns of iMatchPatternDetails[aPatternIndex] |
110 * Searches for for seq in subpatterns of iMatchPatternDetails[aPatternIndex] |
111 * and returns index where input sequence is found. |
111 * and returns index where input sequence is found. |
112 * Returns -1 if not found |
112 * Returns -1 if not found |
113 */ |
113 */ |
114 TInt FindSubSequence(TDesC* aSeq,TInt aPatternIndex); |
114 TInt FindSubSequence(const TDesC& aSeq, TInt aPatternIndex); |
115 |
115 |
116 /** |
116 /** |
117 * Creates the Matchpattern aSeq in iMatchPatternDetails. |
117 * Creates the Matchpattern aSeq in iMatchPatternDetails. |
118 * Returns the index of the sequence in iMatchPatternDetails |
118 * Returns the index of the sequence in iMatchPatternDetails |
119 */ |
119 */ |
120 TInt CreateMatchPatternDetailsAndPoolsL(TDesC* aSeq); |
120 TInt CreateMatchPatternDetailsAndPoolsL(const TDesC& aSeq); |
121 |
121 |
122 /** |
122 /** |
123 * Searches for all the subsequences of aSeq and updates the |
123 * Searches for all the subsequences of aSeq and updates the |
124 * aFirstOccrVal in iMatchPatternDetails. |
124 * aFirstOccrVal in iMatchPatternDetails. |
125 */ |
125 */ |
126 void UpdateForSubSequencesL(TDesC& aSeq,TInt aFirstOccrVal); |
126 void UpdateForSubSequencesL(const TDesC& aSeq, TInt aFirstOccrVal); |
127 |
127 |
128 private: |
128 private: |
129 |
129 |
130 /** |
130 /** |
131 * Own. Array of TPsPatternDetails structure |
131 * Own. Array of TPsPatternDetails structure |