cppjieba/Segment.h
2013-07-05 17:22:01 +08:00

29 lines
416 B
C++

#ifndef SEGMENT_H
#define SEGMENT_H
#include "Trie.h"
namespace CppJieba
{
class Segment
{
private:
Trie _trie;
public:
Segment();
~Segment();
public:
bool init(const char* const dictFilePath);
bool destroy();
public:
bool cutMM(const string& chStr, vector<string>& res);
bool cutRMM(const string& chStr, vector<string>& res);
private:
enum {bufSize = 1024};
};
}
#endif