View Source jhn_plist (jhn_stdlib v5.3.2)
A property list style handling of {Key, Value} tuples.
Summary
Functions
Extends Plist with the property without checking if it exists.
Extends Plist with the property checking if it exists if required.
Ensures one property per key, with the first given precedence.
Restricts Plist on the key without checking if it exists.
Restricts Plist on the key without checking if it exists if required.
Finds the value of the property or undefined if not found.
Finds the value of the property or Default if not found.
Finds the value of the property or Default if not found. If more than property is found the one returned if determined by the Placement as being the first or last.
Finds the all values associated with the key.
Returns all the keys.
Returns wether the key is to be found in the PList.
Creates an empty plist.
Creates a plist from the zipping the lists of keys and values.
Replaces the first occurence in the PList, adding if it if not found.
Replaces the first occurence in the PList, esuring that i does exist if required.
Returns all the values.
Types
-type default() :: _.
-type flag() :: check | nocheck.
-type key() :: _.
-type placement() :: first | last.
-type value() :: _.
Functions
Extends Plist with the property without checking if it exists.
Extends Plist with the property checking if it exists if required.
Ensures one property per key, with the first given precedence.
Restricts Plist on the key without checking if it exists.
Restricts Plist on the key without checking if it exists if required.
Finds the value of the property or undefined if not found.
Finds the value of the property or Default if not found.
Finds the value of the property or Default if not found. If more than property is found the one returned if determined by the Placement as being the first or last.
Finds the all values associated with the key.
Returns all the keys.
Returns wether the key is to be found in the PList.
-spec new() -> plist().
Creates an empty plist.
Creates a plist from the zipping the lists of keys and values.
Replaces the first occurence in the PList, adding if it if not found.
Replaces the first occurence in the PList, esuring that i does exist if required.
Returns all the values.