}
/* lookup re-split table */
- size_t k;
const resplit_table_item_t * item = NULL;
item = retrieve_resplit_item_by_original_pinyins
- (options, cur_key, cur_rest, next_key, next_rest,
- str, len);
+ (options, cur_key, cur_rest, next_key, next_rest, str, len);
if (item) {
/* no ops */
item = resplit_table + k;
const char * onepinyin = str + cur_rest->m_raw_begin;
- size_t len = strlen(item->m_orig_keys[0]);
+ size_t len = strlen(item->m_new_keys[0]);
if (cur_rest->length() != len)
continue;
- if (0 != strncmp(onepinyin, item->m_orig_keys[0], len))
+ if (0 != strncmp(onepinyin, item->m_new_keys[0], len))
continue;
onepinyin = str + next_rest->m_raw_begin;
- len = strlen(item->m_orig_keys[1]);
+ len = strlen(item->m_new_keys[1]);
if (next_rest->length() != len)
continue;
- if (0 == strncmp(onepinyin, item->m_orig_keys[1], len))
+ if (0 == strncmp(onepinyin, item->m_new_keys[1], len))
break;
}
ChewingTone tone = CHEWING_ZERO_TONE;
options &= ~(PINYIN_INCOMPLETE|CHEWING_INCOMPLETE);
+ options |= PINYIN_CORRECT_UE_VE | PINYIN_CORRECT_V_U;
/* parse tone */
if (3 == len) {