static string UnFormat(string theInput) { var result = new TextOutput(IsStandard); var scan = new Scanner(theInput); while (true) { scan.FindTokenPair("<", ">", ourValidTagFilter); result.Append(scan.Leader); if (scan.Body.IsEmpty) break; if (IsStandard) result.AppendTag(GetTag(scan.Body)); } return result.ToString(); }
static string UnFormat(string theInput) { var result = new TextOutput(IsStandard); var scan = new Scanner(theInput); while (true) { scan.FindTokenPair("<", ">", ourValidTagFilter); result.Append(scan.Leader); if (scan.Body.Length == 0) { break; } if (IsStandard) { result.AppendTag(GetTag(scan.Body)); } } return(result.ToString()); }
private string UnFormat(string theInput) { TextOutput result = new TextOutput(); Scanner scan = new Scanner(theInput); while (true) { scan.FindTokenPair("<", ">", ourValidTagFilter); result.Append(scan.Leader); if (scan.Body.Length == 0) break; if (FitVersionFixture.IsStandard) result.AppendTag(GetTag(scan.Body)); } return result.ToString(); }