コード例 #1
0
        public static IEnumerable <IHtmlMarkup> Parse(this IHtmlSeperator seperator, string content)
        {
            var c = new HtmlContent(content);

            c.JumpLast();
            return(seperator.Parse(c));
        }
コード例 #2
0
        public static bool CanParse(this IHtmlSeperator seperator, string content)
        {
            var c = new HtmlContent(content);

            c.JumpLast();
            return(seperator.CanParse(c));
        }
コード例 #3
0
ファイル: ElementTest.cs プロジェクト: hknyuc/html.rt
 private static IHtmlSeperator Iterate(IHtmlSeperator seperator)
 {
     return(new SeperatorIterator(seperator));
 }
コード例 #4
0
ファイル: SeperatorDecorator.cs プロジェクト: hknyuc/html.rt
 public SeperatorDecorator(IHtmlSeperator seperator)
 {
     this._seperator = seperator;
 }
コード例 #5
0
 public HtmlCodeSeperator()
 {
     this._elementSeperator = new ElementSeperator();
 }
コード例 #6
0
 public HtmlCodeSeperator(IHtmlSeperator mainSeperator)
 {
     this._elementSeperator = new ElementSeperator(mainSeperator);
 }
コード例 #7
0
 public static bool CanParse(this IHtmlSeperator seperator, IHtmlContent content)
 {
     return(seperator.Parse(content).IsSuccess);
 }
コード例 #8
0
 public static IEnumerable <IHtmlMarkup> ParseFromOrigin(this IHtmlSeperator seperator, string content)
 {
     return(seperator.Parse(new HtmlContent(content)));
 }
コード例 #9
0
 public ElementSeperator()
 {
     this._mainSeperator = new EmptySeperator();
 }
コード例 #10
0
 public ElementSeperator(IHtmlSeperator seperator)
 {
     this._mainSeperator = seperator;
 }
コード例 #11
0
 public SeperatorIterator(IHtmlSeperator seperator)
 {
     this._seperator = seperator;
 }
コード例 #12
0
 public MustTagCloseDecorator(string[] tagNames, IHtmlSeperator seperator) : base(seperator)
 {
     this._tagNames = tagNames;
 }