added Exist and CaseExist functions at StringList class.
This commit is contained in:
@@ -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 要查找的字符串
|
||||
|
Reference in New Issue
Block a user