struct ChewingKeyRest
{
- /* Note: the table index is deprecated,
- * and will be removed in the next major release.
- * Currently this is kept for debugging purpose.
+ /* Note: the table index is removed,
* Please use get_table_index in ChewingKey.
*/
- guint16 m_table_index; /* the index in pinyin parser table. */
guint16 m_raw_begin; /* the begin of the raw input. */
guint16 m_raw_end; /* the end of the raw input. */
ChewingKeyRest() {
/* the 0th item in pinyin parser table is reserved for invalid. */
- m_table_index = 0;
m_raw_begin = 0;
m_raw_end = 0;
}
gint16 pos = curstep->m_num_keys - 1;
/* skip "'" */
- if (0 != curstep->m_key_rest.m_table_index) {
+ if (0 != curstep->m_key.get_table_index()) {
ChewingKey * key = &g_array_index(keys, ChewingKey, pos);
ChewingKeyRest * rest = &g_array_index
(key_rests, ChewingKeyRest, pos);