示例#1
0
 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();
 }
示例#2
0
        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());
        }
示例#3
0
 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();
 }