Looks for the first occurrence of any element of the specified array within the source string.

Syntax

IppStatus ippsFindCAny_8u(const Ipp8u* pSrc, int len, const Ipp8u* pAnyOf, int lenAnyOf, int* pIndex);

IppStatus ippsFindRevCAny_8u(const Ipp8u* pSrc, int len, const Ipp8u* pAnyOf, int lenAnyOf, int* pIndex);

Include Files

ippch.h

Domain Dependencies

Headers: ippcore.h, ippvm.h, ipps.h

Libraries: ippcore.lib, ippvm.lib, ipps.lib

Parameters

pSrc

Pointer to the source string.

len

Number of elements in the source string.

pAnyOf

Pointer to the array containing reference elements.

lenAnyOf

Number of elements in the array.

pIndex

Pointer to the result index.

Description

These functions search through the source string pSrc for the first occurrence of any reference element from the specified array pAnyOf. The position of this element is stored in pIndex. If no matching element is found, then pIndex is set to -1. The function ippsFindRevCAny searches the source string in the reverse direction. The search is case-sensitive.

Code example  shows how to use the function ippsFindCAny_8u.

Return Values

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 or lenAnyOf is negative.
有关编译器优化的更完整信息,请参阅优化通知