\r
/** Tag sequence represented with a data structure for rank and select */\r
static_sequence *Tags;\r
+ uint * tags_fix;\r
+ uint tags_blen, tags_len;\r
\r
/** The texts in the XML document */\r
TextCollection *Text;\r
}\r
\r
uchar* GetCachedText(DocID d) {\r
- return (uchar*) (CachedText.at(d).c_str());\r
+ uchar * str = (uchar*) calloc(sizeof(char),(CachedText.at(d).size() + 1));\r
+ strcpy((char*) str,(const char*) CachedText.at(d).c_str());\r
+ return (uchar*) (str);\r
}\r
\r
TextCollection *getTextCollection() {\r