summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-03-14 13:39:56 +0800
committerPeng Wu <alexepico@gmail.com>2016-03-14 13:39:56 +0800
commit0a229eec709ba7a1da94d7885fe73acfeb1b2047 (patch)
tree37943a1cfd57fa3c231cd5546a89d01bd3ea37c0
parentf8524d6dfa56207d1cfe6480707d9acf01c0a376 (diff)
downloadlibpinyin-0a229eec709ba7a1da94d7885fe73acfeb1b2047.tar.gz
libpinyin-0a229eec709ba7a1da94d7885fe73acfeb1b2047.tar.xz
libpinyin-0a229eec709ba7a1da94d7885fe73acfeb1b2047.zip
add chewing_large_table2_kyotodb.cpp
-rw-r--r--src/storage/Makefile.am3
-rw-r--r--src/storage/chewing_large_table2_kyotodb.cpp25
-rw-r--r--src/storage/chewing_large_table2_kyotodb.h2
3 files changed, 28 insertions, 2 deletions
diff --git a/src/storage/Makefile.am b/src/storage/Makefile.am
index e185bad..0c3a737 100644
--- a/src/storage/Makefile.am
+++ b/src/storage/Makefile.am
@@ -86,5 +86,6 @@ endif
if KYOTOCABINET
libstorage_la_SOURCES += ngram_kyotodb.cpp \
- phrase_large_table3_kyotodb.cpp
+ phrase_large_table3_kyotodb.cpp \
+ chewing_large_table2_kyotodb.cpp
endif
diff --git a/src/storage/chewing_large_table2_kyotodb.cpp b/src/storage/chewing_large_table2_kyotodb.cpp
new file mode 100644
index 0000000..83a9ab4
--- /dev/null
+++ b/src/storage/chewing_large_table2_kyotodb.cpp
@@ -0,0 +1,25 @@
+/*
+ * libpinyin
+ * Library to deal with pinyin.
+ *
+ * Copyright (C) 2016 Peng Wu <alexepico@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#include "chewing_large_table2.h"
+
+namespace pinyin{
+};
diff --git a/src/storage/chewing_large_table2_kyotodb.h b/src/storage/chewing_large_table2_kyotodb.h
index f55c0d1..49b5dbe 100644
--- a/src/storage/chewing_large_table2_kyotodb.h
+++ b/src/storage/chewing_large_table2_kyotodb.h
@@ -29,7 +29,7 @@
namespace pinyin{
-template<size_t phrase_length>
+template<int phrase_length>
class ChewingTableEntry;
class ChewingLargeTable2{