]> Savannah Git Hosting - gnulib.git/commit
quotearg: add quotearg_n_style_colon()
authorPádraig Brady <P@draigBrady.com>
Wed, 4 Nov 2015 23:01:25 +0000 (23:01 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 4 Nov 2015 23:11:11 +0000 (23:11 +0000)
commit3e4ade272049d08f40315670af65c4bf16618192
treec83826636f404b336e520d62e0255442b6dcfc7f
parent8780c1786db440a0ef1c0776dfff68134602fcea
quotearg: add quotearg_n_style_colon()

This quotes with default options of the specified style,
but with quoting enabled for instances of ':'.

While this can be simulated by temporarily modifying
the default quoting style, this is a little awkward,
and care must be taken with such an implementation
to avoid inlining leading to bloated text.

* lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
* lib/quotearg.c (quotearg_n_style_colon): New function implementation.
lib/quotearg.c
lib/quotearg.h