Show / Hide Table of Contents

Interface IParser

Describes a parser

Namespace: SadConsole.StringParser
Assembly: SadConsole.dll
Syntax
public interface IParser

Methods

Parse(ReadOnlySpan<char>, int, ICellSurface?, ParseCommandStacks?)

Generates a colored string from a string of characters.

Declaration
ColoredString Parse(ReadOnlySpan<char> value, int surfaceIndex = -1, ICellSurface? surface = null, ParseCommandStacks? initialBehaviors = null)
Parameters
Type Name Description
ReadOnlySpan<char> value

The characters to process.

int surfaceIndex

The index on the backing surface, if it applies.

ICellSurface surface

The backing surface the parser is interacting with, if it applies.

ParseCommandStacks initialBehaviors

A set of known behaviors to apply to the parser.

Returns
Type Description
ColoredString

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX