9 #include "dictziplib.hpp"
14 //write code here to make it inline
15 cacheItem() {data= NULL;}
16 ~cacheItem() {g_free(data);}
19 const int WORDDATA_CACHE_NUM = 10;
20 const int UNSET_INDEX = -1;
21 const int INVALID_INDEX=-100;
27 gchar * GetWordData(guint32 idxitem_offset, guint32 idxitem_size);
28 bool containSearchData() {
29 if (sametypesequence.empty())
32 return sametypesequence.find_first_of("mlgxtykwh") !=
35 bool SearchData(std::vector<std::string> &SearchWords, guint32 idxitem_offset, guint32 idxitem_size, gchar *origin_data);
37 std::string sametypesequence;
39 std::auto_ptr<dictData> dictdzfile;
41 cacheItem cache[WORDDATA_CACHE_NUM];