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.

35 lines
1011 B

  1. /* wildcard.h */
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. /*
  6. * Compare a string against a pattern, without regard to case.
  7. * Case-insensitivity is confined to A-Z vs. a-z.
  8. *
  9. * This function does not deal with 8.3 conventions which might
  10. * be expected for filename comparisons. (In an 8.3 environment,
  11. * "longfilename.html" would match "longfile.htm".)
  12. *
  13. * This code is NOT MBCS-enabled.
  14. *
  15. * fAllowImpliedDot, when set, allows the code to pretend there
  16. * is a dot at the end of pszString if it will help. This is set
  17. * to allow strings like "hosts" to match patterns like "*.*".
  18. * Usually, the caller will scan pszString to see if any real
  19. * dots are present before setting this flag. If pszString has a
  20. * path, ie, "..\hosts", the caller might want to scan only the
  21. * base string ("hosts").
  22. */
  23. extern int __stdcall PatternMatch(
  24. const char *pszString,
  25. const char *pszPattern,
  26. int fAllowImpliedDot);
  27. #ifdef __cplusplus
  28. }
  29. #endif