Match
String pattern matching, any number of wildcards are supported, which can be * or ?.
BOOL Match( LPCSTR strPattern, BOOL bCaseSensitive = FALSE )
TRUE if the provided pattern matches the string.
EX1
void string_Match_ex1() { string str = "abcdefg"; bool bRet = str.Match("ab*"); out_int("", bRet);//true bRet = str.Match("b*c*f?"); out_int("", bRet);//false, since "b*c" can not be found bRet = str.Match("a*e*"); out_int("", bRet);//true bRet = str.Match("?*eg?");//false, since "eg" can not be found out_int("", bRet); }
origin.h