Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Attributes | List of all members
net_instaweb::Wildcard Class Reference

Public Member Functions

 Wildcard (const StringPiece &wildcard_spec)
 
bool Match (const StringPiece &str) const
 Determines whether a string matches the wildcard.
 
bool IsSimple () const
 
const StringPiece spec () const
 Returns the original wildcard specification.
 
WildcardDuplicate () const
 Makes a duplicate copy of the wildcard object.
 

Static Public Attributes

static const char kMatchAny
 
static const char kMatchOne
 ?
 

Constructor & Destructor Documentation

net_instaweb::Wildcard::Wildcard ( const StringPiece &  wildcard_spec)
explicit

Create a wildcard object with the specification using * and ? as wildcards. There is currently no way to quote * or ?.

Member Function Documentation

bool net_instaweb::Wildcard::IsSimple ( ) const
inline

Determines whether this wildcard is just a simple name, lacking any wildcard characters.

Member Data Documentation

const char net_instaweb::Wildcard::kMatchAny
static

The documentation for this class was generated from the following file: