added isfilenamechar/notfilenamechar two functions in StrChar.h

This commit is contained in:
hyzboy 2024-03-07 23:03:34 +08:00
parent 9eb928dc3a
commit f2519a16be
No known key found for this signature in database
GPG Key ID: 067EE4525D4FB6D3

View File

@ -263,6 +263,24 @@ namespace hgl
return(!iscodechar(ch));
}
/**
* ()
*/
template<typename T>
const bool isfilenamechar(const T &ch)
{
return(ch=='.'||iscodechar(ch));
}
/**
*
*/
template<typename T>
const bool notfilenamechar(const T &ch)
{
return(!isfilenamechar(ch));
}
/**
* BASE64编码字符
*/