ImageGear Professional DLL v17.1 for Windows Accusoft
IG_REC_approx_regex_is_greedy_get
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Approx Regex Functions > IG_REC_approx_regex_is_greedy_get

Glossary Item Box

Identifies whether greedy regular expression searches are enabled or disabled.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_approx_regex_is_greedy_get(
   const HIG_REC_APPROX_REGEX higRecApproxRegex,
   const LPAT_BOOL lpIsEnabled
);

Arguments:

higRecApproxRegex The handle to an approximate regex instance.
lpIsEnabled The current toggle value.

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.

Remarks:

When enabled, if two or more matches are made at the same position, the longest match is reported.

The default value is TRUE.

Example:

  Copy Code
AT_ERRCOUNT errCount = 0 ;
BOOL is_greedy = 0 ;
HIG_REC_APPROX_REGEX higRecApproxRegex = 0 ;

IG_REC_approx_regex_create( &higRecApproxRegex ) ;
errCount = IG_REC_approx_regex_is_greedy_get
                         ( higRecApproxRegex,
                           &is_greedy 
                         ) ;
IG_REC_approx_regex_delete( higRecApproxRegex ) ;

See Also

HIG_REC_APPROX_REGEX

©2012. Accusoft Corporation. All Rights Reserved.