TpInputMethod 类
V0.2.1TpUtils
2025-11-14
基础信息
| 头文件: | include <TpInputMethod.h> |
|---|---|
| Cmake: | None |
| 发布版本: | V0.2.1 |
| 继承类: | |
| 派生类: |
Public 成员函数
| TpInputMethod() | ||
|---|---|---|
| ~TpInputMethod() | ||
| inputKeySequence(const TpString &inputSequence) | 输入拼音字符;每次调用会追加字符;ex: 第一次输入z;第二次输入h;处理结果zh | |
| TpString | keySequence() | 获取当前输入的拼音字符 |
| clear() | 重置输入字符 | |
| TpVector< TpString > | currentPageCandidates() | 获取当前页候选词列表 |
| TpVector< TpString > | allCandidates() | 获取当前输入拼音的所有候选词 |
| currentPage() | 获取当前页索引 | |
| previousPage() | 上一页 | |
| nextPage() | 下一页 | |
| hasNext() | 是否还有下一页 |
成员函数说明
TpInputMethod::TpInputMethod()
暂无注释...
virtual TpInputMethod::~TpInputMethod()
暂无注释...
void TpInputMethod::inputKeySequence(const TpString &inputSequence)
输入拼音字符;每次调用会追加字符;ex: 第一次输入z;第二...
输入拼音字符;每次调用会追加字符;ex: 第一次输入z;第二次输入h;处理结果zh
TpString TpInputMethod::keySequence()
获取当前输入的拼音字符...
获取当前输入的拼音字符
返回值:拼音字符串
void TpInputMethod::clear()
重置输入字符...
重置输入字符
TpVector< TpString > TpInputMethod::currentPageCandidates()
获取当前页候选词列表...
获取当前页候选词列表
返回值:候选词列表
TpVector< TpString > TpInputMethod::allCandidates()
获取当前输入拼音的所有候选词...
获取当前输入拼音的所有候选词
返回值:候选词列表
int32_t TpInputMethod::currentPage()
获取当前页索引...
获取当前页索引
返回值:候选词列表
bool TpInputMethod::previousPage()
上一页...
上一页
返回值:执行结果
bool TpInputMethod::nextPage()
下一页...
下一页
返回值:执行结果
bool TpInputMethod::hasNext()
是否还有下一页...
是否还有下一页
返回值:还有下一页返回true否则返回false
