PCRE2 C++ Wrapper 1.2.4
pcre2cpp
Loading...
Searching...
No Matches
match_error_codes.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#pragma once
15#ifndef _PCRE2CPP_MATCH_ERROR_CODES_HPP_
16 #define _PCRE2CPP_MATCH_ERROR_CODES_HPP_
17
18 #include <pcre2cpp/config.hpp>
19
20 #if !_PCRE2CPP_HAS_CXX17
21_PCRE2CPP_ERROR("This is only available for c++17 and greater!");
22 #else
23
24 #include <pcre2cpp/types.hpp>
25
26namespace pcre2cpp {
31 enum class match_error_codes : int32_t {
33 None = 1,
35 NoMatch = PCRE2_ERROR_NOMATCH,
37 Partial = PCRE2_ERROR_PARTIAL,
43 BadMagic = PCRE2_ERROR_BADMAGIC,
49 BadMode = PCRE2_ERROR_BADMODE,
51 BadOffset = PCRE2_ERROR_BADOFFSET,
53 BadOption = PCRE2_ERROR_BADOPTION,
60 BadUTFOffset = PCRE2_ERROR_BADUTFOFFSET,
66 Callout = PCRE2_ERROR_CALLOUT,
68 DepthLimit = PCRE2_ERROR_DEPTHLIMIT,
70 HeapLimit = PCRE2_ERROR_HEAPLIMIT,
75 Internal = PCRE2_ERROR_INTERNAL,
81 JITStackLimit = PCRE2_ERROR_JIT_STACKLIMIT,
83 MatchLimit = PCRE2_ERROR_MATCHLIMIT,
91 NoMemory = PCRE2_ERROR_NOMEMORY,
93 Null = PCRE2_ERROR_NULL,
102 RecurseLoop = PCRE2_ERROR_RECURSELOOP
103 };
104} // namespace pcre2cpp
105 #endif
106#endif
@ None
No options set (default).
Definition pcre2cpp.hpp:967
#define _PCRE2CPP_ERROR(MESSAGE)
compiler error
Definition config.hpp:278
Main namespace of pcre2cpp library.