API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Language Settings Functions > IG_REC_filterplus_get |
Gets the FilterPlus characters setting.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_filterplus_get( LPWSTR pFilterPlus, AT_INT nBufferSize ); |
Name | Type | Description |
---|---|---|
pFilterPlus | LPWSTR | Pointer to a buffer to get the current FilterPlus character setting in UNICODE. |
nBufferSize | AT_INT | Specifies the size of the pFilterPlus buffer in bytes. It must be large enough to hold all the characters and the terminating zero. |
This function does not process image pixels.
Copy Code
|
|
---|---|
AT_ERRCOUNT ErrCount = 0; LPWSTR lpwszBuffer = 0; AT_INT iBufSize = 1024; AT_INT iFilterPlusLength = 0; enumIGRecChrFilter eFilter = {IG_REC_FILTER_ALPHA | IG_REC_FILTER_DIGIT | IG_REC_FILTER_PLUS}; ErrCount += IG_REC_default_filter_set(eFilter); ErrCount += IG_REC_filterplus_set(L"-|+="); ErrCount += IG_REC_filterplus_length_get(&iBufSize); iBufSize = (iBufSize + 1) * sizeof(AT_WCHAR); lpwszBuffer = (LPWSTR) malloc(iBufSize); if(lpwszBuffer) { ErrCount += IG_REC_filterplus_get(lpwszBuffer, iBufSize); free(lpwszBuffer); } |