Function needMultipleInstances
Check if application should be started multiple times to open multiple urls.
bool needMultipleInstances
(
scope const(string)[] execArgs
) pure nothrow @nogc @safe;
Parameters
Name | Description |
---|---|
execArgs | Array of unescaped and unquoted arguments. |
Returns
true if execArgs have only %f or %u and not %F or %U. Otherwise false is returned.
See Also
Example
assert(needMultipleInstances(["program", "%f"]));
assert(needMultipleInstances(["program", "%u"]));
assert(!needMultipleInstances(["program", "%i"]));
assert(!needMultipleInstances(["program", "%F"]));
assert(!needMultipleInstances(["program", "%U"]));
assert(!needMultipleInstances(["program", "%f", "%U"]));
assert(!needMultipleInstances(["program", "%F", "%u"]));