コード例 #1
0
ファイル: Style.cs プロジェクト: AlfieJ/TidyNet
 public Style(string tag, string tagClass, string properties, Style next)
 {
     _tag = tag;
     _tagClass = tagClass;
     _properties = properties;
     _next = next;
 }
コード例 #2
0
ファイル: Clean.cs プロジェクト: AlfieJ/TidyNet
        private string FindStyle(Lexer lexer, string tag, string properties)
        {
            Style style;

            for (style = lexer.styles; style != null; style = style.Next)
            {
                if (style.Tag.Equals(tag) && style.Properties.Equals(properties))
                {
                    return style.TagClass;
                }
            }

            style = new Style(tag, GenSymClass(tag), properties, lexer.styles);
            lexer.styles = style;
            return style.TagClass;
        }
コード例 #3
0
		public Lexer(StreamIn input, TidyOptions options)
		{
			this.input = input;
			this.lines = 1;
			this.columns = 1;
			this.state = LEX_CONTENT;
			this.badAccess = 0;
			this.badLayout = 0;
			this.badChars = 0;
			this.badForm = 0;
			this.waswhite = false;
			this.pushed = false;
			this.insertspace = false;
			this.exiled = false;
			this.isvoyager = false;
			this.versions = HtmlVersion.Everything;
			this.doctype = HtmlVersion.Unknown;
			this.badDoctype = false;
			this.txtstart = 0;
			this.txtend = 0;
			this.token = null;
			this.lexbuf = null;
			this.lexlength = 0;
			this.lexsize = 0;
			this.inode = null;
			this.insert = - 1;
			this.istack = new Stack();
			this.istackbase = 0;
			this.styles = null;
			this.Options = options;
			this.seenBodyEndTag = 0;
			this.nodeList = new ArrayList();
		}