summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-08-21 14:04:28 +0800
committerPeng Wu <alexepico@gmail.com>2012-08-25 13:28:21 +0800
commit993983933976cb2a864eb155b952deded9e20784 (patch)
treed4be057624b38f04455322be2c6a07451fabd72f
parentfb29787830eb012a92d5c4c0bde18a4228ee4a83 (diff)
downloadlibpinyin-993983933976cb2a864eb155b952deded9e20784.tar.gz
libpinyin-993983933976cb2a864eb155b952deded9e20784.tar.xz
libpinyin-993983933976cb2a864eb155b952deded9e20784.zip
fixes compile
-rw-r--r--src/storage/Makefile.am2
-rw-r--r--src/storage/phrase_large_table2.cpp4
-rw-r--r--src/storage/phrase_large_table2.h2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/storage/Makefile.am b/src/storage/Makefile.am
index 9eac03c..0cdad3c 100644
--- a/src/storage/Makefile.am
+++ b/src/storage/Makefile.am
@@ -30,6 +30,7 @@ noinst_HEADERS = pinyin_parser2.h \
phrase_index.h \
phrase_index_logger.h \
phrase_large_table.h \
+ phrase_large_table2.h \
ngram.h \
flexible_ngram.h \
tag_utility.h \
@@ -50,6 +51,7 @@ libstorage_la_LDFLAGS = -static
libstorage_la_SOURCES = phrase_index.cpp \
phrase_large_table.cpp \
+ phrase_large_table2.cpp \
ngram.cpp \
tag_utility.cpp \
pinyin_parser2.cpp \
diff --git a/src/storage/phrase_large_table2.cpp b/src/storage/phrase_large_table2.cpp
index 5eb1c18..cccb0c8 100644
--- a/src/storage/phrase_large_table2.cpp
+++ b/src/storage/phrase_large_table2.cpp
@@ -41,7 +41,7 @@ public:
/* search method */
int search(int phrase_length, /* in */ ucs4_t phrase[],
- /* out */ PhraseTokens tokens);
+ /* out */ PhraseTokens tokens) const;
/* add_index/remove_index method */
int add_index(int phrase_length, /* in */ ucs4_t phrase[],
@@ -59,7 +59,7 @@ public:
bool store(MemoryChunk * new_chunk, table_offset_t offset, table_offset_t & end);
/* search method */
- int search(/* in */ ucs4_t phrase[], /* out */ PhraseTokens tokens);
+ int search(/* in */ ucs4_t phrase[], /* out */ PhraseTokens tokens) const;
/* add_index/remove_index method */
int add_index(/* in */ ucs4_t phrase[], /* in */ phrase_token_t token);
diff --git a/src/storage/phrase_large_table2.h b/src/storage/phrase_large_table2.h
index 32f4934..01adb83 100644
--- a/src/storage/phrase_large_table2.h
+++ b/src/storage/phrase_large_table2.h
@@ -49,7 +49,7 @@ public:
/* search method */
int search(int phrase_length, /* in */ ucs4_t phrase[],
- /* out */ PhraseTokens tokens);
+ /* out */ PhraseTokens tokens) const;
/* add_index/remove_index method */
int add_index(int phrase_length, /* in */ ucs4_t phrase[], /* in */ phrase_token_t token);