8#ifndef PXR_ARCH_REGEX_H
9#define PXR_ARCH_REGEX_H
34 ARCH_API
ArchRegex(const std::
string& pattern,
unsigned int flags = 0);
40 ARCH_API explicit operator
bool() const;
51 ARCH_API
bool Match(const std::
string& query) const;
55 unsigned int _flags = 0;
57 std::shared_ptr<const _Impl> _impl;
ArchRegex(ArchRegex &&) noexcept=default
ARCH_API bool Match(const std::string &query) const
Returns true if the regex matches query anywhere, otherwise returns false.
ArchRegex()=default
Create an empty regex.
ARCH_API unsigned int GetFlags() const
Returns the flags used to construct the regex.
ARCH_API std::string GetError() const
Returns the reason the regex is invalid or the empty string if it's valid.
@ CASE_INSENSITIVE
Definition regex.h:21
@ GLOB
Definition regex.h:22