~ubuntu-branches/ubuntu/raring/kdepim/raring-proposed

« back to all changes in this revision

Viewing changes to strigi-analyzer/ctg/kmpsearcher.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-07 07:56:38 UTC
  • mfrom: (0.2.27)
  • Revision ID: package-import@ubuntu.com-20120607075638-0luhdq11z7sgvs4m
Tags: 4:4.8.80-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
class STREAMS_EXPORT KmpSearcher {
35
35
private:
36
36
    std::string m_query;
37
 
    int32_t* table;
38
 
    int32_t len;
39
 
    int32_t maxlen;
 
37
    qint32* table;
 
38
    qint32 len;
 
39
    qint32 maxlen;
40
40
public:
41
41
    KmpSearcher() :table(0) { }
42
42
    KmpSearcher(const std::string& query);
46
46
        }
47
47
    }
48
48
    void setQuery(const std::string& query);
49
 
    int32_t queryLength() const { return len; }
 
49
    qint32 queryLength() const { return len; }
50
50
    std::string query() const { return m_query; }
51
51
    /**
52
52
     * @brief Find the needle in @p haystack.
55
55
     * @return         a pointer to the start of the match if a match is found
56
56
     *                 Otherwise @c 0.
57
57
     **/
58
 
    const char* search(const char* haystack, int32_t haylen) const;
 
58
    const char* search(const char* haystack, qint32 haylen) const;
59
59
};
60
60
 
61
61
} // end namespace Strigi