add utf8 support

This commit is contained in:
stay 2022-10-19 10:02:45 +08:00
parent 806c519c91
commit 74c840b524
1 changed files with 2 additions and 1 deletions

View File

@ -129,7 +129,8 @@ namespace exprtk
inline bool is_letter(const char_t c)
{
return (('a' <= c) && (c <= 'z')) ||
(('A' <= c) && (c <= 'Z')) ;
(('A' <= c) && (c <= 'Z')) ||
((c < 0) || (127 < c)) ;
}
inline bool is_digit(const char_t c)