Range-based INI parser

Code



Application output:

ConfigItem("GLOBAL", "general section", "possible") ConfigItem("Simple Values", "key", "value") ConfigItem("Simple Values", "spaces in keys", "allowed") ConfigItem("Simple Values", "spaces in values", "allowed as well") ConfigItem("Simple Values", "spaces around the delimiter ", " obviously") ConfigItem("Simple Values", "you can also use ", " to delimit keys from values") ConfigItem("All Values Are Strings", "values like this", " 1000000") ConfigItem("All Values Are Strings", "or this", " 3.14159265359") ConfigItem("All Values Are Strings", "are they treated as numbers? ", " no") ConfigItem("All Values Are Strings", "integers, floats and booleans are held as", " strings") ConfigItem("All Values Are Strings", "can use the API to get converted values directly", " true") ConfigItem("No Values", "key_without_value", "") ConfigItem("No Values", "empty string value here ", "") ConfigItem("Sections Can Be Indented", " can_values_be_as_well ", " True") ConfigItem("Sections Can Be Indented", " does_that_mean_anything_special ", " False") ConfigItem("Sections Can Be Indented", " purpose ", " formatting for readability")

Paste info


Author: Guest
Views: 599
Private: no
Expires: Never
Uploaded: 25.08.13 21:56
Votes: 1

Compilation


Compiler: DMD 2.076.1 ( 2.076.1 )
Pointer size: m64

Actions