From a1feafe837d69d33fe55320eab7300714d2d477c Mon Sep 17 00:00:00 2001 From: gwdwyy Date: Sat, 13 Jul 2013 20:58:06 +0800 Subject: [PATCH] finishing keywordext.cpp/h --- src/KeyWordExt.cpp | 8 +++++++- src/KeyWordExt.h | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) 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); + }; }