summaryrefslogtreecommitdiff
path: root/src/test/test-hashmap-ordered.awk
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-11-28 16:37:53 +0100
committerSven Eden <yamakuzure@gmx.net>2017-11-28 16:37:53 +0100
commit14728b9406dccbf6a74f21aaa1cc524273edbb15 (patch)
tree4fc519fe247975bf439aa82531799b18eb6de4de /src/test/test-hashmap-ordered.awk
parent8a5a474e846f8810cb3861ed869da35db74f9a97 (diff)
string-util: rework strextend() to optionally inset separators between each appended string
This adds a new flavour of strextend(), called strextend_with_separator(), which takes an optional separator string. If specified, the separator is inserted between each appended string, as well as before the first one, but only if the original string was non-empty. This new call is particularly useful when appending new options to mount option strings and suchlike, which need to be comma-separated, and initially start out from an empty string.
Diffstat (limited to 'src/test/test-hashmap-ordered.awk')
0 files changed, 0 insertions, 0 deletions