core-util: Improve pa_replace() behaviour
authorUlrich Eckhardt <ulrich.eckhardt@base-42.de>
Mon, 16 May 2016 17:51:05 +0000 (19:51 +0200)
committerArun Raghavan <arun@arunraghavan.net>
Wed, 22 Jun 2016 07:25:55 +0000 (12:55 +0530)
commit111e332556ce98d52a73baad8f0b51e4885b8383
treee222f0ab7c8f5a30d5a54f5f60cb14d03a93cf20
parentc9c8f4285f31fda5d3051832969983dfe0df1cab
core-util: Improve pa_replace() behaviour

 - Assert that the search string isn't empty.
 - Add test.
 - Improve documentation.
src/pulsecore/core-util.c
src/pulsecore/core-util.h
src/tests/core-util-test.c