#include <ZipArchive.h>
Public Types | |
enum | Match { matchNone, matchValid, matchEnd, matchAbort, matchRange, matchLiteral, matchPattern } |
enum | Pattern { patternEmpty = -4, patternClose, patternRange, patternEsc, patternValid } |
Public Member Functions | |
bool | IsMatch (LPCTSTR lpszText, int *iRetCode=NULL) |
Match the pattern against the string lpszText A match means the entire string lpszText is used up in matching. | |
CWildcard () | |
CWildcard (LPCTSTR lpszPattern, bool bCaseSensitive) | |
Initialize the pattern. | |
virtual | ~CWildcard () |
void | SetPattern (LPCTSTR lpszPattern, bool bCaseSensitive) |
Set the pattern to lpszPattern. | |
operator LPCTSTR () | |
Static Public Member Functions | |
static bool | IsPattern (LPCTSTR lpszPattern) |
static bool | IsPatternValid (LPCTSTR lpszPattern, int *iErrorType=NULL) |
Test the pattern for validity. | |
static int | Match (LPCTSTR lpszPattern, LPCTSTR lpszText) |
Match the pattern lpszPattern against the string lpszText A match means the entire string lpszText is used up in matching. | |
Static Protected Member Functions | |
static int | MatchAfterStar (LPCTSTR p, LPCTSTR t) |
Protected Attributes | |
bool | m_bCaseSensitive |
CZipString | m_szPattern |
This class is based on code by J. Kercheval, created 01/05/1991 and available as a public domain at http://www.snippets.org.
Definition at line 1708 of file ZipArchive.h.
|
Definition at line 1713 of file ZipArchive.h. |
|
Definition at line 1724 of file ZipArchive.h. |
|
Initialize the pattern.
Definition at line 1787 of file ZipArchive.h. |
|
Match the pattern against the string lpszText A match means the entire string lpszText is used up in matching.
|
|
|
|
Test the pattern for validity.
|
|
Match the pattern lpszPattern against the string lpszText A match means the entire string lpszText is used up in matching.
|
|
Set the pattern to lpszPattern.
Definition at line 1814 of file ZipArchive.h. |