Pixar Arch 0.25.8
Loading...
Searching...
No Matches
pxr::ArchRegex Class Reference

#include <regex.h>

Public Types

enum  : unsigned int { CASE_INSENSITIVE = 1u , GLOB = 2u }

Public Member Functions

 ArchRegex ()=default
 Create an empty regex.
 ArchRegex (ArchRegex &&) noexcept=default
 ArchRegex (ArchRegex const &)=default
ArchRegexoperator= (ArchRegex &&) noexcept=default
ArchRegexoperator= (ArchRegex const &)=default
 ArchRegex (const std::string &pattern, unsigned int flags=0)
 Create with pattern and optional flags.
 ~ArchRegex ()
 Destructor.
 operator bool () const
 Returns true if the regex is valid.
std::string GetError () const
 Returns the reason the regex is invalid or the empty string if it's valid.
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.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : unsigned int
Enumerator
CASE_INSENSITIVE 
GLOB 

Constructor & Destructor Documentation

◆ ArchRegex() [1/4]

pxr::ArchRegex::ArchRegex ( )
default

Create an empty regex.

◆ ArchRegex() [2/4]

pxr::ArchRegex::ArchRegex ( ArchRegex && )
defaultnoexcept

◆ ArchRegex() [3/4]

pxr::ArchRegex::ArchRegex ( ArchRegex const & )
default

◆ ArchRegex() [4/4]

pxr::ArchRegex::ArchRegex ( const std::string & pattern,
unsigned int flags = 0 )

Create with pattern and optional flags.

◆ ~ArchRegex()

pxr::ArchRegex::~ArchRegex ( )

Destructor.

Member Function Documentation

◆ operator=() [1/2]

ArchRegex & pxr::ArchRegex::operator= ( ArchRegex && )
defaultnoexcept

◆ operator=() [2/2]

ArchRegex & pxr::ArchRegex::operator= ( ArchRegex const & )
default

◆ operator bool()

pxr::ArchRegex::operator bool ( ) const
explicit

Returns true if the regex is valid.

◆ GetError()

std::string pxr::ArchRegex::GetError ( ) const

Returns the reason the regex is invalid or the empty string if it's valid.

◆ GetFlags()

unsigned int pxr::ArchRegex::GetFlags ( ) const

Returns the flags used to construct the regex.

◆ Match()

bool pxr::ArchRegex::Match ( const std::string & query) const

Returns true if the regex matches query anywhere, otherwise returns false.


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