properd

Members

Classes

PropertyException
class PropertyException

An exception class for the errors generated by the proper-d code.

Functions

as
T as(string[string] properties, string name, T alternative = T.init)

Convenience function that attempts to extract a property value from a property list (an associative array of strings indexed by strings) and convert it to a specified type.

as
bool as(string[string] properties, string name, T alternative = T.init)

Template specialization of the as() function for generating boolean values. This function will recognise "true", "1", "yes" and "on" as values that convert to a boolean true, with everything else converting to false.

asArray
T[] asArray(string[string] properties, string name, string sep = ",")

Convenience function that attempts to extract a property value from a property list (an associative array of strings indexed by strings), split the value with separater, convert each value to a specified type and return as an array.

parseProperties
string[string] parseProperties(string input)

This function takes a string of text and attempts to interpret it using the following set of rules...

readProperties
string[string] readProperties(string path)

This function reads in the contents of a file before passing it to the parseProperties() function for processing.

readProperties
string[string] readProperties(File* file)

This function reads in the contents of a file before passing it to the parseProperties() function for processing.

Meta