Struct IniLikeFile.WriteOptions

Behavior of ini-like file saving.

struct WriteOptions ;

Fields

NameTypeDescription
lineBetweenGroups std.typecons.Flag!("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 std.typecons.Flag!("preserveComments")Whether to preserve comments (lines that starts with '#') on saving.
preserveEmptyLines std.typecons.Flag!("preserveEmptyLines")Whether to preserve empty lines on saving.

Methods

NameDescription
assign Assign arg to the struct member of corresponding type.
exact Exact mode. Save all comments and empty lines as is.
pretty Pretty mode. Save comments, skip existing new lines, add line before the next group.

See Also

save