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
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
ProcessedTags
All processed tags.
public readonly ReadOnlyCollection<KeyValuePair<TMPEffectTagIndices, TMPEffectTag>> ProcessedTags
Field Value
Methods
Process(TagInfo, int, int)
Process the given tag.
public bool Process(ParsingUtility.TagInfo tagInfo, int textIndex, int orderAtIndex)
Parameters
tagInfo
ParsingUtility.TagInfoInformation about the tag.
textIndex
intThe index of the tag within its source text.
orderAtIndex
intThe 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()