diff --git a/inc/hgl/type/StrChar.h b/inc/hgl/type/StrChar.h index 67be07e..7780f24 100644 --- a/inc/hgl/type/StrChar.h +++ b/inc/hgl/type/StrChar.h @@ -152,6 +152,18 @@ namespace hgl return(true); } + /** + * 是否为斜杠 + */ + template + const bool isslash(const T ch) + { + if(ch=='\\')return(true); + if(ch=='/')return(true); + + return(false); + } + /** * 是否为不显示可打印字符(' ','\t','\r','\f','\v','\n') */