Introduce strbuf_regsub()
commita9abd0fe90326e932faa555c92edf3e68a7039d9
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 17 Mar 2009 01:50:48 +0000 (17 02:50 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 7 Feb 2010 22:03:17 +0000 (7 23:03 +0100)
tree15236283837507d0d8c02ef110ca51f009631f14
parent0b33897c405aeaa84e61dcf36823f9efb6583424
Introduce strbuf_regsub()

The function strbuf_regsub() can be used to replace regular expressions
by a given string.  The special placeholders '\0' - '\9' are substituted
by the corresponding groups; all other letters escaped by a backslash
are copied verbatim (without the slash).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
strbuf.c
strbuf.h
test-strbuf.c