Function DesktopFile.joinValues

Join range of multiple values into a string using semicolon as separator. Adds trailing semicolon.

string joinValues(Range) (
  Range values
)
if (isInputRange!Range && isSomeString!(ElementType!Range));

Returns

Values of range joined into one string with ';' after each value or empty string if range is empty.

Note

If some value of range contains ';' character it's automatically escaped.

See Also

splitValues

Example

assert(DesktopFile.joinValues([""]).empty);
assert(equal(DesktopFile.joinValues(["Application", "Utility", "FileManager"]), "Application;Utility;FileManager;"));
assert(equal(DesktopFile.joinValues(["I;Me", ";You;We;"]), "I\\;Me;\\;You\\;We\\;;"));