IniLikeGroup

This class represents the group (section) in the ini-like file. You can create and use instances of this class only in the context of IniLikeFile or its derivatives. Note: Keys are case-sensitive.

Members

Functions

addComment
void addComment(string comment)
Undocumented in source. Be warned that the author may not have intended to support it.
byIniLine
auto byIniLine()
byKeyValue
auto byKeyValue()

Iterate by Key-Value pairs.

contains
bool contains(string key)

Tell if group contains value associated with the key.

localizedValue
string localizedValue(string key, string locale, string defaultValue)

Perform locale matching lookup as described in Localized values for keys.

name
string name()

Get name of this group.

opIndex
string opIndex(string key)
opIndexAssign
string opIndexAssign(string value, string key)

Insert new value or replaces the old one if value associated with key already exists.

opIndexAssign
string opIndexAssign(string value, string key, string locale)

Ditto, localized version.

removeEntry
void removeEntry(string key)

Removes entry by key. To remove localized values use localizedKey.

setLocalizedValue
void setLocalizedValue(string key, string locale, string value)

Same as localized version of opIndexAssign, but uses function syntax.

value
string value(string key, string defaultValue)

Get value by key.

Meta