/// ------------------------------------------------------------------------------------
/// <summary>
///
/// </summary>
/// ------------------------------------------------------------------------------------
public void ProcessToken(ITextToken tok, string desiredKey, List <TextTokenSubstring> result)
{
if (AnyFoundPairsClosedByPara && tok.IsParagraphStart &&
!m_styleCategorizer.IsPoeticStyle(tok.ParaStyleName))
{
FinalizeResult(desiredKey, result);
}
for (int i = 0; i < tok.Text.Length; i++)
{
string cc = tok.Text.Substring(i, 1);
if (m_pairList.BelongsToPair(cc))
{
StoreFoundPairToken(tok, i);
RemoveMatchedPunctAtEndOfFirstWordInIntroOutline(tok, i);
RemoveIfMatchedPairFound();
RecordOverlappingPairs();
}
}
}