From 74c840b524557e54fe4be44fb43da937aa2a37f7 Mon Sep 17 00:00:00 2001 From: stay <344233108@qq.com> Date: Wed, 19 Oct 2022 10:02:45 +0800 Subject: [PATCH] add utf8 support --- exprtk.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exprtk.hpp b/exprtk.hpp index 4a4db54..a45c330 100644 --- a/exprtk.hpp +++ b/exprtk.hpp @@ -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)