jtilly / inih Goto Github PK
View Code? Open in Web Editor NEWThis is a header only C++ version of inih.
Home Page: https://github.com/benhoyt/inih
License: Other
This is a header only C++ version of inih.
Home Page: https://github.com/benhoyt/inih
License: Other
The current version of inih
has marked the GetX()
methods as const, and they should be updated here as well. Since they don't modify any state of the class, this should be a fairly simple fix.
Issue is in our code, sorry!
Hi, is there any way to load all sections into an array ?
/* Same as ini_parse(), but takes an ini_reader function pointer instead of
filename. Used for implementing custom or string-based I/O. */
int ini_parse_stream(ini_reader reader, void *stream, ini_handler handler,
void *user);
How I use ini_parse_stream , implementing custom or string-based I/O
Would be nice to have, but should be an opt-in define or maybe a separate method...
As you would have to find all the ${.*} patterns and call a GetEnvironmentVariable for each then place it in.
Hi, there are C4996 warnings when I try to compile my code with #include "INIReader.h"
in multiple files. I didn't add _CRT_SECURE_NO_WARNINGS
for my project but it should be fine as INIReader.h
attempts to suppress this particular warning for its codes using codes below.
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
#define _CRT_SECURE_NO_WARNINGS
#endif
Is there anything missing in code or I need to define _CRT_SECURE_NO_WARNINGS
explicitly?
Information about the IDE I am using:
Do you have plan to support write feature ?
Thanks
Take this .ini file as reference:
[database-mysql]
hostA = "tcp://127.0.0.1:3306"
hostB = tcp://127.0.0.1:3306
When trying to retrieve hostA, it will evaluate to "tcp
while hostB evaluates correctly.
As shown in INI file, quoting of values should be perfectly fine. The closing "
is missing too.
By looking at the code, it seems to me that quoting wasn't considered at all. Is this on purpose?
Hello,
I see all over the places that objects are passed by value instead by reference:
INIReader(std::string filename);
You probably know that it is a bad idea to pass objects by value due to its performance impact.
Correct is:
INIReader(const std::string& filename);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.