ae.utils.sini

Structured INI

Members

Functions

iniHandler
IniHandler!S iniHandler(void delegate(S, S) leafHandler, IniHandler!S delegate(S) nodeHandler = null)

Helper which creates an INI handler out of delegates.

loadIni
S loadIni(string fileName)

Convenience function to load a struct from an INI file. Returns .init if the file does not exist.

loadInis
S loadInis(in char[][] fileNames)

As above, though loads several INI files (duplicate values appearing in later INI files override any values from earlier files).

parseIni
void parseIni(R r, H rootHandler)

Parse a structured INI from a range of lines, through the given handler.

parseIni
T parseIni(R r)
parseIniInto
void parseIniInto(R r, ref T result)

Parse structured INI lines from a range of strings, into a user-defined struct.

prettifyIni
string prettifyIni(string ini)

Insert a blank line before each section

Structs

IniHandler
struct IniHandler(S)

Represents the user-defined behavior for handling a node in a structured INI file's hierarchy.

IniTraversingHandler
struct IniTraversingHandler(S)

Alternative API for IniHandler, where each leaf is a node

IniWriter
struct IniWriter(O)

Simple convenience formatter for writing INI files.

Meta

Authors

Vladimir Panteleev <vladimir@thecybershadow.net>

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.