Expand description
INI / CFG file processor with [section] awareness.
Handles Windows/Unix INI-style configuration files:
[section]
key = value
key: value
; semicolon comment
# hash comment§Key Paths
Field rules use dot notation combining section and key:
"database.host"— matches keyhostin section[database]"*"— matches all key=value pairs in all sections"global_key"— matches a key before any section header (global scope)
§Formatting Preservation
- Section headers
[section]are preserved verbatim. #and;comment lines are preserved verbatim.- Blank lines are preserved.
- Leading whitespace in value is stripped; quoting is not applied.
- Inline comments (
key = value ; comment) are stripped and NOT written back to avoid leaking sensitive context in comments. - Both
key = valueandkey: valueassignment operators are handled.
Structs§
- IniProcessor
- Structured processor for INI / CFG files.