diff options
author | Peng Wu <alexepico@gmail.com> | 2016-06-30 14:30:46 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-06-30 14:36:21 +0800 |
commit | c4f57271683ec7eb98b43ee4aae94cff1b341483 (patch) | |
tree | 222ddfee0fc4caa5b4d2e83ae0f802805298e989 /src/pinyin.cpp | |
parent | 60934ae69936452dffeceee9544c0d1016f8d6dd (diff) | |
download | libpinyin-c4f57271683ec7eb98b43ee4aae94cff1b341483.tar.gz libpinyin-c4f57271683ec7eb98b43ee4aae94cff1b341483.tar.xz libpinyin-c4f57271683ec7eb98b43ee4aae94cff1b341483.zip |
begin to add pinyin_remember_user_input function
Diffstat (limited to 'src/pinyin.cpp')
-rw-r--r-- | src/pinyin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp index 6a2d189..d69e093 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -483,6 +483,7 @@ static bool _add_phrase(pinyin_context_t * context, bool result = false; + /* check whether the phrase exists in phrase table */ phrase_token_t token = null_token; GArray * tokenarray = g_array_new(FALSE, FALSE, sizeof(phrase_token_t)); @@ -577,7 +578,6 @@ bool pinyin_iterator_add_phrase(import_iterator_t * iter, if (NULL == phrase || NULL == pinyin) return result; - /* check whether the phrase exists in phrase table */ glong phrase_length = 0; ucs4_t * ucs4_phrase = g_utf8_to_ucs4(phrase, -1, NULL, &phrase_length, NULL); |