public interface HunspellLibrary
extends com.sun.jna.Library
| Modifier and Type | Method and Description |
|---|---|
int |
Hunspell_add(com.sun.jna.Pointer pHunspell,
byte[] word)
Add a word to the run-time dictionary.
|
com.sun.jna.Pointer |
Hunspell_create(String affpath,
String dpath)
Create the hunspell instance
|
void |
Hunspell_destroy(com.sun.jna.Pointer pHunspell)
Destroy him my robots...
|
String |
Hunspell_get_dic_encoding(com.sun.jna.Pointer pHunspell)
Get the dictionary encoding
|
int |
Hunspell_spell(com.sun.jna.Pointer pHunspell,
byte[] word)
spell(word) - spellcheck word
|
int |
Hunspell_suggest(com.sun.jna.Pointer pHunspell,
com.sun.jna.ptr.PointerByReference slst,
byte[] word)
Search suggestions
|
com.sun.jna.Pointer Hunspell_create(String affpath, String dpath)
affpath - The affix filedpath - The dictionary filevoid Hunspell_destroy(com.sun.jna.Pointer pHunspell)
pHunspell - The Hunspell object returned by Hunspell_createint Hunspell_spell(com.sun.jna.Pointer pHunspell,
byte[] word)
pHunspell - The Hunspell object returned by Hunspell_createword - The word to spellcheck.String Hunspell_get_dic_encoding(com.sun.jna.Pointer pHunspell)
pHunspell - : The Hunspell object returned by Hunspell_createint Hunspell_suggest(com.sun.jna.Pointer pHunspell,
com.sun.jna.ptr.PointerByReference slst,
byte[] word)
pHunspell - The Hunspell object returned by Hunspell_createslst - input: pointer to an array of strings pointer and the (bad) word
array of strings pointer (here *slst) may not be initialized
output: number of suggestions in string array, and suggestions in
a newly allocated array of strings (*slts will be NULL when number
of suggestion equals 0.)word - The word to offer suggestions for.int Hunspell_add(com.sun.jna.Pointer pHunspell,
byte[] word)
pHunspell - The Hunspell object returned by Hunspell_createword - The word added to the runtime dictionary.