diff options
author | Peng Wu <alexepico@gmail.com> | 2012-10-18 16:53:28 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-10-18 16:53:28 +0800 |
commit | a949650e53700d1215bfe91b3f3172bb59fd2901 (patch) | |
tree | ba7ca83d4ae901885ebfd496ec4ec49750554751 | |
parent | 67eb7b0d41e907d24bc6d1ad973290d61cd90c0a (diff) | |
download | libpinyin-a949650e53700d1215bfe91b3f3172bb59fd2901.tar.gz libpinyin-a949650e53700d1215bfe91b3f3172bb59fd2901.tar.xz libpinyin-a949650e53700d1215bfe91b3f3172bb59fd2901.zip |
update tag utility
-rw-r--r-- | src/storage/tag_utility.cpp | 4 | ||||
-rw-r--r-- | src/storage/tag_utility.h | 14 |
2 files changed, 4 insertions, 14 deletions
diff --git a/src/storage/tag_utility.cpp b/src/storage/tag_utility.cpp index 2701934..081e931 100644 --- a/src/storage/tag_utility.cpp +++ b/src/storage/tag_utility.cpp @@ -308,6 +308,8 @@ bool taglib_fini(){ return true; } +#if 0 + static phrase_token_t taglib_special_string_to_token(const char * string){ struct token_pair{ phrase_token_t token; @@ -355,6 +357,8 @@ phrase_token_t taglib_string_to_token(PhraseLargeTable2 * phrase_table, return token; } +#endif + static const char * taglib_special_token_to_string(phrase_token_t token){ struct token_pair{ phrase_token_t token; diff --git a/src/storage/tag_utility.h b/src/storage/tag_utility.h index 68e298d..ceb1d6c 100644 --- a/src/storage/tag_utility.h +++ b/src/storage/tag_utility.h @@ -116,20 +116,6 @@ class FacadePhraseIndex; /** - * taglib_string_to_token: - * @phrase_table: the phrase table for token lookup. - * @phrase_index: the phrase index to prepare PhraseTokens. - * @string: the string of the phrase. - * @returns: the phrase token found in phrase table. - * - * Translate one phrase into the token. - * - */ -phrase_token_t taglib_string_to_token(PhraseLargeTable2 * phrase_table, - FacadePhraseIndex * phrase_index, - const char * string); - -/** * taglib_token_to_string: * @phrase_index: the phrase index for phrase string lookup. * @token: the phrase token. |