PCRE2 C++ Wrapper 1.2.4
pcre2cpp
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1/*
2 * pcre2cpp - PCRE2 cpp wrapper
3 *
4 * Licensed under the BSD 3-Clause License with Attribution Requirement.
5 * See the LICENSE file for details: https://github.com/MAIPA01/pcre2cpp/blob/main/LICENSE
6 *
7 * Copyright (c) 2025, Patryk Antosik (MAIPA01)
8 *
9 * PCRE2 library included in this project:
10 * Copyright (c) 2016-2024, University of Cambridge.
11 *
12 * See the LICENSE_PCRE2 file for details: https://github.com/MAIPA01/pcre2cpp/blob/main/LICENSE_PCRE2
13 */
14
15#pragma once
16#ifndef _PCRE2CPP_TYPES_HPP_
17 #define _PCRE2CPP_TYPES_HPP_
18
19 #include <pcre2cpp/config.hpp>
20
21 #if !_PCRE2CPP_HAS_CXX17
22_PCRE2CPP_ERROR("This is only available for c++17 and greater!");
23 #else
24
25 #include <pcre2cpp/libs.hpp>
26
27namespace pcre2cpp {
28 enum class utf_type : uint8_t;
29
30 namespace utils {
31 template<utf_type utf>
32 struct pcre2_data;
33 }
34
35 #if _PCRE2CPP_HAS_EXCEPTIONS
36 template<utf_type utf>
37 class basic_pcre2cpp_exception;
38 template<utf_type utf>
39 class basic_regex_exception;
40 template<utf_type utf>
41 class basic_match_result_exception;
42 #endif
43
44 template<utf_type utf>
45 struct basic_match_value;
46 struct sub_match_value;
47 template<utf_type utf>
49 template<utf_type utf>
50 class basic_regex;
51} // namespace pcre2cpp
52 #endif
53#endif
Basic container to result data of match function.
Definition pcre2cpp.hpp:1090
Basic PCRE2 Regex container.
Definition pcre2cpp.hpp:1665
utf_type
Enum with supported utf types.
Definition pcre2cpp.hpp:352
#define _PCRE2CPP_ERROR(MESSAGE)
compiler error
Definition config.hpp:278
Main namespace of pcre2cpp library.
Match value container.
Definition pcre2cpp.hpp:1039
Sub match value container.
Definition pcre2cpp.hpp:1075