diff --git a/src/KeyWordExt.cpp b/src/KeyWordExt.cpp index f8369b1..6499d11 100644 --- a/src/KeyWordExt.cpp +++ b/src/KeyWordExt.cpp @@ -14,10 +14,16 @@ namespace CppJieba bool KeyWordExt::init(const char * const filePath) { - return true; + return _segment.init(filePath); } bool KeyWordExt::destroy() + { + _segment.destroy(); + return true; + } + + bool KeyWordExt::extract(const string& utf8Str) { return true; } diff --git a/src/KeyWordExt.h b/src/KeyWordExt.h index 72b7eaa..b4fbde8 100644 --- a/src/KeyWordExt.h +++ b/src/KeyWordExt.h @@ -15,6 +15,9 @@ namespace CppJieba bool init(const char * const filePath); bool destroy(); + public: + bool extract(const string& utf8Str); + }; }