![]() |
JPCRE2
10.32.01
C++ wrapper for PCRE2 library
|
This class contains a typedef of a function pointer or a templated function wrapper (std::function
) to provide callback function to the MatchEvaluator
.
More...
#include <jpcre2.hpp>
This class contains a typedef of a function pointer or a templated function wrapper (std::function
) to provide callback function to the MatchEvaluator
.
std::function
is used when >=C++11
is being used , otherwise function pointer is used. You can force using function pointer instead of std::function
when >=C++11
is used by defining the macro JPCRE2_USE_FUNCTION_POINTER_CALLBACK
before including jpcre2.hpp. If you are using lambda function with capture, you must use the std::function
approach.
The callback function takes exactly three positional arguments:
T1 | The first argument must be jp::NumSub const & aka std::vector<String> const & (or void* if not needed). |
T2 | The second argument must be jp::MapNas const & aka std::map<String, size_t> const & (or void* if not needed). |
T3 | The third argument must be jp::MapNtN const & aka std::map<String, String> const & (or void* if not needed). |
Examples: