ReadOnlySpanPolyfillExtensionIndexOfAnyExcept(ReadOnlySpanChar, Char) Method
Returns the index of the first character in the
read-only span that is not equal to value.
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.3+0b4e3cc14d7870504a77e224d298b921bfc6f2ee
public static int IndexOfAnyExcept(
this ReadOnlySpan<char> span,
char value
)
<ExtensionAttribute>
Public Shared Function IndexOfAnyExcept (
span As ReadOnlySpan(Of Char),
value As Char
) As Integer
public:
[ExtensionAttribute]
static int IndexOfAnyExcept(
ReadOnlySpan<wchar_t> span,
wchar_t value
)
[<ExtensionAttribute>]
static member IndexOfAnyExcept :
span : ReadOnlySpan<char> *
value : char -> int
- span ReadOnlySpanChar
- The read-only span to search.
- value Char
- The Char to avoid.
Int32The index in the span of the first occurrence of any character other
than
value. If all of the characters are
value,
returns -1.In Visual Basic and C#, you can call this method as an instance method on any object of type
ReadOnlySpanChar. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
The method performs an ordinal character comparison.