DesktopFile.joinValues

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

class DesktopFile
static
string
joinValues
(
Range
)
(
Range values
)
if (
isInputRange!Range &&
isSomeString!(ElementType!Range)
)

Return Value

Type: string

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.

Examples

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\\;;"));

See Also

Meta