Enable or disable greedy regular expression searches.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_approx_regex_is_greedy_set( const HIG_REC_APPROX_REGEX higRecApproxRegex, const AT_BOOL isEnabled ); |
Name | Type | Description |
---|---|---|
higRecApproxRegex | const HIG_REC_APPROX_REGEX | The handle to an approximate regex instance. |
isEnabled | const AT_BOOL | The new toggle value. |
This function does not process image pixels.
Copy Code
|
|
---|---|
AT_ERRCOUNT errCount = 0 ; HIG_REC_APPROX_REGEX higRecApproxRegex = 0 ; IG_REC_approx_regex_create( &higRecApproxRegex ) ; errCount = IG_REC_approx_regex_is_greedy_set ( higRecApproxRegex , FALSE ) ; IG_REC_approx_regex_delete( higRecApproxRegex ) ; |
When enabled, if two or more matches are made at the same position, the longest match is reported.
The default value is TRUE.