variantconfig ~version2

A key/value config file format


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

#Description VariantConfig is a key/value config file format that uses an associative array to store key/value pairs.

#Examples

auto config = VariantConfig("app.config");
long number = config["number"].toLong;
bool aBool = config["aBool"].toBool;
string text = config["sentence"].toStr;

config["opTest"] = "Does it work";
config["opNum"] = 90210;
config["aBool"] = true;

#File Contents

TodoTaskPattern=([A-Z]+):(.*)
aBool=true
equalsText=([A-Z]+):(.*)
float=3443.443
foo=bar
number=12071
opNum=90210
opTest=Does it work
sentence=This is a really long sentence to test for a really long value string!
spacetest=this is testing starting and trailing spaces
testfield=123466
time=12:04
Authors:
  • Paul Crane
Dependencies:
none
Versions:
1.1.5 2015-Nov-06
1.1.4 2015-Oct-16
1.1.3 2015-Jul-26
1.1.2 2015-Jul-20
1.1.1 2015-Jul-18
Show all 11 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 0 downloads total

Score:
0.9
Short URL:
variantconfig.dub.pm