getFormatPinyin

2021-06-18 17:05:57    文子    1794

const unsigned short * getFormatPinyin (int index, unsigned short * out );

根据候选的index,格式化当前的输入串;即对输入串进行拼音切分。

参数:

  1. index - 候选位置。
  2. out - 用于输出的数组。

返回:

成功返回 out,失败返回 NULL。

举例说明,九宫格拼音模式下,输入内容为 96,假如候选结果为:我  中 哟

那么:

getFormatPinyin(0, out) 结果就是 wo


getFormatPinyin(1, out) 结果就是 zo


getFormatPinyin(0, out) 结果就是 yo