Replaces all occurrences of a specified element in the source string with another element.
IppStatus ippsReplaceC_8u(const Ipp8u* pSrc, Ipp8u* pDst, int len, Ipp8u oldVal, Ipp8u newVal);
IppStatus ippsReplaceC_16u(const Ipp16u* pSrc, Ipp16u* pDst, int len, Ipp16u oldVal, Ipp16u newVal);
pSrc |
Pointer to the source string. |
len |
Number of elements in the source string. |
pDst |
Pointer to the destination string. |
oldVal |
Element to be replaced. |
newVal |
Element that replaces oldVal. |
The function ippsReplaceC is declared in the ippch.h file. This function replaces all occurrences of a specified element oldVal in the source string pSrc with another specified element newVal, and stores the new string in the pDst. The operation is case-sensitive.
Example below shows how to use the function ippsReplaceC_8u.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error condition if at least one of the specified pointers is NULL. |
ippStsLengthErr |
Indicates an error condition if len is negative. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.