This is a relatively easy contest, so i'm only going to have it running for one week. All entries will be submitted to my email address (firstname.lastname@example.org) before 12:00AM (your time) on April 1st.
Please play fair and don't search google or ask others for help on this; I know this is all over the internet.
Your regular expression string matching functions will take the prototypes:
or equivalent (eg. bool wildcmp(const tstring&, const tstring&); ) As long as it satisfies the following expression: wildcmp(TEXT("*"), TEXT("Hello"));Code:bool wildcmp(const TCHAR*, const TCHAR*); // Case sensitive bool wildicmp(const TCHAR*, const TCHAR*); // Case insensitive
Both functions will work with either unicode or ASCII strings. Whether unicode strings are passed to your function depends on whether or not _UNICODE is #defined.
The only wildcard operators you need to handle in your functions are '*' and '?'. Return true on success, and false on failure.
Reply to this thread to sign yourself up (Contestant or Judge)
Judges - 0
Contestants - 2