# Functions
No description provided by the author
Strips the lines and splits them if they contain curly brackets.
Replaces bracket { and } with tags, so subsequent formatting is easier.
Replaces variable indicators ${ and } with tags, so subsequent formatting is easier.
No description provided by the author
Indents the lines according to their nesting level determined by curly brackets.
No description provided by the author
When opening curly bracket is in it's own line (K&R convention), it's joined with precluding line (Java).
Lines can have multiple statements seperated by a semicolon, for example: "allow 127.0.0.1; allow 10.0.0.0/8; deny all;" This method counts the number of statements in a line and returns the number of quotes && number of statements.
No description provided by the author
This is a follow upto NumStatmentsPerLine, this splits the multi-statement line into separate lines TODO: This is failing on quoted blocks.
Strips the line and replaces neighbouring whitespaces with single space (except when within quotation marks).
Undoes the replacement from EscapeBlocks.
Undoes the variable replacement from EscapeVariables.