nl_isdigit can be made constexpr
This commit is contained in:
parent
7dcc8a56bb
commit
7cc60ccc0a
@ -8802,7 +8802,7 @@ basic_json_parser_63:
|
|||||||
|
|
||||||
// non locale aware isdigit
|
// non locale aware isdigit
|
||||||
// Microsoft in 1252 codepage and others may classify additional single-byte characters as digits using std::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
|
constexpr bool nl_isdigit(const char c) const
|
||||||
{
|
{
|
||||||
return c >= '0' and c <= '9';
|
return c >= '0' and c <= '9';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8099,7 +8099,7 @@ class basic_json
|
|||||||
|
|
||||||
// non locale aware isdigit
|
// non locale aware isdigit
|
||||||
// Microsoft in 1252 codepage and others may classify additional single-byte characters as digits using std::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
|
constexpr bool nl_isdigit(const char c) const
|
||||||
{
|
{
|
||||||
return c >= '0' and c <= '9';
|
return c >= '0' and c <= '9';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user