#include "TextCollection.h"
#include "TextStorage.h"
#include "Tools.h" // Defines ulong and uchar.
+
+#include <string>
#include <vector>
#include <utility> // Defines std::pair.
#include <cstring> // Defines std::strlen, added by Kim
* Can not be called after makeStatic().
* The i'th text insertion gets an identifier value i-1.
* In other words, document identifiers start from 0.
+ *
+ * Second parameter tells if the text will be added to the
+ * index also. If false, text is added only to the TextCollection
+ * and can not be searched for.
*/
- void InsertText(uchar const *);
+ void InsertText(uchar const *, bool index = true);
/**
* Make static
*
TextCollection * InitTextCollection(char type = TextStorage::TYPE_PLAIN_TEXT);
private:
+ // Using Pimpl idiom to hide RLCSA implementation.
struct TCBuilderRep * p_;
// No copy constructor or assignment