Jpcre2 Versions Save

C++ wrapper for PCRE2 Library

10.32.01

3 years ago

Fix issue 29: Numbered vectors will always contain all the capture groups

10.31.04

4 years ago

10.31.03

5 years ago
  • Fix issue #25

10.31.02-2

5 years ago
  • Update doc
  • Add examples of using start offset and end offset with MatchEvaluator.

10.31.02-1

5 years ago
  • Update doc

10.31.02

6 years ago
  • Fix bug #20 and #21

10.31.01

6 years ago
  • Remove explicit bit size from the selector: jpcre2::select
  • Add support for arbitrary map (std::map, std::unordered_map etc.) with jpcre2::select
  • Remove macro JPCRE2_DISABLE_CHAR1632
  • Remove macro JPCRE2_DISABLE_CODE_UNIT_WIDTH_VALIDATION
  • Remove ConvInt and ConvUTF (including Convert16 and Convert32)
  • Add perl compatible replace method: preplace()
  • Add macro JPCRE2_NDEBUG

10.30.02

6 years ago
  • Add RegexReplace::getLastReplaceCount().
  • Add RegexReplace::setReplaceCounter().
  • Add additional parameter size_t* counter to MatchEvaluator::replace() and MatchEvaluator::nreplace()
  • Optimize ModifierTable

10.30.01

7 years ago
  • API change.
  • Make initMatch()a synonym for getMatchObject().
  • Make initReplace() a synonym for getReplaceObject().
  • Improvement to match() function.
  • Different name for the same group is permitted (deviation from the PCRE2 spec 10.21):
  • Implement move constructors and move-assignment operator.
  • Guard against null pointer with well defined behavior.
  • Rename confusing name setMatchData() to setMatchDataBlock().
  • Add MatchEvaluator::resetMatchData()
  • Add clear() functions to each class.
  • Remove Regex::initMatchFrom() and Regex::initReplaceFrom().
  • Remove Regex::match() and Regex::replace() without any argument.
  • Add ModifierTable class for creating custom modifier tables.
  • PCRE2 compatible replace() function to take MatchEvaluator.
  • Match data re-usability by MatchEvaluator.

10.29.02

7 years ago
  1. Removed SUBSTITUTE_RESULT_INIT_SIZE constant
  2. Add JPCRE2_DISABLE_CHAR1632 to disable char16_t and char32_t support.
  3. Object instantiation of select class is prohibited.
  4. The behavior of shorthand 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.
  5. RegexMatch::match() and RegexReplace::replace() function will no longer take any argument.
  6. Add RegexReplace::setMatchContext() and RegexReplace::setMatchData() function.
  7. Add RegexMatch::setMatchContext() function.
  8. MatchEvaluatorCallback function will use const reference of vectors.
  9. Fix MatchEvaluator for compatibility problem.
  10. Add JPCRE2_USE_FUNCTION_POINTER_CALLBACK macro.
  11. Fix unsafe use of pcre2_substring_free