HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ArchRegex Class Reference

#include <regex.h>

Public Types

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

Public Member Functions

ARCH_API ArchRegex ()
 Create an empty regex. More...
 
ARCH_API ArchRegex (const std::string &pattern, unsigned int flags=0)
 
 ArchRegex (const ArchRegex &)=delete
 
ARCH_API ArchRegex (ArchRegex &&) noexcept
 
ArchRegexoperator= (const ArchRegex &)=delete
 
ARCH_API ArchRegexoperator= (ArchRegex &&) noexcept
 
ARCH_API ~ArchRegex ()
 
ARCH_API operator bool () const
 Returns true if the regex is valid. More...
 
ARCH_API std::string GetError () const
 
ARCH_API unsigned int GetFlags () const
 Returns the flags used to construct the regex. More...
 
ARCH_API bool Match (const std::string &query) const
 

Detailed Description

Definition at line 35 of file regex.h.

Member Enumeration Documentation

anonymous enum : unsigned int
Enumerator
CASE_INSENSITIVE 
GLOB 

Definition at line 37 of file regex.h.

Constructor & Destructor Documentation

ARCH_API ArchRegex::ArchRegex ( )

Create an empty regex.

ARCH_API ArchRegex::ArchRegex ( const std::string pattern,
unsigned int  flags = 0 
)
ArchRegex::ArchRegex ( const ArchRegex )
delete
ARCH_API ArchRegex::ArchRegex ( ArchRegex &&  )
noexcept
ARCH_API ArchRegex::~ArchRegex ( )

Member Function Documentation

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

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

ARCH_API unsigned int ArchRegex::GetFlags ( ) const

Returns the flags used to construct the regex.

ARCH_API bool ArchRegex::Match ( const std::string query) const

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

ARCH_API ArchRegex::operator bool ( ) const
explicit

Returns true if the regex is valid.

ArchRegex& ArchRegex::operator= ( const ArchRegex )
delete
ARCH_API ArchRegex& ArchRegex::operator= ( ArchRegex &&  )
noexcept

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