mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-17 12:41:05 +03:00
* lib/regex-quote.h: Include <stdbool.h>. (struct regex_quote_spec): New type. (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre): New declarations. (regex_quote_length, regex_quote_copy, regex_quote): Take a 'const struct regex_quote_spec *' argument. * lib/regex-quote.c (RE_*, PCRE_*): New macros. (pcre_special): New constant. (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre): New functions. (regex_quote_length, regex_quote_copy, regex_quote): Take a 'const struct regex_quote_spec *' argument. * modules/regex-quote (Depends-on): Add stdbool. * tests/test-regex-quote.c (check): Update for new API. Add test for anchored results. * NEWS: Mention the API change. Reported by Reuben Thomas and Eric Blake.
26 lines
271 B
Plaintext
26 lines
271 B
Plaintext
Description:
|
|
Construct a regular expression from a literal string.
|
|
|
|
Files:
|
|
lib/regex-quote.h
|
|
lib/regex-quote.c
|
|
|
|
Depends-on:
|
|
stdbool
|
|
xalloc
|
|
mbuiter
|
|
|
|
configure.ac:
|
|
|
|
Makefile.am:
|
|
lib_SOURCES += regex-quote.c
|
|
|
|
Include:
|
|
"regex-quote.h"
|
|
|
|
License:
|
|
GPL
|
|
|
|
Maintainer:
|
|
Bruno Haible
|