8#ifndef PXR_ARCH_REGEX_H
9#define PXR_ARCH_REGEX_H
11#include "pxr/arch/pxr.h"
12#include "pxr/arch/api.h"
17ARCH_NAMESPACE_OPEN_SCOPE
35 ARCH_API
ArchRegex(const std::
string& pattern,
unsigned int flags = 0);
41 ARCH_API explicit operator
bool() const;
52 ARCH_API
bool Match(const std::
string& query) const;
56 unsigned int _flags = 0;
58 std::shared_ptr<const _Impl> _impl;
61ARCH_NAMESPACE_CLOSE_SCOPE
unsigned int GetFlags() const
Returns the flags used to construct the regex.
bool Match(const std::string &query) const
Returns true if the regex matches query anywhere, otherwise returns false.
ArchRegex(ArchRegex &&) noexcept=default
std::string GetError() const
Returns the reason the regex is invalid or the empty string if it's valid.
ArchRegex()=default
Create an empty regex.
@ CASE_INSENSITIVE
Definition regex.h:22
@ GLOB
Definition regex.h:23