8 Commits

Author SHA1 Message Date
caf1d43331 Improve error message 2024-10-15 12:52:45 +02:00
06060dab7c Fix exception in parse_ini_file() 2024-10-15 12:40:09 +02:00
37c866054a Fix regex for key-value-pair
First group was a greedy match for the key, followed by a greedy match
for the whitespace up to the '='. This caused the white space to become
a suffix of the key... Solved by making it a non-greedy match.
2024-03-27 17:07:30 +01:00
Bob Polis
1da96ede92 Changed limits.h => climits 2023-12-11 08:48:01 +01:00
Bob Polis
954fca9e56 Rewrote parse_ini_file
Is now regex-based, and supports sections.
Sections are ignored by default, but can be used by calling
parse_ini_file with a second bool param: false.
Sections will become key prefixes, separated from keys with a dot.
2023-12-10 18:32:17 +01:00
Bob Polis
c7b409bae1 Removed comment header, minor cleanup 2023-04-20 11:30:38 +02:00
Bob Polis
879eefb39e Simplified regex split
Instead of building the result vector with push_back, I now use
the vector c'tor with iterators directly.
2022-01-28 09:40:18 +01:00
Bob Polis
ba6013055c Moved sources to src dir 2021-12-20 17:40:47 +01:00