Alexander Nicholi
what do you know about computing?
- 5,500
- Posts
- 14
- Years
- Age 26
- Research Triangle / Jakarta
- Seen Feb 14, 2024
I'm spending some time here fixing up a C++ INI/Config parser library I found on CodeProject. I'm removing all of the uses of raw pointers, and adding in exceptions to replace sloppy error code holder references (passing a variable by reference to be set in the event something goes wrong, this isn't C). I think I'm even going to add in some new little functionality, too.
If you take it as-is, the thing supports hashpound-based comments (#), agnosticism to the spaces surrounding the equals sign of a declaration, and nesting! starting with the line name = ( and ending with a ) on its own line, you can nest up to an arbitrary length. This is what I found to be most cool about the library.
Since I'm such a nut for compiled code, I'm going to have it set up as a shared library (a DLL on Windows) and reference it to both save compile time and modularize my application.
It's such a relief to not have to write this sort of stuff from scratch. ^^';
If you take it as-is, the thing supports hashpound-based comments (#), agnosticism to the spaces surrounding the equals sign of a declaration, and nesting! starting with the line name = ( and ending with a ) on its own line, you can nest up to an arbitrary length. This is what I found to be most cool about the library.
Since I'm such a nut for compiled code, I'm going to have it set up as a shared library (a DLL on Windows) and reference it to both save compile time and modularize my application.
It's such a relief to not have to write this sort of stuff from scratch. ^^';