Adds the specified pattern to the multiple patterns database.
IppStatus ippsRegExpMultiAdd(const IppRegExpState* pRegExpState, Ipp32u regexpID, IppRegExpMultiState* pState);
pRegExpState |
Pointer to the compiled pattern state structure. |
regexpID |
Pattern ID, must be not equal to zero. |
pState |
Pointer to the state structure for the multi-pattern search engine. |
The function ippsRegExpMultiAdd is declared in the ippch.h file. This function adds a new pattern regexpID to the pattern database in the state structure pState for multiple patterns search engine. The pattern state structure pRegExpState must be compiled by the functions ippsRegExpInit or ippsRegExpInitAlloc beforehand.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when the pRegExpState or pState pointer is NULL. |
ippStsBadArgErr |
Indicates an error when regexpID is equal to zero; or pattern with such ID exists in the database. |
ippStsMemAllocErr |
Indicates an error when number of patterns is greater than maximum pattern number the database is initialized for. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.