ConfigParser.parseString

Parse a string

See parseFile() for details on the parsed syntax.

Usage Example:

Config.parseString(
    "[section]\n"
    "key = value1\n"
    "      value2\n"
    "      value3\n"
);
class ConfigParser
void
parseString
(
T : dchar
)
(
T[] str
,
bool clean_old = true
)

Parameters

T

Type of characters in the string

str T[]

string to parse

clean_old bool

true if the existing configuration should be overwritten with the result of the current parse, false if the current parse should only add to or update the existing configuration. (defaults to true)

Meta