Namespace: Rx – Class: CRxString – Header: Rx.Core/RxString.h

CRxString::FindFirstOf Method

C++
size_t FindFirstOf(const char* pcWhat, size_t nStartIdx, size_t nCount)

Searches the string for the first character that matches any of the characters specified in its arguments.

When nCount is specified, the search only includes characters at or after position nCount, ignoring any possible occurrences before nCount.

Parameters

[const char*] pcWhat

String containing the characters to search for in this string.

[size_t] nStartIdx

(optional) Position of the first character in the string to be taken into consideration for possible matches.

[size_t] nCount

(optional) Length of sequence of characters to search for.

Returns

size_t

The position of the first occurrence in the string of any of the characters searched for. If the content is not found, the member value CRxString::npos is returned.