git-svn-id: svn+ssh://idea.nguyen.vg/svn/sxsi/trunk/TextCollection@621
3cdefd35-fc62-479d-8e8d-
bae585ffb9ca
#include "TextCollection.h"
#include "TextStorage.h"
#include "Tools.h" // Defines ulong and uchar.
#include "TextCollection.h"
#include "TextStorage.h"
#include "Tools.h" // Defines ulong and uchar.
#include <vector>
#include <utility> // Defines std::pair.
#include <cstring> // Defines std::strlen, added by Kim
#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.
* 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);
TextCollection * InitTextCollection(char type = TextStorage::TYPE_PLAIN_TEXT);
private:
TextCollection * InitTextCollection(char type = TextStorage::TYPE_PLAIN_TEXT);
private:
+ // Using Pimpl idiom to hide RLCSA implementation.
struct TCBuilderRep * p_;
// No copy constructor or assignment
struct TCBuilderRep * p_;
// No copy constructor or assignment