diff options
author | Peng Wu <alexepico@gmail.com> | 2011-12-14 13:39:06 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-12-14 13:39:06 +0800 |
commit | 9ffdfaa1b77c0a9e2136ad49768bc7df4329d454 (patch) | |
tree | 494495408df9ed82bf258bcfda4b87afdaacfd55 /src/storage/chewing_key.h | |
parent | 2970679b136f91607f7db1d1a64c3158b1d60881 (diff) | |
download | libpinyin-9ffdfaa1b77c0a9e2136ad49768bc7df4329d454.tar.gz libpinyin-9ffdfaa1b77c0a9e2136ad49768bc7df4329d454.tar.xz libpinyin-9ffdfaa1b77c0a9e2136ad49768bc7df4329d454.zip |
refine ChewingKeyRest
Diffstat (limited to 'src/storage/chewing_key.h')
-rw-r--r-- | src/storage/chewing_key.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/storage/chewing_key.h b/src/storage/chewing_key.h index 9f6526e..68733d4 100644 --- a/src/storage/chewing_key.h +++ b/src/storage/chewing_key.h @@ -212,21 +212,8 @@ struct ChewingKeyRest m_raw_begin = 0; m_raw_end = 0; } - - const char * get_pinyin_string(); - const char * get_chewing_string(); }; -static inline gchar * get_pinyin_string(ChewingKey key, - ChewingKeyRest key_rest) { - if (CHEWING_ZERO_TONE != key.m_tone) { - return g_strdup_printf - ("%s%d", key_rest.get_pinyin_string(), key.m_tone); - } else { - return g_strdup(key_rest.get_pinyin_string()); - } -} - }; #endif |