改进isspace函数
This commit is contained in:
parent
6056788079
commit
5524bc7ebb
@ -156,7 +156,14 @@ namespace hgl
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
bool isspace(const T ch)
|
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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user