All pages
Powered by GitBook
1 of 2

Loading...

Loading...

IAttributeMarkerProcessor

Interface in Yarn.Markup

Summary

Provides a mechanism for producing replacement text for a marker.

Methods

Name
Description

ProcessReplacementMarker(MarkupAttribute,System.Text.StringBuilder,List,string)

Produces replacement text for a marker.

See Also

  • LineParser.RegisterMarkerProcessor(string,IAttributeMarkerProcessor): Registers an object as a marker processor for a given marker name.

  • LineParser.DeregisterMarkerProcessor(string): Removes any marker processor associated with a given marker name.

ProcessReplacementMarker(MarkupAttribute,System.Text.StringBuilder,List<MarkupAttribute>,string)

Method in IAttributeMarkerProcessor

Summary

Produces replacement text for a marker.

Parameters

Name
Description

Yarn.Markup.MarkupAttribute marker

The marker to process into replacement text.

System.Text.StringBuilder childBuilder

A System.Text.StringBuilder that contains the child text contained within marker . Use the methods on this stringbuilder to produce any text needed from this marker.

System.Collections.Generic.List<Yarn.Markup.MarkupAttribute> childAttributes

The child attributes of marker .

string localeCode

A BCP-47 locale code that represents the locale in which any processing should take place.

Returns

The collection of diagnostics produced during processing, if any.

public interface IAttributeMarkerProcessor
public List<LineParser.MarkupDiagnostic> ProcessReplacementMarker(MarkupAttribute marker, System.Text.StringBuilder childBuilder, List<MarkupAttribute> childAttributes, string localeCode);