roar
Loading...
Searching...
No Matches
regex.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <regex>
5
6namespace Roar
7{
9 {
10 char const* pattern;
11 std::size_t size;
12
13 operator std::regex() const
14 {
15 return std::regex{pattern};
16 }
17 };
18
19 inline namespace Literals
20 {
21 inline namespace RegexLiterals
22 {
23 inline PseudoRegex operator"" _rgx(char const* regexString, std::size_t length)
24 {
25 return PseudoRegex{regexString, length};
26 }
27 }
28 }
29}
Definition authorization.hpp:10
Definition regex.hpp:9
std::size_t size
Definition regex.hpp:11
char const * pattern
Definition regex.hpp:10