//=-- WildcardMatcher.h - Class for matching with unix wildcards --------------=
//
//  This class defines a filter class for matching text against unix wild 
//  cards.  This class recognizes the ?, *, and [] wildcards.
//
//=---------------------------------------------------------------------------=
//  This file is copyright (c) 1997-1998 Chris Lattner
//=---------------------------------------------------------------------------=

#ifndef WILDCARDMATCHER_H
#define WILDCARDMATCHER_H

#include "TextMatcher.h"

class MSAPI WildcardMatcher : public TextMatcher {
public :
  inline WildcardMatcher(const String &pattern) : Pattern(pattern) { }

protected :
  virtual int MatchImpl(const char *S);

private :
  const String Pattern;

  // Match121 - Returns 0 if the string does not match the Filter/pattern returns
  //   1 if they do match.
  //
  int Match121(const char *Fil, const char *Str);
};

#endif
