Hash :
fbfced51
Author :
Date :
2011-03-08T10:09:47
regex-quote: New API. * 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.
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