restinio::path2regex::options_t Class Reference

Options for matching routes. More...

`#include <path2regex.hpp>`

## Public Member Functions

options_t & | sensitive (bool s) &
options_t && | sensitive (bool s) &&
bool | sensitive () const
options_t & | strict (bool p) &
options_t && | strict (bool p) &&
bool | strict () const
options_t & | ending (bool p) &
options_t && | ending (bool p) &&
bool | ending () const
options_t & | delimiter (std::string p) &
options_t && | delimiter (std::string p) &&
const std::string & | delimiter () const
std::string | make_delimiter (std::string d) const
options_t & | delimiters (std::string p) &
options_t && | delimiters (std::string p) &&
const std::string & | delimiters () const
options_t & | ends_with (std::vector< std::string > p) &
options_t && | ends_with (std::vector< std::string > p) &&
const std::vector< std::string > & | ends_with () const
std::string | make_ends_with () const

## Private Attributes

bool | m_sensitive { false }
| When true the route will be case sensitive. More...
bool | m_strict { false }
| When false the trailing slash is optional. More...
bool | m_ending { true }
| When false the path will match at the beginning. More...
std::string | m_delimiter { "/" }
| Path delimiter. More...
std::string | m_delimiters { "./" }
| Path delimiters. More...
std::vector< std::string > | m_ends_with
| Path delimiter. More...

## Detailed Description

Options for matching routes.

Examples
  sample/sendfiles/main.cpp.

Definition at line 91 of file path2regex.hpp.

## Member Function Documentation

## delimiter() [1/3]

const std::string & restinio::path2regex::options_t::delimiter | ( |  | ) | const

inline

Definition at line 165 of file path2regex.hpp.

## delimiter() [2/3]

options_t & restinio::path2regex::options_t::delimiter | ( | std::string | p | ) | &

inline

Definition at line 152 of file path2regex.hpp.

## delimiter() [3/3]

options_t && restinio::path2regex::options_t::delimiter | ( | std::string | p | ) | &&

inline

Definition at line 159 of file path2regex.hpp.

## delimiters() [1/3]

const std::string & restinio::path2regex::options_t::delimiters | ( |  | ) | const

inline

Definition at line 195 of file path2regex.hpp.

## delimiters() [2/3]

options_t & restinio::path2regex::options_t::delimiters | ( | std::string | p | ) | &

inline

Definition at line 182 of file path2regex.hpp.

## delimiters() [3/3]

options_t && restinio::path2regex::options_t::delimiters | ( | std::string | p | ) | &&

inline

Definition at line 189 of file path2regex.hpp.

## ending() [1/3]

bool restinio::path2regex::options_t::ending | ( |  | ) | const

inline

Definition at line 146 of file path2regex.hpp.

## ending() [2/3]

options_t & restinio::path2regex::options_t::ending | ( | bool | p | ) | &

inline

Definition at line 133 of file path2regex.hpp.

## ending() [3/3]

options_t && restinio::path2regex::options_t::ending | ( | bool | p | ) | &&

inline

Definition at line 140 of file path2regex.hpp.

## ends_with() [1/3]

const std::vector< std::string > & restinio::path2regex::options_t::ends_with | ( |  | ) | const

inline

Definition at line 214 of file path2regex.hpp.

## ends_with() [2/3]

options_t & restinio::path2regex::options_t::ends_with | ( | std::vector< std::string > | p | ) | &

inline

Definition at line 201 of file path2regex.hpp.

## ends_with() [3/3]

options_t && restinio::path2regex::options_t::ends_with | ( | std::vector< std::string > | p | ) | &&

inline

Definition at line 208 of file path2regex.hpp.

## make_delimiter()

std::string restinio::path2regex::options_t::make_delimiter | ( | std::string | d | ) | const

inline

Definition at line 171 of file path2regex.hpp.

## make_ends_with()

std::string restinio::path2regex::options_t::make_ends_with | ( |  | ) | const

inline

Definition at line 220 of file path2regex.hpp.

## sensitive() [1/3]

bool restinio::path2regex::options_t::sensitive | ( |  | ) | const

inline

Definition at line 108 of file path2regex.hpp.

## sensitive() [2/3]

options_t & restinio::path2regex::options_t::sensitive | ( | bool | s | ) | &

inline

Definition at line 95 of file path2regex.hpp.

## sensitive() [3/3]

options_t && restinio::path2regex::options_t::sensitive | ( | bool | s | ) | &&

inline

Definition at line 102 of file path2regex.hpp.

## strict() [1/3]

bool restinio::path2regex::options_t::strict | ( |  | ) | const

inline

Definition at line 127 of file path2regex.hpp.

## strict() [2/3]

options_t & restinio::path2regex::options_t::strict | ( | bool | p | ) | &

inline

Examples
  sample/sendfiles/main.cpp.

Definition at line 114 of file path2regex.hpp.

## strict() [3/3]

options_t && restinio::path2regex::options_t::strict | ( | bool | p | ) | &&

inline

Definition at line 121 of file path2regex.hpp.

## Member Data Documentation

## m_delimiter

std::string restinio::path2regex::options_t::m_delimiter { "/" }

private

Path delimiter.

Definition at line 248 of file path2regex.hpp.

## m_delimiters

std::string restinio::path2regex::options_t::m_delimiters { "./" }

private

Path delimiters.

Definition at line 251 of file path2regex.hpp.

## m_ending

bool restinio::path2regex::options_t::m_ending { true }

private

When false the path will match at the beginning.

Definition at line 245 of file path2regex.hpp.

## m_ends_with

std::vector< std::string > restinio::path2regex::options_t::m_ends_with

private

Path delimiter.

Definition at line 254 of file path2regex.hpp.

## m_sensitive

bool restinio::path2regex::options_t::m_sensitive { false }

private

When true the route will be case sensitive.

Definition at line 239 of file path2regex.hpp.

## m_strict

bool restinio::path2regex::options_t::m_strict { false }

private

When false the trailing slash is optional.

Definition at line 242 of file path2regex.hpp.

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

- restinio/path2regex/path2regex.hpp