Commit Graph

4 Commits

Author SHA1 Message Date
Nicholas Wilson
5447a395dc Automatic update of doc files #noupdate 2025-02-04 13:03:43 +00:00
Nicholas Wilson
f15bdd334d Update all man page dates #noupdate (#634) 2024-12-18 14:12:58 +00:00
Carlo Marcelo Arenas Belón
328b80010c doc: include summary of directives in pcre2_set_optimize.3 (#486)
Make the documentation of the new API more useful at a first glance
by providing the list of values that can be used while keeping all
details in pcre2api.3, and just like it is done in other similar pages.

While at it reorder the entries for the directives in pcre2api.3 so it
is more natural and to match the one used here.
2024-09-22 09:45:36 +01:00
Alex Dowad
b868b411e2 Add new API function pcre2_set_optimization() for controlling enabled optimizations (#471)
It is anticipated that over time, more and more optimizations will be
added to PCRE2, and we want to be able to switch optimizations off/on,
both for testing purposes and to be able to work around bugs in a
released library version.

The number of free bits left in the compile options word is very small.
Hence, we will start putting all optimization enable/disable flags in
a separate word. To switch these off/on, the new API function
pcre2_set_optimization() will be used.

The values which can be passed to pcre2_set_optimization() are
different from the internal flag bit values. The values accepted by
pcre2_set_optimization() are contiguous integers, so there is no
danger of ever running out of them. This means in the future, the
internal representation can be changed at any time without breaking
backwards compatibility. Further, the 'directives' passed to
pcre2_set_optimization() are not restricted to control a single,
specific optimization. As an example, passing PCRE2_OPTIMIZATION_FULL
will turn on all optimizations supported by whatever version of
PCRE2 the client program happens to be linked with.

Co-authored-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Co-authored-by: Zoltan Herczeg <hzmester@freemail.hu>
2024-09-21 14:14:32 +01:00