Format

Writing/Printing format.

Members

Static functions

debugging
typeof(this) debugging()
Undocumented in source. Be warned that the author may not have intended to support it.
everything
typeof(this) everything()
Undocumented in source. Be warned that the author may not have intended to support it.
fancy
typeof(this) fancy()
Undocumented in source. Be warned that the author may not have intended to support it.
plain
typeof(this) plain()
Undocumented in source. Be warned that the author may not have intended to support it.
pretty
typeof(this) pretty()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

aggregateFieldSeparator
auto aggregateFieldSeparator;

< Aggregate field separator.

arrayElementSeparator
auto arrayElementSeparator;

< Array element separator.

fieldNameSeparator
auto fieldNameSeparator;

< Field name separator.

Variables

abbreviateInitValues
bool abbreviateInitValues;

< Abbreviate default values to .init when it reduces the size of the output.

aggregatePrefix
char aggregatePrefix;

< Array fields prefix.

aggregateSuffix
char aggregateSuffix;

< Array fields suffix.

arrayPrefix
char arrayPrefix;

< (Associative) Array prefix.

arraySuffix
char arraySuffix;

< (Associative) Array suffix.

backReferencePrefix
char backReferencePrefix;

< Backward reference prefix.

dynamicArrayLengthMax
size_t dynamicArrayLengthMax;

< Limit length of dynamic arrays to this value when printing.

fieldTypeSeparator
char fieldTypeSeparator;

< Field type separator.

indentation
string indentation;

< Indentation.

level
size_t level;

< Level of (aggregate) nesting starting at 0.

multiLine
bool multiLine;

< Span multiple lines using indent.

quoteChars
bool quoteChars;

< Wrap characters {char|wchar|dchar} in ASCII single-quote character '\''.

quoteStrings
bool quoteStrings;

< Wrap strings {string|wstring|dstring} in ASCII single-quote character '"'.

showAddresses
bool showAddresses;

< Show address of classes and pointers.

showClassInfoNames
bool showClassInfoNames;

< Use .classinfo.name to display the name of a class instance.

showClassValues
bool showClassValues;

< Show fields of non-null classes (instead of just pointer).

showEnumatorValues
bool showEnumatorValues;

< Show values of enumerators instead of their names.

showEnumeratorEnumType
bool showEnumeratorEnumType;

< Show enumerators as EnumType.enumeratorValue instead of enumeratorValue.

showFieldNames
bool showFieldNames;

< Show names of fields.

showFieldTypes
bool showFieldTypes;

< Show types of values.

showVoidArrayValues
bool showVoidArrayValues;

< Show values of void arrays as ubytes instead of [?].

useFonts
bool useFonts;

< Use different fonts for different types. TODO: Use nxt.ansi_escape

Examples

assert(Format.plain != Format.pretty);
assert(Format.pretty != Format.fancy);
assert(Format.fancy != Format.debugging);
assert(Format.fancy != Format.everything);

Meta