Navigation

Operators and Keywords

Function List:

C++ API

Function File: idx = strchr (str, chars)
Function File: idx = strchr (str, chars, n)
Function File: idx = strchr (str, chars, n, direction)
Function File: [i, j] = strchr (…)

Search for the string str for occurrences of characters from the set chars.

The return value(s), as well as the n and direction arguments behave identically as in find.

This will be faster than using regexp in most cases.

See also: find.

Package: octave