PCRE2 C++ Wrapper 1.3.0
pcre2cpp
Loading...
Searching...
No Matches
Utilities

group with utilities (not for end user to use) More...

Collaboration diagram for Utilities:

Classes

struct  pcre2cpp::utils::pcre2_data< utf >
 Translation container from pcre2 library to pcre2cpp. More...
struct  pcre2cpp::utils::pcre2_data< utf_type::UTF_8 >
 Specialization of Translation container from pcre2 library to pcre2cpp for UTF-8. More...
struct  pcre2cpp::utils::pcre2_data< utf_type::UTF_16 >
 Specialization of Translation container from pcre2 library to pcre2cpp for UTF-16. More...
struct  pcre2cpp::utils::pcre2_data< utf_type::UTF_32 >
 Specialization of Translation container from pcre2 library to pcre2cpp for UTF-32. More...

Macros

#define _PCRE2CPP_STRINGIFY_HELPER(x)
 stringify helper
#define _PCRE2CPP_VERSION_TO_STRING(major, minor, patch)
 converts version numbers to string
#define _PCRE2CPP_VERSION_TO_INT(major, minor, patch)
 converts version number to int
#define _PCRE2CPP_LAST_UPDATE_DATE_HELPER(day, month, year)
 converts last update date to string
#define _PCRE2CPP_HAS_CXX17   __cplusplus >= 201703l
 check if compiler has c++ version greater or equal to c++17
#define _PCRE2CPP_HAS_CXX20   0
 check if compiler has c++ version greater or equal to c++20 and if user enabled c++20 features using PCRE2CPP_ENABLE_CXX20
#define _PCRE2CPP_HAS_EXCEPTIONS   0
 check if exceptions are enabled
#define _PCRE2CPP_HAS_ASSERTS   _PCRE2CPP_HAS_CXX17
 check if asserts are enabled
#define _PCRE2CPP_HAS_UTF8   1
 check if support for UTF-8 is enabled
#define _PCRE2CPP_HAS_UTF16   1
 check if support for UTF-16 is enabled
#define _PCRE2CPP_HAS_UTF32   1
 check if support for UTF-32 is enabled
#define _PCRE2CPP_CONSTEXPR17   constexpr
 constexpr for c++17 and higher
#define _PCRE2CPP_CONSTEXPR20   constexpr
 constexpr keyword for c++20 and higher
#define _PCRE2CPP_REQUIRES(condition)
 requires keyword for c++20 and higher
#define _PCRE2CPP_PCRE2_FUNC_CONSTEXPR17   constexpr
 adds constexpr to pcre2 function pointers only if pcre2 is static library
#define _PCRE2CPP_MESSAGE(MESSAGE)
 compiler message
#define _PCRE2CPP_WARNING(MESSAGE)
 compiler warning
#define _PCRE2CPP_ERROR(MESSAGE)
 compiler error
#define pcre2cpp_assert(expression, ...)
 pcre2cpp assert

Detailed Description

group with utilities (not for end user to use)

Macro Definition Documentation

◆ _PCRE2CPP_CONSTEXPR17

#define _PCRE2CPP_CONSTEXPR17   constexpr

constexpr for c++17 and higher

◆ _PCRE2CPP_CONSTEXPR20

#define _PCRE2CPP_CONSTEXPR20   constexpr

constexpr keyword for c++20 and higher

◆ _PCRE2CPP_ERROR

#define _PCRE2CPP_ERROR ( MESSAGE)
Value:
_MSTD_ERROR(MESSAGE)

compiler error

◆ _PCRE2CPP_HAS_ASSERTS

#define _PCRE2CPP_HAS_ASSERTS   _PCRE2CPP_HAS_CXX17

check if asserts are enabled

◆ _PCRE2CPP_HAS_CXX17

#define _PCRE2CPP_HAS_CXX17   __cplusplus >= 201703l

check if compiler has c++ version greater or equal to c++17

◆ _PCRE2CPP_HAS_CXX20

#define _PCRE2CPP_HAS_CXX20   0

check if compiler has c++ version greater or equal to c++20 and if user enabled c++20 features using PCRE2CPP_ENABLE_CXX20

◆ _PCRE2CPP_HAS_EXCEPTIONS

#define _PCRE2CPP_HAS_EXCEPTIONS   0

check if exceptions are enabled

◆ _PCRE2CPP_HAS_UTF16

#define _PCRE2CPP_HAS_UTF16   1

check if support for UTF-16 is enabled

◆ _PCRE2CPP_HAS_UTF32

#define _PCRE2CPP_HAS_UTF32   1

check if support for UTF-32 is enabled

◆ _PCRE2CPP_HAS_UTF8

#define _PCRE2CPP_HAS_UTF8   1

check if support for UTF-8 is enabled

◆ _PCRE2CPP_LAST_UPDATE_DATE_HELPER

#define _PCRE2CPP_LAST_UPDATE_DATE_HELPER ( day,
month,
year )
Value:
#define _PCRE2CPP_STRINGIFY_HELPER(x)
stringify helper
Definition config.hpp:61

converts last update date to string

◆ _PCRE2CPP_MESSAGE

#define _PCRE2CPP_MESSAGE ( MESSAGE)
Value:
_MSTD_MESSAGE(MESSAGE)

compiler message

◆ _PCRE2CPP_PCRE2_FUNC_CONSTEXPR17

#define _PCRE2CPP_PCRE2_FUNC_CONSTEXPR17   constexpr

adds constexpr to pcre2 function pointers only if pcre2 is static library

◆ _PCRE2CPP_REQUIRES

#define _PCRE2CPP_REQUIRES ( condition)
Value:
requires (condition)

requires keyword for c++20 and higher

◆ _PCRE2CPP_STRINGIFY_HELPER

#define _PCRE2CPP_STRINGIFY_HELPER ( x)
Value:
#x

stringify helper

◆ _PCRE2CPP_VERSION_TO_INT

#define _PCRE2CPP_VERSION_TO_INT ( major,
minor,
patch )
Value:
(major * 100 + minor * 10 + patch)

converts version number to int

◆ _PCRE2CPP_VERSION_TO_STRING

#define _PCRE2CPP_VERSION_TO_STRING ( major,
minor,
patch )
Value:

converts version numbers to string

◆ _PCRE2CPP_WARNING

#define _PCRE2CPP_WARNING ( MESSAGE)
Value:
_MSTD_WARNING(MESSAGE)

compiler warning

◆ pcre2cpp_assert

#define pcre2cpp_assert ( expression,
... )
Value:
MSTD_LOG_ASSERT_BASE(expression, [](const std::string_view) -> void {} __VA_OPT__(, ) __VA_ARGS__)

pcre2cpp assert