![]() |
JPCRE2
10.32.01
C++ wrapper for PCRE2 library
|
Provides some default static callback functions. More...
#include <jpcre2.hpp>
Static Public Member Functions | |
static String | eraseFill (NumSub const &num, MapNas const &nas, MapNtN const &ntn) |
Callback function that removes the matched part/s in the subject string and takes all match vectors as argument. More... | |
static String | erase (void *, void *, void *) |
Callback function that removes the matched part/s in the subject string and does not take any match vector. More... | |
static String | fill (NumSub const &num, MapNas const &nas, MapNtn const &ntn) |
Callback function for populating match vectors that does not modify the subject string. More... | |
Provides some default static callback functions.
The primary goal of this class is to provide default callback function to MatchEvaluator default constructor which is essentially callback::erase. This class does not allow object instantiation.
|
inlinestatic |
Callback function that removes the matched part/s in the subject string and does not take any match vector.
This is a minimum cost pattern deleting callback function.
It's the default callback function when you Instantiate a MatchEvaluator object with its default constructor:
|
inlinestatic |
Callback function that removes the matched part/s in the subject string and takes all match vectors as argument.
Even though this function itself does not use the vectors, it still takes them so that the caller can perform a match and populate all the match data to perform further evaluation of other callback functions without doing the match again.
num | jp::NumSub vector. |
nas | jp::MapNas map. |
ntn | jp::MapNtN map. |
|
inlinestatic |
Callback function for populating match vectors that does not modify the subject string.
It always returns the total matched part and thus the subject string remains the same.
num | jp::NumSub vector. |
nas | jp::MapNas map. |
ntn | jp::MapNtN map. |