Parser Class
Definition
Section titled “Definition”A BBCode string parser.
public class Parser : IParserInheritance object
Implements IParser
Constructors
Section titled “Constructors”Parser()
Section titled “Parser()”Creates a new instanace of the class.
public Parser()Properties
Section titled “Properties”A collection of tags used by the parser.
public Dictionary<string, Type> Tags { get; set; }Methods
Section titled “Methods”Parse(ReadOnlySpan<char>, int, ICellSurface?, ParseCommandStacks?)
Section titled “Parse(ReadOnlySpan<char>, int, ICellSurface?, ParseCommandStacks?)”Creates a colored string by parsing BBCode commands embedded in the string.
public ColoredString Parse(ReadOnlySpan<char> value, int surfaceIndex = -1, ICellSurface? surface = null, ParseCommandStacks? initialBehaviors = null)Parameters
Section titled “Parameters”value ReadOnlySpan<char>
The string to parse.
surfaceIndex int
Index of where this string will be printed.
surface ICellSurface
The surface the string will be printed to.
initialBehaviors ParseCommandStacks
Any initial defaults.
Returns
Section titled “Returns”ColoredString
The finalized string.