From 5524bc7ebbc9324c366afb30d0bbf6cc336ee2c0 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sun, 28 Jun 2020 22:13:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bisspace=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/hgl/type/StrChar.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/inc/hgl/type/StrChar.h b/inc/hgl/type/StrChar.h index 456a08f..7929881 100644 --- a/inc/hgl/type/StrChar.h +++ b/inc/hgl/type/StrChar.h @@ -156,7 +156,14 @@ namespace hgl template bool isspace(const T ch) { - return(ch==' '||ch=='\t'||ch=='\r'||ch=='\f'||ch=='\v'||ch=='\n'); + return(ch==0 + ||ch==' ' //半角空格 + ||ch==L' ' //全角空格 + ||ch=='\t' + ||ch=='\r' + ||ch=='\f' + ||ch=='\v' + ||ch=='\n'); } /**