Пример #1
0
 private static List<WikiPageSection> SubsectionsList(WikiPageSection section,
     List<WikiPageSection> aggregator)
 {
     Regex wikiLinkRE = new Regex(@"\[{2}(.+?)(\|.+?)?]{2}");
     Match m = wikiLinkRE.Match(section.Title);
     if (m.Success)
     {
         aggregator.Add(section);
     }
     return section.Reduce(aggregator, SubsectionsList);
 }
Пример #2
0
 private static List<WikiPageSection> SubsectionsList(WikiPageSection section,
     List<WikiPageSection> aggregator)
 {
     Match m = _wikiLinkRE.Match(section.Title);
     if (m.Success)
     {
         aggregator.Add(section);
     }
     return section.Reduce(aggregator, SubsectionsList);
 }
Пример #3
0
 private string SubsectionsList(WikiPageSection section,
     string aggregator)
 {
     Regex wikiLinkRE = new Regex(@"\[{2}(.+?)(\|.+?)?]{2}");
     Match m = wikiLinkRE.Match(section.Title);
     if (m.Success)
     {
         if (_l10i.Processor != null)
         {
             aggregator = aggregator + " • " + _l10i.Processor(section).Trim();
         }
         else
         {
             aggregator = aggregator + " • " + section.Title.Trim();
         }
     }
     aggregator = section.Reduce(aggregator, SubsectionsList);
     return aggregator;
 }