Ini

An INI file.

Constructors

this
this(string file, char secStart, char secEnd)
Undocumented in source.
this
this(string file)

Construct a new INI _file.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addSection
IniSection addSection(string name)

The section is created if one named name does not exist.

dump
void dump()

Release memory without saving changes; contents become empty.

firstOpen
void firstOpen(string file)
Undocumented in source. Be warned that the author may not have intended to support it.
match
bool match(string s1, string s2)

Comparison function for section and key names. Override to change behavior.

opApply
int opApply(int delegate(ref IniSection) dg)

foreach section.

opIndex
IniSection opIndex(string sectionName)

Shortcut for section(sectionName).

open
void open(string file)

Open an INI _file.

parse
void parse()
Undocumented in source. Be warned that the author may not have intended to support it.
print
void print()
Undocumented in source. Be warned that the author may not have intended to support it.
rehash
void rehash()

Reload INI file; any unsaved changes are lost.

remove
void remove(string sectionName)

_Remove section named sectionName.

save
void save()

Write contents to disk, even if no changes were made. It is common to do if(modified)save();

save
void save(string filename)

Write contents to disk with filename

saveToStream
void saveToStream(File f)
section
IniSection section(string name)

Finds a section; returns null if one named name does not exist.

Properties

modified
bool modified [@property getter]

Property: get whether or not the INI file was modified since it was loaded or saved.

sections
IniSection[] sections [@property getter]

Property: get all sections.

Variables

_file
string _file;
Undocumented in source.
_modified
bool _modified;
Undocumented in source.
isecs
IniSection[] isecs;
Undocumented in source.
saveTo
string saveTo;

Upon the next save use this file.

secEnd
char secEnd;
Undocumented in source.
secStart
char secStart;
Undocumented in source.

Meta