RegExpReplaceInit

Initialize the state structure for the find-replace operation.

Syntax

IppStatus ippsRegExpReplaceInit(const Ipp8u* pSrcReplacement, IppRegExpReplaceState* pReplaceState);

Parameters

pSrcReplacement

Pointer to the source null-terminated replace pattern.

pReplaceState

Pointer to the state structure for the find and replace operation.

Description

The function ippsRegExpReplaceInit is declared in the ippch.h file. This function initializes a state structure pState for the find and replace operation in the external buffer. The size of this buffer must be computed previously by calling the function ippsRegExpReplaceGetSize.

Caution iconCaution

Value of the parameter pSrcReplacement must be the same as used for the ippsRegExpReplaceGetSize function call.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pReplaceState or pSrcReplacement pointer is NULL.

Submit feedback on this help topic

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