Assigns a new approximate regex recognize word callback.
Declaration:
Copy Code | |
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_approx_regex_recognize_word_cb_set( const HIG_REC_APPROX_REGEX higRecApproxRegex, LPFNIG_REC_APPROX_REGEX_RECOGNIZE_WORD_CB const lpfnCallback, LPVOID const lpUserData ); |
Arguments:
Name | Type | Description |
higRecApproxRegex | const HIG_REC_APPROX_REGEX | The handle to an approximate regex instance. |
lpfnCallback | LPFNIG_REC_APPROX_REGEX_RECOGNIZE_WORD_CB | The callback function to invoke after each word is recognized. |
lpUserData | LPVOID | The anonymous data to pass to the callback function. |
Return Value:
The number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.Supported Raster Image Formats:
This function does not process image pixels.
Example:
Copy Code | |
---|---|
AT_ERRCOUNT errCount = 0 ; HIG_REC_APPROX_REGEX higRecApproxRegex = 0 ; AT_UINT user_data = 0 ; IG_REC_approx_regex_create( &higRecApproxRegex ) ; errCount = IG_REC_approx_regex_recognize_word_cb_set ( higRecApproxRegex, &on_recognize_word, &user_data ) ; IG_REC_approx_regex_delete( higRecApproxRegex ) ; |
Remarks:
This callback is invoked for each recognized word prior to searching for pattern matches.