Table of Contents

Class AnsiStringParser

Namespace
Microlithix.Text.Ansi
Assembly
AnsiParser.dll

Parses strings containing ANSI escape code sequences into a structured representation suitable for higher-level processing.

public class AnsiStringParser
Inheritance
AnsiStringParser
Inherited Members

Remarks

The UTF-16 character strings to be parsed may contain printable text, control codes, and ANSI escape sequences. They will be parsed into elements implementing the IAnsiStringParserElement interface.

Note that this module implements a parser only, and not an interpreter. The interpretation of the elements is domain-dependent and left to the consuming application.

Constructors

AnsiStringParser()

Creates a new AnsiStringParser instance with default settings.

AnsiStringParser(AnsiParserSettings)

Creates a new AnsiStringParser instance with specified settings.

Methods

Parse(string)

Parses a string into an ordered list of elements.

PrintableString(List<IAnsiStringParserElement>)

Converts a list of parsed elements into a string containing only the printable characters.

Reset()

Resets the parser to its initial state.