Navigation

Operators and Keywords

Function List:

C++ API

: idx = strchr (str, chars)
: idx = strchr (str, chars, n)
: idx = strchr (str, chars, n, direction)
: [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