Format

Writing/Printing format.

Members

Static functions

debugging
Format debugging()
Undocumented in source. Be warned that the author may not have intended to support it.
everything
Format everything()
Undocumented in source. Be warned that the author may not have intended to support it.
fancy
Format fancy()
Undocumented in source. Be warned that the author may not have intended to support it.
plain
Format plain()
Undocumented in source. Be warned that the author may not have intended to support it.
pretty
Format 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.

Variables

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.

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 '"'.

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.

showPointerValues
bool showPointerValues;

< Show values of non-null pointers (instead of just pointer).

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);

Meta