Show / Hide Table of Contents

Method ExtString.IndexOfNot


Overload

Finds the first character not specified in chars. Returns its index, or -1 if not found.

public static int IndexOfNot(this ReadOnlySpan<char> t, string chars)
Parameters
t  (ReadOnlySpan<char>)

This string.

chars  (string)

Characters.

Returns
int
Exceptions
ArgumentNullException

chars is null.