Changes for version 0.243 - 2023-08-12

  • Performance Improvement
    • The performance of the replace method is improved, because the string is not copied repeatedly.
  • New Features
    • The following methods are added to the Regex class.
      • method buffer_match : Regex::Match ($string_buffer : StringBuffer, $offset : int = 0, $length : int = -1);
      • method buffer_match_forward : Regex::Match ($string_buffer : StringBuffer, $offset_ref : int*, $length : int = -1);
      • method buffer_replace : void ($string_buffer : StringBuffer, $replace : object of string|Regex::Replacer, $offset : int = 0, $length : int = -1, $options : object[] = undef);
      • method buffer_replace_g : string ($string_buffer : StringBuffer, $replace : object of string|Regex::Replacer, $offset : int = 0, $length : int = -1, $options : object[] = undef);
      • method buffer_replace_common : void ($string_buffer : StringBuffer, $replace : object of string|Regex::Replacer, $offset_ref : int*, $length : int = -1, $options : object[] = undef);

Modules

Regular Expressions
Regex Matching Result
Regex Replacement Information
Interface for Regex Replacement Callback