StringSearch.locateCharSetT

Locates the first occurrence of any of the characters of charset in str. Passing charset as template parameter makes this method somewhat more efficient when used very frequently.

struct StringSearch(bool wide_char = false)
static
size_t
locateCharSetT
(
istring charset
)
(
in Char[] str
,
size_t start = 0
)

Parameters

str Char[]

string to scan

start size_t

search start index

Return Value

Type: size_t

index of first occurrence of any of the characters of charset in str

Meta