Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
keyple::common::Pattern Class Reference

#include <Pattern.h>

Public Member Functions

 Pattern (const std::string &pattern, const int flags)
 
std::unique_ptr< Patterncompile (const std::string &regularExpression, const int flags) const
 
std::unique_ptr< Matchermatcher (const std::string &input) const
 

Static Public Member Functions

static std::unique_ptr< Patterncompile (const std::string &pattern)
 

Public Attributes

const std::regex mPattern
 

Constructor & Destructor Documentation

◆ Pattern()

keyple::common::Pattern::Pattern ( const std::string &  pattern,
const int  flags 
)

Constructor

Member Function Documentation

◆ compile() [1/2]

std::unique_ptr< Pattern > keyple::common::Pattern::compile ( const std::string &  pattern)
static

Equivalent to Pattern.compile(pattern, 0)

◆ compile() [2/2]

std::unique_ptr< Pattern > keyple::common::Pattern::compile ( const std::string &  regularExpression,
const int  flags 
) const

Returns a compiled form of the given regular expression, as modified by the given flags.

Exceptions
PatternSyntexException

◆ matcher()

std::unique_ptr< Matcher > keyple::common::Pattern::matcher ( const std::string &  input) const

Member Data Documentation

◆ mPattern

const std::regex keyple::common::Pattern::mPattern

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