nxt.prettyio

Pretty Printing.

Test: dmd -version=show -preview=dip1000 -preview=in -vcolumns -I.. -i -unittest -version=show -main -run prettyio.d

TODO: Print structures only matching a certain value passed as template parameter. Used in print debugging.

Members

Functions

cwrite
void cwrite(T args)

Colorized version of std.stdio.write.

cwritePretty
void cwritePretty(T arg, size_t depth, char[] name, Format fmt)

Pretty print arg.

cwriteln
void cwriteln(T args)

Colorized version of std.stdio.writeln.

indexOf
ptrdiff_t indexOf(inout(T)[] haystack, const(T)[] needle)
ptrdiff_t indexOf(inout(T)[] haystack, T needle)

Array-specialization of indexOf with default predicate.

Structs

Format
struct Format

Format of pretty printing.

Meta