RegExpMultiAdd

Adds the specified pattern to the multiple patterns database.

Syntax

IppStatus ippsRegExpMultiAdd(const IppRegExpState* pRegExpState, Ipp32u regexpID, IppRegExpMultiState* pState);

Parameters

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.

Description

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.

Return Values

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.

Submit feedback on this help topic

Copyright © 2000 - 2010, Intel Corporation. All rights reserved.