roar
Loading...
Searching...
No Matches
include
roar
literals
regex.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
#include <regex>
5
6
namespace
Roar
7
{
8
struct
PseudoRegex
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
}
Roar
Definition
authorization.hpp:10
Roar::PseudoRegex
Definition
regex.hpp:9
Roar::PseudoRegex::size
std::size_t size
Definition
regex.hpp:11
Roar::PseudoRegex::pattern
char const * pattern
Definition
regex.hpp:10
Generated by
1.9.7