remove whitespace loop in strtox

This commit is contained in:
Jett 2016-10-16 17:14:27 -05:00
parent 22f3f88771
commit 8877ad72fa
2 changed files with 0 additions and 36 deletions

View File

@ -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
{

View File

@ -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
{