diff --git a/rtemstoolkit/SimpleIni.h b/rtemstoolkit/SimpleIni.h
index fd37c4b..ec99abb 100644
--- a/rtemstoolkit/SimpleIni.h
+++ b/rtemstoolkit/SimpleIni.h
@@ -3,9 +3,9 @@
Library | SimpleIni
|
---|
File | SimpleIni.h
- |
---|
Author | Brodie Thiesfield [code at jellycan dot com]
+ |
---|
Author | Brodie Thiesfield
|
---|
Source | https://github.com/brofield/simpleini
- |
---|
Version | 4.17
+ |
---|
Version | 4.20
|
---|
Jump to the @link CSimpleIniTempl CSimpleIni @endlink interface documentation.
@@ -20,7 +20,7 @@
@section features FEATURES
- MIT Licence allows free use in all software (including GPL and commercial)
- - multi-platform (Windows 95/98/ME/NT/2K/XP/2003, Windows CE, Linux, Unix)
+ - multi-platform (Windows CE/9x/NT..10/etc, Linux, MacOSX, Unix)
- loading and saving of INI-style configuration files
- configuration files can have any newline format on all platforms
- liberal acceptance of file format
@@ -42,22 +42,31 @@
- Windows/VC6 (warning level 3)
- Windows/VC.NET 2003 (warning level 4)
- Windows/VC 2005 (warning level 4)
+ - Windows/VC 2019 (warning level 4)
- Linux/gcc (-Wall)
@section usage USAGE SUMMARY
+ -# Decide if you will be using utf8 or MBCS files, and working with the
+ data in utf8, wchar_t or ICU chars.
+ -# If you will only be using straight utf8 files and access the data via the
+ char interface, then you do not need any conversion library and could define
+ SI_NO_CONVERSION. Note that no conversion also means no validation of the data.
+ If no converter is specified then the default converter is SI_CONVERT_GENERIC
+ on Mac/Linux and SI_CONVERT_WIN32 on Windows. If you need widechar support on
+ Mac/Linux then use either SI_CONVERT_GENERIC or SI_CONVERT_ICU. These are also
+ supported on all platforms.
-# Define the appropriate symbol for the converter you wish to use and
- include the SimpleIni.h header file. If no specific converter is defined
- then the default converter is used. The default conversion mode uses
- SI_CONVERT_WIN32 on Windows and SI_CONVERT_GENERIC on all other
- platforms. If you are using ICU then SI_CONVERT_ICU is supported on all
- platforms.
- -# Declare an instance the appropriate class. Note that the following
+ include the SimpleIni.h header file.
+ -# Declare an instance of the appropriate class. Note that the following
definitions are just shortcuts for commonly used types. Other types
(PRUnichar, unsigned short, unsigned char) are also possible.
- Interface | Case-sensitive | Load UTF-8 | Load MBCS | Typedef
+ |
---|
Interface | Case-sensitive | Load UTF-8 | Load MBCS | Typedef
+ |
---|
SI_NO_CONVERSION
+ |
---|
char | No | Yes | No | CSimpleIniA
+ |
char | Yes | Yes | No | CSimpleIniCaseA
|
SI_CONVERT_GENERIC
|
---|
char | No | Yes | Yes #1 | CSimpleIniA
|
char | Yes | Yes | Yes | CSimpleIniCaseA
@@ -88,6 +97,8 @@
|
GetValue | Return a value for a section & key
|
SetValue | Add or update a value for a section & key
|
Delete | Remove a section, or a key from a section
+ |
SectionExists | Does a section exist?
+ |
KeyExists | Does a key exist?
|
-# Call Save() or SaveFile() to save the INI configuration data
@@ -161,9 +172,10 @@
SI_STRLESS class, or by sorting the strings external to this library.
- Usage of the header on Windows can be disabled by defining
SI_NO_MBCS. This is defined automatically on Windows CE platforms.
+ - Not thread-safe so manage your own locking
@section contrib CONTRIBUTIONS
-
+
- 2010/05/03: Tobias Gehrig: added GetDoubleValue()
@section licence MIT LICENCE
@@ -213,11 +225,11 @@
#endif
#include
+#include
#include
#include