Class ReadOnlySpan
Extensions for the ReadOnlySpan<T> type.
Inherited Members
Namespace: SadConsole.Extensions
Assembly: SadConsole.dll
Syntax
public static class ReadOnlySpan
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. |