private void HandleEmptyListCase(StringPart part, TagType typeToReplace) { if (part.TagType != typeToReplace) { _tmpOutput.Add(part); } else { if (part.ActionType != ActionType.Close) { _tmpListIsEmpty = false; _tmpList.Add(part); } else { _tmpOutput.Add(new StringPart(part.Value)); } } }
private void HandleFilledListCase(StringPart part, TagType typeToReplace) { if (part.TagType != typeToReplace) { _tmpList.Add(part); } else { if (part.ActionType != ActionType.Open) { UploadToTmpOutput(typeToReplace); ClearTmpList(); _tmpListIsEmpty = true; } else { _tmpList.Add(new StringPart(part.Value)); } } }
public SubstringParser(char escapeSymbol = '/') { EscapeSymbol = escapeSymbol; _result = new List <StringPart>(); _lastStringPart = null; }