Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Gearsystem
Commits
ac7141d3
Unverified
Commit
ac7141d3
authored
Jul 21, 2021
by
Ignacio Sanchez Gines
Browse files
Update mINI to v0.9.10
parent
d39e3663
Changes
1
Hide whitespace changes
Inline
Side-by-side
platforms/desktop-shared/mINI/ini.h
View file @
ac7141d3
...
...
@@ -23,7 +23,7 @@
///////////////////////////////////////////////////////////////////////////////
//
// /mINI/ v0.9.
7
// /mINI/ v0.9.
10
// An INI file reader and writer for the modern age.
//
///////////////////////////////////////////////////////////////////////////////
...
...
@@ -92,12 +92,13 @@
#include <memory>
#include <fstream>
#include <sys/stat.h>
#include <cctype>
namespace
mINI
{
namespace
INIStringUtil
{
const
std
::
string
whitespaceDelimiters
=
"
\t\n\r\f\v
"
;
const
char
*
const
whitespaceDelimiters
=
"
\t\n\r\f\v
"
;
inline
void
trim
(
std
::
string
&
str
)
{
str
.
erase
(
str
.
find_last_not_of
(
whitespaceDelimiters
)
+
1
);
...
...
@@ -106,7 +107,9 @@ namespace mINI
#ifndef MINI_CASE_SENSITIVE
inline
void
toLower
(
std
::
string
&
str
)
{
std
::
transform
(
str
.
begin
(),
str
.
end
(),
str
.
begin
(),
::
tolower
);
std
::
transform
(
str
.
begin
(),
str
.
end
(),
str
.
begin
(),
[](
const
char
c
)
{
return
static_cast
<
const
char
>
(
std
::
tolower
(
c
));
});
}
#endif
inline
void
replace
(
std
::
string
&
str
,
std
::
string
const
&
a
,
std
::
string
const
&
b
)
...
...
@@ -122,9 +125,9 @@ namespace mINI
}
}
#ifdef _WIN32
const
std
::
string
endl
=
"
\r\n
"
;
const
char
*
const
endl
=
"
\r\n
"
;
#else
const
std
::
string
endl
=
"
\n
"
;
const
char
*
const
endl
=
"
\n
"
;
#endif
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment