From eb8fdda2965ca382a9b41d8cac65ee16e16ee6e6 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 29 Nov 2011 14:31:57 +0800 Subject: begin to add chewing_large_table.cpp --- src/include/memory_chunk.h | 1 + src/storage/Makefile.am | 6 ++++-- src/storage/chewing_large_table.cpp | 22 ++++++++++++++++++++++ src/storage/chewing_large_table.h | 2 ++ 4 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 src/storage/chewing_large_table.cpp (limited to 'src') diff --git a/src/include/memory_chunk.h b/src/include/memory_chunk.h index 49b8f8c..2c0b052 100644 --- a/src/include/memory_chunk.h +++ b/src/include/memory_chunk.h @@ -24,6 +24,7 @@ #include #include +#include #include #include "stl_lite.h" diff --git a/src/storage/Makefile.am b/src/storage/Makefile.am index 0338e7b..d0c4b01 100644 --- a/src/storage/Makefile.am +++ b/src/storage/Makefile.am @@ -39,7 +39,8 @@ noinst_HEADERS = pinyin_large_table.h \ double_pinyin_table.h \ chewing_table.h \ pinyin_parser2.h \ - pinyin_phrase2.h + pinyin_phrase2.h \ + chewing_large_table.h noinst_LTLIBRARIES = libstorage.la @@ -54,5 +55,6 @@ libstorage_la_SOURCES = pinyin_base.cpp \ phrase_large_table.cpp \ ngram.cpp \ tag_utility.cpp \ - pinyin_parser2.cpp + pinyin_parser2.cpp \ + chewing_large_table.cpp diff --git a/src/storage/chewing_large_table.cpp b/src/storage/chewing_large_table.cpp new file mode 100644 index 0000000..aec2b71 --- /dev/null +++ b/src/storage/chewing_large_table.cpp @@ -0,0 +1,22 @@ +/* + * libpinyin + * Library to deal with pinyin. + * + * Copyright (C) 2011 Peng Wu + * + * 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_table.h" diff --git a/src/storage/chewing_large_table.h b/src/storage/chewing_large_table.h index 6130a73..52ee01b 100644 --- a/src/storage/chewing_large_table.h +++ b/src/storage/chewing_large_table.h @@ -22,8 +22,10 @@ #ifndef CHEWING_LARGE_TABLE_H #define CHEWING_LARGE_TABLE_H + #include "novel_types.h" #include "memory_chunk.h" +#include "chewing_key.h" namespace pinyin{ -- cgit