Deletes a word from the user dictionary currently opened for editing by the IG_REC_UD_edit_open function.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_UD_item_delete( LPCSTR pSection, LPCWSTR pUDitem, enumIGRecUDItemAttribute itemattrib ); |
Name | Type | Description |
---|---|---|
pSection | LPCSTR | Name of the section from where the item should be deleted. |
pUDitem | LPCWSTR | Pointer to a UNICODE string containing the word to be deleted. (The string is terminated with a double zero.) |
itemattrib | enumIGRecUDItemAttribute | Attribute for the UDitem to be deleted. |
This function does not process image pixels.
Copy Code
|
|
---|---|
AT_ERRCOUNT ErrCount = 0; ErrCount += IG_REC_UD_set(NULL, NULL); ErrCount += IG_REC_UD_edit_open(); ErrCount += IG_REC_UD_item_add("SampleSection", L"[A-Z]", IG_REC_UD_ITEM_ATTR_LITERAL_STRING); ErrCount += IG_REC_UD_item_add("SampleSection", L"[A-Z]", IG_REC_UD_ITEM_ATTR_REGULAR_EXPRESSION); ErrCount += IG_REC_UD_item_delete("SampleSection", L"[A-Z]", IG_REC_UD_ITEM_ATTR_LITERAL_STRING); ErrCount += IG_REC_UD_edit_close(); |
The item to be deleted is specified together with the pUDitem and itemattrib parameters and is searched under the pSection section only.