1

我想在我的 C 程序中使用 hunspell。我在 Unix 环境(shell)中工作,它已经内置了 hunspell。我知道我可以通过在命令行输入 hunspell 文件名来使用它,但我想知道如何在我的程序中使用它。最终我想存储每个字典单词,但首先我只想知道如何将它导入到我的程序中。就像有#include类型的东西吗?

4

1 回答 1

1

是的,您可以通过 hunspell API 使用#include <hunspell/hunspell.h>API 详细信息可以在hunspell 文档页面(hunspell3.pdf) 中找到。例子有点稀缺,但这个这个应该让你开始。

于 2013-12-13T05:03:41.970 回答