Fix handling of UTF-8 characters in string constants
This commit is contained in:
parent
772884eb09
commit
2388be23a3
|
@ -175,7 +175,7 @@ namespace exprtk
|
||||||
|
|
||||||
inline bool is_valid_string_char(const char_t c)
|
inline bool is_valid_string_char(const char_t c)
|
||||||
{
|
{
|
||||||
return std::isprint(static_cast<uchar_t>(c)) ||
|
return !std::iscntrl(static_cast<uchar_t>(c)) ||
|
||||||
is_whitespace(c);
|
is_whitespace(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue