改进isspace函数

This commit is contained in:
hyzboy 2020-06-28 22:13:59 +08:00
parent 6056788079
commit 5524bc7ebb

View File

@ -156,7 +156,14 @@ namespace hgl
template<typename T>
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');
}
/**