summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);