add isslash function.

This commit is contained in:
2020-11-09 13:11:25 +08:00
parent ad4b2cd48c
commit 7a02c9e360

View File

@@ -152,6 +152,18 @@ namespace hgl
return(true);
}
/**
* 是否为斜杠
*/
template<typename T>
const bool isslash(const T ch)
{
if(ch=='\\')return(true);
if(ch=='/')return(true);
return(false);
}
/**
* 是否为不显示可打印字符(' ','\t','\r','\f','\v','\n')
*/