1
1
forked from 0ad/0ad
0ad/source/lib/regex.h
janwas a34b759720 . split up lib.h/.cpp, include the remnants from PCH, remove (pretty much universal) include of it.
. timer, config: fix definition of ALLOW_RDTSC
. add movsx_be64 (for whirlpool), revise implementation, move to
byte_order, add test
. MAX -> std::max, remove those macros
. add timestamp to system_info as requested by philip

This was SVN commit r5050.
2007-05-09 21:01:11 +00:00

30 lines
879 B
C

/**
* =========================================================================
* File : regex.h
* Project : 0 A.D.
* Description : minimal regex implementation
* =========================================================================
*/
// license: GPL; see lib/license.txt
#ifndef INCLUDED_REGEX
#define INCLUDED_REGEX
/**
* see if string matches pattern.
*
* @param s input string
* @param w pseudo-regex to match against. case-insensitive;
* may contain '?' and/or '*' wildcards. if NULL, matches everything.
*
* @return 1 if they match, otherwise 0.
*
* algorithmfrom http://www.codeproject.com/string/wildcmp.asp.
**/
extern int match_wildcard(const char* s, const char* w);
/// unicode version of match_wildcard.
extern int match_wildcardw(const wchar_t* s, const wchar_t* w);
#endif // #ifndef INCLUDED_REGEX