1
0
mirror of https://github.com/benhoyt/inih.git synced 2025-01-17 22:22:53 +08:00

58 Commits

Author SHA1 Message Date
Justin White
60b5ad398a Move INIReaderTest.cpp to examples/ for consistency (#54) 2016-09-15 13:23:49 -04:00
Ben Hoyt
421bdb22b3 Merge pull request #53 from TheVice/INIReader
[INIReader] class now using constant reference as method arguments.
r37
2016-09-12 17:07:46 -04:00
TheVice
c4c1f31b9d [INIReader] according to comment https://github.com/benhoyt/inih/pull/53#issuecomment-246465765 Get method should not return constant reference to std::sting storage in the class. 2016-09-12 23:50:11 +03:00
TheVice
0d0f0182b3 [INIReader] class now using constant reference as method arguments instead of using direct type for non primitive type string.
Return of Get method can be safe switch to constant reference.
2016-09-10 18:50:29 +03:00
Ben Hoyt
5dbf5cb6b4 Merge pull request #50 from jinstrong/master
Update INIReader.cpp file
r36
2016-06-17 11:10:45 -04:00
Jinqiang He
716cc04ca1 Update INIReader.cpp file
update to compatible solution to replace std::map::at, which is not available until c++11
2016-06-17 14:18:55 +08:00
Jinqiang He
159f2784dc Update INIReader.cpp file
added an validated solution to replace std::map::at method, which is not available until c++11.
2016-06-15 10:47:27 +08:00
Ben Hoyt
0c3f8ea80c Merge pull request #48 from artemShelest/constCorrectness
Make INIReader const correct.
2016-04-18 08:45:43 -04:00
Artem Shelest
ccd77e50db Make INIReader const correct. 2016-04-17 08:33:48 +03:00
Ben Hoyt
4b10c65405 Only define INI_INLINE_COMMENT_PREFIXES if it's not already defined r35 2016-01-02 13:00:30 -05:00
Ben Hoyt
5e965dc18d Small tweak for inline comments 2016-01-02 12:56:31 -05:00
Ben Hoyt
6d3ca54bd7 Add docs for inline comment handling 2016-01-02 12:55:25 -05:00
Ben Hoyt
441b65ba83 Add option to disable inline comments and to specify which inline comment character are allowed: https://github.com/benhoyt/inih/issues/40 r34 2016-01-02 12:43:09 -05:00
Ben Hoyt
e5fbd013ac Remove impossible code path
`*start` can't be `;` at this point, because it would have handled in the first if case (start of line comment test)
2016-01-02 11:51:57 -05:00
Ben Hoyt
959ca9d10a Shrink variable name 2016-01-02 11:50:24 -05:00
Ben Hoyt
e6735fff64 Fix issue noted by @jgroffen where if both : and = were used on a line, = would take precedence ( https://github.com/benhoyt/inih/pull/44) 2016-01-02 11:29:40 -05:00
Ben Hoyt
e470b45d87 Merge pull request #41 from cosmy1/patch-1
Fix MSVC Warning
r33
2015-12-13 22:17:25 -05:00
cosmy1
6fb1cb650a Fix MSVC Warning 2015-12-13 22:45:20 +01:00
Ben Hoyt
5c93f2e643 Add note about ini_parse_file and ini_parse_stream, including example link r32 2015-07-30 18:37:30 -04:00
Ben Hoyt
a5896a47c5 Add ini_parse_stream() function for custom I/O, for example string I/O.
Add ini_handler typedef to simplify function prototypes, and take the same approach for ini_reader.
See https://github.com/benhoyt/inih/pull/38
2015-07-30 18:33:01 -04:00
Ben Hoyt
c3458c9e1f Prevent silly strncpy security warning in MSVC.
https://github.com/benhoyt/inih/issues/34
r31
2015-04-16 21:29:39 -04:00
Ben Hoyt
a67bf227c1 Add license and project link 2015-03-21 20:04:19 -04:00
Ben Hoyt
f8a5d9fe3d Update project link 2015-03-21 20:04:00 -04:00
Ben Hoyt
a32adf2019 Update project link 2015-03-21 20:03:04 -04:00
Ben Hoyt
07bf617a4f Update project link 2015-03-21 20:02:47 -04:00
Ben Hoyt
9b8c59999c Update link to INIReader.h from Google Code to GitHub 2015-03-21 20:01:58 -04:00
Ben Hoyt
d6945571ad fix links, fix langs r30 2015-03-12 16:32:41 -04:00
Ben Hoyt
74d2ca064f Brush Technology -> Ben Hoyt 2015-03-12 16:31:20 -04:00
Ben Hoyt
4463718102 Add "differences from ConfigParser" section 2015-03-12 16:28:30 -04:00
Ben Hoyt
24705def21 Add "differences from ConfigParser 2015-03-12 16:28:14 -04:00
Ben Hoyt
d4c71b3335 Delete README.txt 2015-03-12 16:25:23 -04:00
Ben Hoyt
56aa2c2543 Copy README.md from Google Code page 2015-03-12 16:25:13 -04:00
benhoyt@gmail.com
02f386a0ff Issue 30: Change MakeKey separator from "." to "=" as section names/keys can contain dots (but not equals signs). 2014-08-19 16:18:42 +00:00
benhoyt@gmail.com
f2914d460c Add INI_STOP_ON_FIRST_ERROR per Robin Getz (defaults to off).
Add unit test baseline with this option on.
See also f4b25de039
2013-12-19 19:38:21 +00:00
benhoyt@gmail.com
111c3ec086 Added GetReal() to parse a floating point number (double) in C++ INIReader interface.
See: http://blog.brush.co.nz/2009/02/inih/#comment-160441
2013-08-14 21:58:41 +00:00
benhoyt@gmail.com
9b0825f08d Fix issue 25: Be sure to call isspace() with unsigned char -- nasty things happen when char type is "signed char" like MSVC's default.
Add unit tests including some non-ASCII UTF-8 chars to repro with MSVC.
2013-01-06 08:40:00 +00:00
benhoyt@gmail.com
a2b505c373 Couple of tweaks to static lib makefile:
* ".cpp.o" -> ".c.o" to get it to work
* removed unused LDFLAGS and .SUFFIXES
2012-10-09 20:35:58 +00:00
benhoyt@gmail.com
d28ba668ab Fixed tabs from copy-n-paste. 2012-10-09 20:24:37 +00:00
benhoyt@gmail.com
e9bbe840e2 Commit lukas' version of Makefile for building inih as a static library (before I tweak it). 2012-10-09 20:23:31 +00:00
benhoyt@gmail.com
d91415a208 Per Ben Hiett, add support for heap (malloc) allocation for INI files with very long lines. 2012-10-01 09:32:12 +00:00
benhoyt@gmail.com
4de5b3ca6b Fixed issue 20: Replaced use of non-portable stricmp() in examples with strcmp(). 2012-08-26 21:27:06 +00:00
benhoyt@gmail.com
23d69228bf Fixed char/unsigned char issue with r20. Added unit test for BOM handling. 2012-06-19 13:48:44 +00:00
benhoyt@gmail.com
0120f80769 Allow UTF-8 BOM char sequence at start of file. 2012-06-18 17:51:23 +00:00
benhoyt
ff894434f9 Issue 18: Fixed multi-line handling in C++ wrapper, per jeffhawke77. 2012-03-07 02:02:37 +00:00
benhoyt
0a54de5b78 Fixed issue 16: properly handle comments on multi-line values.
Added batch file to run unit tests.
2012-01-02 20:15:12 +00:00
benhoyt
40de3a7f8d Per issue 13, return error status from handler() in example. 2011-10-29 17:20:11 +00:00
benhoyt@gmail.com
328c3d4f8a Issue 11: changed Subversion eol-style to native. 2011-06-27 19:44:29 +00:00
benhoyt@gmail.com
2d41b093b8 Fixed issue 11: #include <stdio.h> in ini.h now that FILE is used in it. 2011-06-27 19:35:59 +00:00
benhoyt@gmail.com
b1170c9568 Issue 7: Factored out ini_parse_file() so users can parse INI file with just a FILE* instead of a filename, and use fmemopen.
Forgot to commit examples/test.ini in previous commit.
Fix strncmp redefine warning when compiling tests/unittest.c.
2011-06-24 18:48:58 +00:00
benhoyt@gmail.com
9ec69b2a1d Added GetBoolean() to C++ API.
Used std::transform() to convert strings to lower instead of for loop.
2011-06-24 18:23:13 +00:00