Commit Graph

14 Commits

Author SHA1 Message Date
Nicholas Wilson
eb3bd3cf14 New pcre2_next_match() API to simplify pcre2demo, test, and substitute (#733)
* The primary purpose of pcre2_next_match() is to make it much easier for
  PCRE2 clients to iterate over matches, without needing an advanced knowledge
  of regular expressions.
* Secondly, we can simplify our own code by merging the three duplicate
  implementations of the /g global match behaviour: pcre2demo, pcre2_substitute,
  and pcre2test.
* Thirdly, as I look closely at the issue, I can improve the documentation.
* Fourthly, I would like to actually simplify the logic, removing a complex loop
  which makes several match attempts, swallows duplicate matches, and more.
  We can have identical behaviour with a simple retry using
  PCRE2_NOTEMPTY_ATSTART.
2025-03-24 13:29:52 +00:00
github-actions[bot]
773486b4b5 Sync autogenerated files #noupdate 2025-02-28 22:29:19 +00:00
github-actions[bot]
3e68381dae Sync autogenerated files #noupdate 2025-02-26 22:29:20 +00:00
Nicholas Wilson
1fffb0d44e Updates to the README and some documentation (#681) 2025-02-01 15:50:20 +00:00
Philip Hazel
7b649dce27 For the pcre2demo man page, put the source code in its own section rather than everything under NAME 2024-01-06 14:44:11 +00:00
Philip Hazel
8f3e11a355 Doc file tidies for 10.38-RC1 2021-08-31 17:14:42 +01:00
Philip Hazel
c232286c6b Update HTML docs. 2021-08-30 16:59:34 +01:00
Philip.Hazel
d70da76dfb Fix some documentation typos. 2021-06-14 10:53:18 +00:00
Philip.Hazel
344056baf8 Update pcre2demo with match_data block size information. 2019-07-19 15:31:54 +00:00
Philip.Hazel
07de1b1a9f Documentation update. 2017-12-24 10:27:13 +00:00
Philip.Hazel
4e67c0c9e9 Tidy pcre2demo.c 2016-02-02 16:25:47 +00:00
Philip.Hazel
c3799e750f Tidy a lot of files (remove trailing spaces) 2014-10-20 17:28:49 +00:00
Philip.Hazel
5543597741 More documentation. 2014-09-29 16:45:37 +00:00
Philip.Hazel
d5495a30f4 Documentation scripts 2014-09-23 11:35:51 +00:00