summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-11-30 16:17:58 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-30 16:17:58 +0800
commit0fb25fb9700f0cd32679c3e3cc358c575c8b2826 (patch)
tree1242f500b6092d7527b8501931846b33dd464967
parentddfd94c68310d2b8016de24f578145aff324482b (diff)
downloadlibpinyin-0fb25fb9700f0cd32679c3e3cc358c575c8b2826.tar.gz
libpinyin-0fb25fb9700f0cd32679c3e3cc358c575c8b2826.tar.xz
libpinyin-0fb25fb9700f0cd32679c3e3cc358c575c8b2826.zip
refine chewing large table header
-rw-r--r--src/storage/chewing_large_table.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/storage/chewing_large_table.h b/src/storage/chewing_large_table.h
index 071101f..af5adf7 100644
--- a/src/storage/chewing_large_table.h
+++ b/src/storage/chewing_large_table.h
@@ -42,18 +42,21 @@ protected:
[CHEWING_NUMBER_OF_FINALS][CHEWING_NUMBER_OF_TONES];
/* search functions */
- int initial_level_search(int word_length, /* in */ChewingKey keys[],
+ int initial_level_search(int word_length, /* in */ ChewingKey keys[],
/* out */ PhraseIndexRanges ranges) const;
- int middle_and_final_level_search(int word_length, ChewingKey keys[],
+ int middle_and_final_level_search(ChewingInitial initial, int word_length,
+ /* in */ ChewingKey keys[],
/* out */ PhraseIndexRanges ranges)const;
- int tone_level_search(int word_length, /* in */ ChewingKey keys[],
+ int tone_level_search(ChewingInitial initial, ChewingMiddle middle,
+ ChewingFinal final, int word_length,
+ /* in */ ChewingKey keys[],
/* out */ PhraseIndexRanges ranges) const;
void reset();
public:
/* constructor/destructor */
- ChewingBitmapIndexLevel(pinyin_option_t options) : m_options(options){}
+ ChewingBitmapIndexLevel(pinyin_option_t options);
~ChewingBitmapIndexLevel() { reset(); }
/* set options method */