IniLikeFile.WriteOptions

Behavior of ini-like file saving.

Constructors

this
this(Args args)
Undocumented in source.

Members

Functions

assign
void assign(T arg)

Assign arg to the struct member of corresponding type. Note: It's compile-time error to assign parameter of type which is not part of WriteOptions.

Static functions

exact
auto exact()

Exact mode. Save all comments and empty lines as is.

pretty
auto pretty()

Pretty mode. Save comments, skip existing new lines, add line before the next group.

Variables

lineBetweenGroups
Flag!"lineBetweenGroups" lineBetweenGroups;

Whether to write empty line after each group except for the last. New line is not written when it already exists before the next group.

preserveComments
Flag!"preserveComments" preserveComments;

Whether to preserve comments (lines that starts with '#') on saving.

preserveEmptyLines
Flag!"preserveEmptyLines" preserveEmptyLines;

Whether to preserve empty lines on saving.

See Also

Meta