Table of Contents

Class TagProcessor

Namespace
TMPEffects.TextProcessing
Assembly
TMPEffects.dll

Handles processing of, and stores successfully processed tags.

public sealed class TagProcessor
Inheritance
TagProcessor
Inherited Members

Constructors

TagProcessor(ITMPTagValidator)

public TagProcessor(ITMPTagValidator validator)

Parameters

validator ITMPTagValidator

Fields

ALL_KEYWORD

Tags with this keyword as name will close all open tags of this tag processor.

public const string ALL_KEYWORD = "all"

Field Value

string

MOST_RECENT_KEYWORD

Tags with this keyword as name will close teh most recent open tag of this tag processor.

public const string MOST_RECENT_KEYWORD = ""

Field Value

string

ProcessedTags

All processed tags.

public readonly ReadOnlyCollection<KeyValuePair<TMPEffectTagIndices, TMPEffectTag>> ProcessedTags

Field Value

ReadOnlyCollection<KeyValuePair<TMPEffectTagIndices, TMPEffectTag>>

Methods

Process(TagInfo, int, int)

Process the given tag.

public bool Process(ParsingUtility.TagInfo tagInfo, int textIndex, int orderAtIndex)

Parameters

tagInfo ParsingUtility.TagInfo

Information about the tag.

textIndex int

The index of the tag within its source text.

orderAtIndex int

The order at the index of the tag withing its source text.

Returns

bool

true if tag is successfully processed, false otherwise.

Reset()

Reset this TagProcessor.

public void Reset()