Show / Hide Table of Contents

Class ReadOnlySpanExtensions

Extensions for the ReadOnlySpan<T> type.

Inheritance
object
ReadOnlySpanExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.Extensions
Assembly: SadConsole.dll
Syntax
public static class ReadOnlySpanExtensions

Methods

Next(ReadOnlySpan<char>, char, out int)

Gets the next instnace of the specified character in a char span.

Declaration
public static bool Next(this ReadOnlySpan<char> span, char value, out int index)
Parameters
Type Name Description
ReadOnlySpan<char> span

The span.

char value

The character to find.

int index

The index of the character.

Returns
Type Description
bool

True when the character is found.

In this article

Back to top

Back to top Generated by DocFX