Hunspell API C++
来源:互联网 发布:网络文明手抄报 编辑:程序博客网 时间:2024/05/18 05:44
Hunspell 是一个拼写检查器,OpenOffice 和 Firefox 以及 Thunderbird 默认的都是使用这个拼写检查器。
#include <hunspell/hunspell.hxx> /* or */
#include <hunspell/hunspell.h>
//初始化函数
Hunspell(const char *affpath,const char *dpath);
Hunspell(const char *affpath,const char *dpath,const char *key);
~Hunspell();
//添加额外的字典
int add_dic(const char *dpath);
int add_dic(const char *dpath,const char *key);
//判断字是否拼写错误
int spell(const char *word);
int spell(const char *word,int *info,char **root);
//对错误的词返回修改建议与返回修改单词的个数
int suggest(char***slst,const char *word);
//分析所使用的规则
int analyze(char***slst,const char *word);
//抽取词干
int stem(char***slst,const char *word);
int stem(char***slst,char **morph,intn);
//生成形态分析
int generate(char***slst,const char *word,const char *word2);
int generate(char***slst,const char *word,char **desc,intn);
//清空返回的建议列表
void free_list(char ***slst,intn);
//向个人字典添加单词
int add(const char *word);
//向个人字典添加单词 带词缀
int add_with_affix(const char *word,const char *example);
//删除个人词典中的单词
int remove(const char *word);
//返回ISO8859-1或者是在affix文件中用关键字SET定义的字符编码
char * get_dic_encoding();
//返回在字缀文件中用关键字WORDCHARS定义的用于词语切分的额外字符
const char * get_wordchars();
//返回在字缀文件中用关键字WORDCHARS定义的用于词语切分的额外字符
unsigned short * get_wordchars_utf16(int *len);
//返回8字符的字典编码情况表
struct cs_info*get_csconv();
//返回版本号
const char * get_version();
- Hunspell API C++
- Hunspell拼写检查器
- notes Hunspell Tutorial
- Install hunspell with python on Ubuntu
- art ispell自定义hunspell字典或词典
- C#api
- Alchemy(C/C++)API
- c api 应用1
- ORACLE 的C API
- Libscws C API 使用说明
- Mysql C api
- LDAP c API
- LDAP c API
- C#-使用API
- c#API函数.txt
- Hook API (C++)
- C + windows API
- C API函数概述
- Google发布代码转换工具 可移植安卓程序至iOS
- 使用XML+XSLT实现业务表单
- Android之TextView属性详解
- webservice 测试窗体只能用于来自本地计算机的请求
- 海量分页存储过程
- Hunspell API C++
- microsoft sql server 登陆 出现错误10060
- java数据结构-HashMap
- 如何在dll中添加资源
- inline 的好处
- Linux的五个查找命令
- Hadoop&hive安装配置
- C# 图像灰度处理
- 漾七夕