C++ wrapper for PCRE2 Library
Fix issue 29: Numbered vectors will always contain all the capture groups
MatchEvaluator
.RegexReplace::getLastReplaceCount()
.RegexReplace::setReplaceCounter()
.size_t* counter
to MatchEvaluator::replace()
and MatchEvaluator::nreplace()
initMatch()
a synonym for getMatchObject()
.initReplace()
a synonym for getReplaceObject()
.match()
function.setMatchData()
to setMatchDataBlock()
.MatchEvaluator::resetMatchData()
clear()
functions to each class.Regex::initMatchFrom()
and Regex::initReplaceFrom()
.Regex::match()
and Regex::replace()
without any argument.ModifierTable
class for creating custom modifier tables.replace()
function to take MatchEvaluator.SUBSTITUTE_RESULT_INIT_SIZE
constantJPCRE2_DISABLE_CHAR1632
to disable char16_t and char32_t support.match()
and replace()
function in the Regex class has changed. When they are called with no argument they will use previously set options, but when they are called with arguments, they will initiate a temporary match/replace object and will not use (or change) any previous options. This temporary object will not affect any class variables (i.e previously set option) and it won't be available after returning the result.RegexMatch::match()
and RegexReplace::replace()
function will no longer take any argument.RegexReplace::setMatchContext()
and RegexReplace::setMatchData()
function.RegexMatch::setMatchContext()
function.JPCRE2_USE_FUNCTION_POINTER_CALLBACK
macro.