From 931df7d5a0924cde0c5b249b5f82a8d5bf9039b5 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 21 May 2012 12:07:13 +0800 Subject: rename init_phrase_index to load_phrase_index --- tests/lookup/test_phrase_lookup.cpp | 2 +- tests/lookup/test_pinyin_lookup.cpp | 2 +- tests/tests_helper.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/lookup/test_phrase_lookup.cpp b/tests/lookup/test_phrase_lookup.cpp index 42a715f..3a5470f 100644 --- a/tests/lookup/test_phrase_lookup.cpp +++ b/tests/lookup/test_phrase_lookup.cpp @@ -78,7 +78,7 @@ int main(int argc, char * argv[]){ /* init phrase index */ FacadePhraseIndex phrase_index; - if (!init_phrase_index(&phrase_index)) + if (!load_phrase_index(&phrase_index)) exit(ENOENT); /* init bi-gram */ diff --git a/tests/lookup/test_pinyin_lookup.cpp b/tests/lookup/test_pinyin_lookup.cpp index 6aa34a9..25f7a2b 100644 --- a/tests/lookup/test_pinyin_lookup.cpp +++ b/tests/lookup/test_pinyin_lookup.cpp @@ -38,7 +38,7 @@ int main( int argc, char * argv[]){ largetable.load(options, chunk, NULL); FacadePhraseIndex phrase_index; - if (!init_phrase_index(&phrase_index)) + if (!load_phrase_index(&phrase_index)) exit(ENOENT); Bigram system_bigram; diff --git a/tests/tests_helper.h b/tests/tests_helper.h index b6cda61..daaa68a 100644 --- a/tests/tests_helper.h +++ b/tests/tests_helper.h @@ -22,7 +22,7 @@ #ifndef TESTS_HELPER_H #define TESTS_HELPER_H -static bool init_phrase_index(FacadePhraseIndex * phrase_index){ +static bool load_phrase_index(FacadePhraseIndex * phrase_index){ MemoryChunk * chunk = NULL; for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) { const char * bin_file = pinyin_phrase_files[i]; -- cgit