Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
658 B

  1. #ifndef __REGEXP_H__
  2. #define __REGEXP_H__
  3. #include <windows.h>
  4. #include "utils.h"
  5. #define PAT_START 128 /* Special beginning-of-pattern marker */
  6. #define PAT_END 129 /* Special end-of-pattern marker */
  7. #define PAT_STAR 130 /* Zero or more of any character */
  8. #define PAT_QUES 131 /* Exactly one of any character */
  9. #define PAT_AUGDOT 132 /* Literal '.' or end-of-string */
  10. #define PAT_AUGQUES 133 /* Empty string or non-'.' */
  11. #define PAT_AUGSTAR 134 /* Single character that isn't a '.' */
  12. BOOL test_match(int m, LPSTR target, int pattern[]);
  13. BOOL parse_pattern(LPSTR s, int pattern[]);
  14. BOOL match( LPSTR target, LPSTR regexp);
  15. #endif