added Exist and CaseExist functions at StringList class.

This commit is contained in:
2023-01-06 17:15:26 +08:00
parent d98d81443c
commit 8168650c0c

View File

@@ -173,6 +173,22 @@ namespace hgl
return(-1);
}
/**
* 确认字符串确在,英文区分大小写
*/
bool Exist(const StringClass &str) const ///<确认字符串确在,英文区分大小写
{
return Find(str)!=-1;
}
/**
* 确认字符串确在,英文无视大小写
*/
bool CaseExist(const StringClass &str) const ///<确认字符串确在,英文无视大小写
{
return CaseFind(str)!=-1;
}
/**
* 查找字符串,并指定最大比较长度
* @param str 要查找的字符串