summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-04-17 13:43:27 +0800
committerPeng Wu <alexepico@gmail.com>2015-04-17 13:43:27 +0800
commit4da56126200cbfdca51eafe3dcb5f074599b7b2b (patch)
tree4870ead64021064b64d9c4678493c734968751d9
parent66c47c64247f64c4add135b4be5297eb39b6a051 (diff)
downloadlibpinyin-4da56126200cbfdca51eafe3dcb5f074599b7b2b.tar.gz
libpinyin-4da56126200cbfdca51eafe3dcb5f074599b7b2b.tar.xz
libpinyin-4da56126200cbfdca51eafe3dcb5f074599b7b2b.zip
add flexible_ngram_kyotodb.h
-rw-r--r--src/storage/Makefile.am1
-rw-r--r--src/storage/flexible_ngram.h4
-rw-r--r--src/storage/flexible_ngram_kyotodb.h32
3 files changed, 37 insertions, 0 deletions
diff --git a/src/storage/Makefile.am b/src/storage/Makefile.am
index 57ece50..daa4c6f 100644
--- a/src/storage/Makefile.am
+++ b/src/storage/Makefile.am
@@ -36,6 +36,7 @@ noinst_HEADERS = chewing_enum.h \
flexible_ngram.h \
flexible_single_gram.h \
flexible_ngram_bdb.h \
+ flexible_ngram_kyotodb.h \
tag_utility.h \
pinyin_parser_table.h \
double_pinyin_table.h \
diff --git a/src/storage/flexible_ngram.h b/src/storage/flexible_ngram.h
index dc32dae..09789a0 100644
--- a/src/storage/flexible_ngram.h
+++ b/src/storage/flexible_ngram.h
@@ -35,4 +35,8 @@
#include "flexible_ngram_bdb.h"
#endif
+#ifdef HAVE_KYOTO_CABINET
+#include "flexible_ngram_kyotodb.h"
+#endif
+
#endif
diff --git a/src/storage/flexible_ngram_kyotodb.h b/src/storage/flexible_ngram_kyotodb.h
new file mode 100644
index 0000000..ed8bc2a
--- /dev/null
+++ b/src/storage/flexible_ngram_kyotodb.h
@@ -0,0 +1,32 @@
+/*
+ * libpinyin
+ * Library to deal with pinyin.
+ *
+ * Copyright (C) 2015 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.
+ */
+
+#ifndef FLEXIBLE_NGRAM_KYOTODB_H
+#define FLEXIBLE_NGRAM_KYOTODB_H
+
+#ifdef HAVE_KYOTO_CABINET
+#include <kcdb.h>
+#endif
+
+namespace pinyin{
+};
+
+#endif