Unit HunSpellApi

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Interface to the libhunspell.dll

THunSpell Copyright (C) 2010, Stefan Ascher

$Id: HunSpellApi.pas,v 1.1 2010/11/30 06:55:58 Stefan Ascher Exp $

Overview

Functions and Procedures

function LoadLib: boolean;

Types

PPChar = ˆPChar;
Thunspell_initialize = function(aff_file: PChar; dict_file: PChar): Pointer; cdecl;
Thunspell_uninitialize = procedure(spell: Pointer); cdecl;
Thunspell_spell = function(spell: Pointer; word: PChar): BOOL; cdecl;
Thunspell_suggest = function(spell: Pointer; word: PChar; var suggestions: PPChar): Integer; cdecl;
Thunspell_suggest_auto = function(spell: Pointer; word: PChar; var sugg: PPChar): Integer; cdecl;
Thunspell_suggest_free = procedure(spell: Pointer; sugg: PPChar; len: Integer); cdecl;
Thunspell_get_dic_encoding = function(spell: Pointer): PChar; cdecl;
Thunspell_add = function(spell: Pointer; word: PChar): Integer; cdecl;

Variables

hunspell_initialize: Thunspell_initialize;
hunspell_uninitialize: Thunspell_uninitialize;
hunspell_spell: Thunspell_spell;
hunspell_suggest: Thunspell_suggest;
hunspell_suggest_auto: Thunspell_suggest_auto;
hunspell_suggest_free: Thunspell_suggest_free;
hunspell_get_dic_encoding: Thunspell_get_dic_encoding;
hunspell_add: Thunspell_add;

Description

Functions and Procedures

function LoadLib: boolean;
 

Types

PPChar = ˆPChar;
 
Thunspell_initialize = function(aff_file: PChar; dict_file: PChar): Pointer; cdecl;
 
Thunspell_uninitialize = procedure(spell: Pointer); cdecl;
 
Thunspell_spell = function(spell: Pointer; word: PChar): BOOL; cdecl;
 
Thunspell_suggest = function(spell: Pointer; word: PChar; var suggestions: PPChar): Integer; cdecl;
 
Thunspell_suggest_auto = function(spell: Pointer; word: PChar; var sugg: PPChar): Integer; cdecl;
 
Thunspell_suggest_free = procedure(spell: Pointer; sugg: PPChar; len: Integer); cdecl;
 
Thunspell_get_dic_encoding = function(spell: Pointer): PChar; cdecl;
 
Thunspell_add = function(spell: Pointer; word: PChar): Integer; cdecl;
 

Variables

hunspell_initialize: Thunspell_initialize;
 
hunspell_uninitialize: Thunspell_uninitialize;
 
hunspell_spell: Thunspell_spell;
 
hunspell_suggest: Thunspell_suggest;
 
hunspell_suggest_auto: Thunspell_suggest_auto;
 
hunspell_suggest_free: Thunspell_suggest_free;
 
hunspell_get_dic_encoding: Thunspell_get_dic_encoding;
 
hunspell_add: Thunspell_add;
 

Author

Created

02-10-2010

Last Modified

2010/11/30 06:55:58 UTC


Generated by PasDoc 0.12.0 on 2011-01-24 07:59:29