Files
xen/tools
Juergen Gross eee0d79134 tools/xl: allow split_string_into_pair() to trim values
Most use cases of split_string_into_pair() are requiring the returned
strings to be white space trimmed.

In order to avoid the same code pattern multiple times, add a predicate
parameter to split_string_into_pair() which can be specified to call
trim() with that predicate for the string pair returned. Specifying
NULL for the predicate will avoid the call of trim().

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jason Andryuk <jandryuk@gmail.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
2023-03-22 10:00:09 +01:00
..
2022-07-11 12:13:24 +02:00
2023-03-20 17:12:34 +01:00
2023-03-17 10:44:16 +00:00
2023-03-17 10:44:16 +00:00