remove whitespace loop in strtox
This commit is contained in:
parent
22f3f88771
commit
8877ad72fa
18
src/json.hpp
18
src/json.hpp
@ -8800,18 +8800,6 @@ basic_json_parser_63:
|
||||
return result;
|
||||
}
|
||||
|
||||
// non locale aware isspace
|
||||
bool nl_isspace(const char c) const
|
||||
{
|
||||
return
|
||||
c == 0x20 or
|
||||
c == 0x09 or
|
||||
c == 0x0a or
|
||||
c == 0x0b or
|
||||
c == 0x0c or
|
||||
c == 0x0d;
|
||||
}
|
||||
|
||||
// non locale aware isdigit
|
||||
// Microsoft in 1252 codepage and others may classify additional single-byte characters as digits using std::isdigit
|
||||
bool nl_isdigit(const char c) const
|
||||
@ -8845,12 +8833,6 @@ basic_json_parser_63:
|
||||
T result = 0;
|
||||
const char *fst = st;
|
||||
bool successful_parse = false;
|
||||
|
||||
while (nl_isspace(*fst))
|
||||
{
|
||||
++fst;
|
||||
}
|
||||
|
||||
char cp = *fst;
|
||||
int exp = 0; // exponent
|
||||
{
|
||||
|
||||
@ -8097,18 +8097,6 @@ class basic_json
|
||||
return result;
|
||||
}
|
||||
|
||||
// non locale aware isspace
|
||||
bool nl_isspace(const char c) const
|
||||
{
|
||||
return
|
||||
c == 0x20 or
|
||||
c == 0x09 or
|
||||
c == 0x0a or
|
||||
c == 0x0b or
|
||||
c == 0x0c or
|
||||
c == 0x0d;
|
||||
}
|
||||
|
||||
// non locale aware isdigit
|
||||
// Microsoft in 1252 codepage and others may classify additional single-byte characters as digits using std::isdigit
|
||||
bool nl_isdigit(const char c) const
|
||||
@ -8142,12 +8130,6 @@ class basic_json
|
||||
T result = 0;
|
||||
const char *fst = st;
|
||||
bool successful_parse = false;
|
||||
|
||||
while (nl_isspace(*fst))
|
||||
{
|
||||
++fst;
|
||||
}
|
||||
|
||||
char cp = *fst;
|
||||
int exp = 0; // exponent
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user