TextParser

Parses text from XML/ETML

See "ETML.md" for info.

Constructors

this
this()

Constructor with no arguments

this
this(StringType _input)

Creates a new instance with a select string input.

Members

Functions

defaultFormatting
CharacterFormattingInfo!BitmapType defaultFormatting(CharacterFormattingInfo!BitmapType val)

Sets the default formatting

defaultFormatting
CharacterFormattingInfo!BitmapType defaultFormatting()

Gets the default formatting

input
StringType input()

Sets/gets the input

output
Text!BitmapType output()

Returns the root/output element

parse
Text!BitmapType parse()

Parses the formatted text, then returns the output.

reset
void reset()

Resets the output, but keeps the public parameters. Input must be set to default or to new target separately.

Variables

chrFrmt
CharacterFormattingInfo!BitmapType[] chrFrmt;

All character format, that has been parsed so far

fontsets
Fontset!BitmapType[string] fontsets;

Fontset name association table

icons
BitmapType[string] icons;

Icon name association table

Meta