LineParser

Class in Yarn.Markup

Inherits from System.Object

Summary

Parses text and produces markup information.

public sealed class LineParser : IDisposable

Fields

NameDescription
CharacterAttributeThe name of the implicitly-generated character attribute.
CharacterAttributeNamePropertyThe name of the ‘name’ property, on the implicitly-generated character attribute.
NoMarkupAttributeThe name of the attribute to use to indicate that no marker processing should occur.
ReplacementMarkerContentsThe name of the property in replacement attributes that contains the text of the attribute.
TrimWhitespacePropertyThe name of the property to use to signify that trailing whitespace should be trimmed if a tag had preceding whitespace or begins the line. This property must be a bool value.

Methods

NameDescription
DeregisterMarkerProcessor(string)Removes any marker processor associated with a given marker name.
Dispose()
ExpandSubstitutions(string,IList)Replaces all substitution markers in a text with the given substitution list.
ParseString(string,string,bool)Parses a string of text and produces a markup parse result.
RegisterMarkerProcessor(string,IAttributeMarkerProcessor)Registers an object as a marker processor for a given marker name.

Structs

NameDescription
MarkupDiagnosticRepresents a diagnostic message produced during markup parsing.