C# Class Tidy.Core.PPrint

Pretty print parse tree (c) 1998-2000 (W3C) MIT, INRIA, Keio University See Tidy.cs for the copyright notice. Derived from HTML Tidy Release 4 Aug 2000
Block-level and unknown elements are printed on new lines and their contents indented 2 spaces Inline elements are printed inline. Inline content is wrapped on spaces (except in attribute values or preformatted text, after start tags and before end tags
Afficher le fichier Open project: r1pper/TidyNetPortable Class Usage Examples

Méthodes publiques

Méthode Description
AddTransitionEffect ( Lexer lexer, Node root, short effect, double duration ) : void
CondFlushLine ( Out fout, int indent ) : void
CountSlides ( Node node ) : int
CreateSlides ( Lexer lexer, Node root ) : void
FlushLine ( Out fout, int indent ) : void
GetUtf8 ( byte str, int start, MutableInteger ch ) : int
PPrint ( TidyOptions options ) : System
PrintSlide ( Out fout, int mode, int indent, Lexer lexer ) : void
PrintTree ( Out fout, int mode, int indent, Lexer lexer, Node node ) : void
PrintXmlTree ( Out fout, int mode, int indent, Lexer lexer, Node node ) : void
PutUtf8 ( byte buf, int start, int c ) : int

Private Methods

Méthode Description
AddC ( int c, int index ) : void
AfterSpace ( Node node ) : bool
PrintAsp ( Out fout, int indent, Node node ) : void
PrintAttrValue ( Out fout, int indent, string val, int delim, bool wrappable ) : void
PrintAttribute ( Out fout, int indent, Node node, AttVal attr ) : void
PrintAttrs ( Out fout, int indent, Node node, AttVal attr ) : void
PrintCdata ( Out fout, int indent, Node node ) : void
PrintChar ( int c, int mode ) : void
PrintComment ( Out fout, int indent, Node node ) : void
PrintDocType ( Out fout, int indent, Node node ) : void
PrintEndTag ( Node node ) : void
PrintJste ( Out fout, int indent, Node node ) : void
PrintNavBar ( Out fout, int indent ) : void
PrintPhp ( Out fout, int indent, Node node ) : void
PrintPi ( Out fout, int indent, Node node ) : void
PrintSection ( Out fout, int indent, Node node ) : void
PrintString ( string str ) : void
PrintTag ( Lexer lexer, Out fout, int mode, int indent, Node node ) : void
PrintText ( Out fout, int mode, int indent, byte textarray, int start, int end ) : void
ShouldIndent ( Node node ) : bool
WrapAttrVal ( Out fout, int indent, bool inString ) : void
WrapLine ( Out fout, int indent ) : void

Method Details

AddTransitionEffect() public méthode

public AddTransitionEffect ( Lexer lexer, Node root, short effect, double duration ) : void
lexer Lexer
root Node
effect short
duration double
Résultat void

CondFlushLine() public méthode

public CondFlushLine ( Out fout, int indent ) : void
fout Out
indent int
Résultat void

CountSlides() public méthode

public CountSlides ( Node node ) : int
node Node
Résultat int

CreateSlides() public méthode

public CreateSlides ( Lexer lexer, Node root ) : void
lexer Lexer
root Node
Résultat void

FlushLine() public méthode

public FlushLine ( Out fout, int indent ) : void
fout Out
indent int
Résultat void

GetUtf8() public static méthode

public static GetUtf8 ( byte str, int start, MutableInteger ch ) : int
str byte
start int
ch MutableInteger
Résultat int

PPrint() public méthode

public PPrint ( TidyOptions options ) : System
options TidyOptions
Résultat System

PrintSlide() public méthode

public PrintSlide ( Out fout, int mode, int indent, Lexer lexer ) : void
fout Out
mode int
indent int
lexer Lexer
Résultat void

PrintTree() public méthode

public PrintTree ( Out fout, int mode, int indent, Lexer lexer, Node node ) : void
fout Out
mode int
indent int
lexer Lexer
node Node
Résultat void

PrintXmlTree() public méthode

public PrintXmlTree ( Out fout, int mode, int indent, Lexer lexer, Node node ) : void
fout Out
mode int
indent int
lexer Lexer
node Node
Résultat void

PutUtf8() public static méthode

public static PutUtf8 ( byte buf, int start, int c ) : int
buf byte
start int
c int
Résultat int