📄 aspellheadersdyn.pas
字号:
Taspell_config_have=function(ths:AspellConfig; key:PChar):integer; cdecl;
{* returns null on error *}
Taspell_config_retrieve=function(ths:AspellConfig; key:PChar):PChar; cdecl;
Taspell_config_retrieve_list=function(ths:AspellConfig; key:PChar; lst:AspellMutableContainer):integer; cdecl;
{* return -1 on error, 0 if false, 1 if true *}
Taspell_config_retrieve_bool=function(ths:AspellConfig; key:PChar):integer; cdecl;
{* return -1 on error *}
Taspell_config_retrieve_int=function(ths:AspellConfig; key:PChar):integer; cdecl;
{******************************** error ********************************}
{**************************** can have error ****************************}
Taspell_error_number=function(ths:AspellCanHaveError):Word; cdecl;
Taspell_error_message=function(ths:AspellCanHaveError):PChar; cdecl;
Taspell_error=function(ths:AspellCanHaveError):AspellError; cdecl;
Tdelete_aspell_can_have_error=procedure(ths:AspellCanHaveError); cdecl;
{******************************* speller *******************************}
Tnew_aspell_speller=function(config:AspellConfig):AspellCanHaveError; cdecl;
Tto_aspell_speller=function(obj:AspellCanHaveError):AspellSpeller; cdecl;
Tdelete_aspell_speller=procedure(ths:AspellSpeller); cdecl;
Taspell_speller_error_number=function(ths:AspellSpeller):Word; cdecl;
Taspell_speller_error_message=function(ths:AspellSpeller):PChar; cdecl;
Taspell_speller_error=function(ths:AspellSpeller):AspellError; cdecl;
Taspell_speller_config=function(ths:AspellSpeller):AspellConfig; cdecl;
{* returns 0 if it is not in the dictionary,
* 1 if it is, or -1 on error. *}
Taspell_speller_check=function(ths:AspellSpeller; word_:PChar; word_size:integer):integer; cdecl;
Taspell_speller_add_to_personal=function(ths:AspellSpeller; word:PChar; word_size:integer):integer; cdecl;
Taspell_speller_add_to_session=function(ths:AspellSpeller; word:PChar; word_size:integer):integer; cdecl;
Taspell_speller_personal_word_list=function(ths:AspellSpeller):AspellWordList; cdecl;
Taspell_speller_session_word_list=function(ths:AspellSpeller):AspellWordList; cdecl;
Taspell_speller_main_word_list=function(ths:AspellSpeller):AspellWordList; cdecl;
Taspell_speller_save_all_word_lists=function(ths:AspellSpeller):integer; cdecl;
Taspell_speller_clear_session=function(ths:AspellSpeller):integer; cdecl;
{* Return null on error.
* the word list returned by suggest is only valid until the next
* call to suggest *}
Taspell_speller_suggest=function(ths:AspellSpeller; word_:PChar; word_size:integer):AspellWordList; cdecl;
Taspell_speller_store_replacement=function(ths:AspellSpeller; mis:PChar; mis_size:integer; cor:PChar; cor_size:integer):integer; cdecl;
{******************************** filter ********************************}
Tdelete_aspell_filter=procedure(ths:AspellFilter); cdecl;
Taspell_filter_error_number=function(ths:AspellFilter):Word; cdecl;
Taspell_filter_error_message=function(ths:AspellFilter):PChar; cdecl;
Taspell_filter_error=function(ths:AspellFilter):AspellError; cdecl;
Tto_aspell_filter=function(obj:AspellCanHaveError):AspellFilter; cdecl;
{*************************** document checker ***************************}
Tdelete_aspell_document_checker=procedure(ths:AspellDocumentChecker); cdecl;
Taspell_document_checker_error_number=function(ths:AspellDocumentChecker):Word; cdecl;
Taspell_document_checker_error_message=function(ths:AspellDocumentChecker):PChar; cdecl;
Taspell_document_checker_error=function(ths:AspellDocumentChecker):AspellError; cdecl;
{* Creates a new document checker.
* The speller class is expect to last until this
* class is destroyed.
* If config is given it will be used to overwide
* any relevent options set by this speller class.
* The config class is not once this function is done.
* If filter is given then it will take ownership of
* the filter class and use it to do the filtering.
* You are expected to free the checker when done. *}
Tnew_aspell_document_checker=function(speller:AspellSpeller):AspellCanHaveError; cdecl;
Tto_aspell_document_checker=function(obj:AspellCanHaveError):AspellDocumentChecker; cdecl;
{* reset the internal state of the filter.
* should be called whenever a new document is being filtered *}
Taspell_document_checker_reset=procedure(ths:AspellDocumentChecker); cdecl;
{* process a string
* The string passed in should only be split on white space
* characters. Furthermore, between calles to reset, each string
* should be passed in exactly once and in the order they appeared
* in the document. Passing in stings out of order, skipping
* strings or passing them in more than once may lead to undefined
* results. *}
Taspell_document_checker_process=procedure(ths:AspellDocumentChecker; str:PChar; size:integer); cdecl;
{* returns the next misspelled word in the processed string
* if there are no more misspelled word than token.word
* will be null and token.size will be 0 *}
Taspell_document_checker_next_misspelling=function(ths:AspellDocumentChecker):AspellToken; cdecl;
{* returns the underlying filter class *}
Taspell_document_checker_filter=function(ths:AspellDocumentChecker):AspellFilter; cdecl;
{****************************** word list ******************************}
Taspell_word_list_empty=function(ths:AspellWordList):integer; cdecl;
Taspell_word_list_size=function(ths:AspellWordList):Word; cdecl;
Taspell_word_list_elements=function(ths:AspellWordList):AspellStringEnumeration; cdecl;
{************************** string enumeration **************************}
Tdelete_aspell_string_enumeration=procedure(ths:AspellStringEnumeration); cdecl;
Taspell_string_enumeration_clone=function(ths:AspellStringEnumeration):AspellStringEnumeration; cdecl;
Taspell_string_enumeration_assign=procedure(ths:AspellStringEnumeration; other:AspellStringEnumeration); cdecl;
Taspell_string_enumeration_at_end=function(ths:AspellStringEnumeration):integer; cdecl;
Taspell_string_enumeration_next=function(ths:AspellStringEnumeration):PChar; cdecl;
{********************************* info *********************************}
Tget_aspell_module_info_list=function(config:AspellConfig):AspellModuleInfoList; cdecl;
Taspell_module_info_list_empty=function(ths:AspellModuleInfoList):integer; cdecl;
Taspell_module_info_list_size=function(ths:AspellModuleInfoList):Word; cdecl;
Taspell_module_info_list_elements=function(ths:AspellModuleInfoList):AspellModuleInfoEnumeration; cdecl;
Tget_aspell_dict_info_list=function(config:AspellConfig):AspellDictInfoList; cdecl;
Taspell_dict_info_list_empty=function(ths:AspellDictInfoList):integer; cdecl;
Taspell_dict_info_list_size=function(ths:AspellDictInfoList):Word; cdecl;
Taspell_dict_info_list_elements=function(ths:AspellDictInfoList):AspellDictInfoEnumeration; cdecl;
Taspell_module_info_enumeration_at_end=function(ths:AspellModuleInfoEnumeration):integer; cdecl;
Taspell_module_info_enumeration_next=function(ths:AspellModuleInfoEnumeration):AspellModuleInfo; cdecl;
Tdelete_aspell_module_info_enumeration=procedure(ths:AspellModuleInfoEnumeration); cdecl;
Taspell_module_info_enumeration_clone=function(ths:AspellModuleInfoEnumeration):AspellModuleInfoEnumeration; cdecl;
Taspell_module_info_enumeration_assign=procedure(ths:AspellModuleInfoEnumeration; other:AspellModuleInfoEnumeration); cdecl;
Taspell_dict_info_enumeration_at_end=function(ths:AspellDictInfoEnumeration):integer; cdecl;
Taspell_dict_info_enumeration_next=function(ths:AspellDictInfoEnumeration):AspellDictInfo; cdecl;
Tdelete_aspell_dict_info_enumeration=procedure(ths:AspellDictInfoEnumeration); cdecl;
Taspell_dict_info_enumeration_clone=function(ths:AspellDictInfoEnumeration):AspellDictInfoEnumeration; cdecl;
Taspell_dict_info_enumeration_assign=procedure(ths:AspellDictInfoEnumeration; other:AspellDictInfoEnumeration); cdecl;
{***************************** string list *****************************}
Tnew_aspell_string_list=function:AspellStringList; cdecl;
Taspell_string_list_empty=function(ths:AspellStringList):integer; cdecl;
Taspell_string_list_size=function(ths:AspellStringList):Word; cdecl;
Taspell_string_list_elements=function(ths:AspellStringList):AspellStringEnumeration; cdecl;
Taspell_string_list_add=function(ths:AspellStringList; to_add:PChar):integer; cdecl;
Taspell_string_list_remove=function(ths:AspellStringList; to_rem:PChar):integer; cdecl;
Taspell_string_list_clear=procedure(ths:AspellStringList); cdecl;
Taspell_string_list_to_mutable_container=function(ths:AspellStringList):AspellMutableContainer; cdecl;
Tdelete_aspell_string_list=procedure(ths:AspellStringList); cdecl;
Taspell_string_list_clone=function(ths:AspellStringList):AspellStringList; cdecl;
Taspell_string_list_assign=procedure(ths:AspellStringList; other:AspellStringList); cdecl;
{****************************** string map ******************************}
Tnew_aspell_string_map=function:AspellStringMap; cdecl;
Taspell_string_map_add=function(ths:AspellStringMap; to_add:PChar):integer; cdecl;
Taspell_string_map_remove=function(ths:AspellStringMap; to_rem:PChar):integer; cdecl;
Taspell_string_map_clear=procedure(ths:AspellStringMap); cdecl;
Taspell_string_map_to_mutable_container=function(ths:AspellStringMap):AspellMutableContainer; cdecl;
Tdelete_aspell_string_map=procedure(ths:AspellStringMap); cdecl;
Taspell_string_map_clone=function(ths:AspellStringMap):AspellStringMap; cdecl;
Taspell_string_map_assign=procedure(ths:AspellStringMap; other:AspellStringMap); cdecl;
Taspell_string_map_empty=function(ths:AspellStringMap):integer; cdecl;
Taspell_string_map_size=function(ths:AspellStringMap):Word; cdecl;
Taspell_string_map_elements=function(ths:AspellStringMap):AspellStringPairEnumeration; cdecl;
{* Insert a new element.
* Will NOT overright an existing entry.
* Returns false if the element already exists. *}
Taspell_string_map_insert=function(ths:AspellStringMap; key:PChar; value:PChar):integer; cdecl;
{* Insert a new element.
* Will overright an existing entry.
* Always returns true. *}
Taspell_string_map_replace=function(ths:AspellStringMap; key:Pchar; value:PChar):integer; cdecl;
{* Looks up an element.
* Returns null if the element did not exist.
* Returns an empty string if the element exists but has a null value.
* Otherwises returns the value *}
Taspell_string_map_lookup=function(ths:AspellStringMap; key:PChar):PChar; cdecl;
{***************************** string pair *****************************}
{*********************** string pair enumeration ***********************}
Taspell_string_pair_enumeration_at_end=function(ths:AspellStringPairEnumeration):integer; cdecl;
Taspell_string_pair_enumeration_next=function(ths:AspellStringPairEnumeration):AspellStringPair; cdecl;
Tdelete_aspell_string_pair_enumeration=procedure(ths:AspellStringPairEnumeration); cdecl;
Taspell_string_pair_enumeration_clone=function(ths:AspellStringPairEnumeration):AspellStringPairEnumeration; cdecl;
Taspell_string_pair_enumeration_assign=procedure(ths:AspellStringPairEnumeration; other:AspellStringPairEnumeration); cdecl;
var
aspell_mutable_container_add : Taspell_mutable_container_add;
aspell_mutable_container_remove : Taspell_mutable_container_remove;
aspell_mutable_container_clear : Taspell_mutable_container_clear;
aspell_mutable_container_to_mutable_container : Taspell_mutable_container_to_mutable_container;
aspell_key_info_enumeration_at_end : Taspell_key_info_enumeration_at_end;
aspell_key_info_enumeration_next : Taspell_key_info_enumeration_next;
delete_aspell_key_info_enumeration : Tdelete_aspell_key_info_enumeration;
aspell_key_info_enumeration_clone : Taspell_key_info_enumeration_clone;
aspell_key_info_enumeration_assign : Taspell_key_info_enumeration_assign;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -