ini
Summary
Item Index
Methods
_getNewSection
Syntax
_getNewSection
(
String
private
-
[line]
Summary
Checks whether a line indicates a new section or not.
Parameters:
-
[line]
String optionalThe line to check.
Returns:
String:
The section name, if found.
_isComment
Syntax
_isComment
(
Boolean
private
-
[line]
Summary
Checks whether a line is a comment or not.
Parameters:
-
[line]
String optionalThe line to check.
Returns:
Boolean:
_isNotValidIni
Syntax
_isNotValidIni
(
Boolean
private
-
[line]
Summary
Checks whether the line contains only valid ini syntax or not.
Parameters:
-
[line]
String optionalThe line to check.
Returns:
Boolean:
decode
Syntax
decode
(
Object
-
[data]
Summary
Decodes an ini string to an ini object.
Parameters:
-
[data]
String optionalA string of data to be decoded.
Returns:
Object:
A new object with two primary keys: global
and section
.
encode
Syntax
encode
(
String
-
[data]
Summary
Encodes an ini object into an ini string that can be written to a file.
Parameters:
-
[data]
Object optionalAn ini object formatted as explained in the class description.
Returns:
String:
A valid ini representation of the data.