18 #ifndef PAGESPEED_KERNEL_BASE_WILDCARD_H_
19 #define PAGESPEED_KERNEL_BASE_WILDCARD_H_
25 namespace net_instaweb {
34 explicit Wildcard(
const StringPiece& wildcard_spec);
37 bool Match(
const StringPiece& str)
const;
44 const StringPiece
spec()
const {
45 return StringPiece(storage_.data(), storage_.size() - 1);
53 int last_block_offset,
bool is_simple);
55 void InitFromSpec(
const StringPiece& wildcard_spec);
59 int last_block_offset_;
Wildcard(const StringPiece &wildcard_spec)
const StringPiece spec() const
Returns the original wildcard specification.
Definition: wildcard.h:44
static const char kMatchOne
?
Definition: wildcard.h:30
static const char kMatchAny
Definition: wildcard.h:29
bool IsSimple() const
Definition: wildcard.h:41
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: wildcard.h:27
Wildcard * Duplicate() const
Makes a duplicate copy of the wildcard object.
bool Match(const StringPiece &str) const
Determines whether a string matches the wildcard.