Function IconThemeFile.splitValues

Some keys can have multiple values, separated by comma. This function helps to parse such kind of strings into the range.

auto static std.algorithm.iteration.FilterResult!(icontheme.file.IconThemeFile.splitValues(string).__lambda2,std.algorithm.iteration.splitter!("a == b",string,char).splitter(string,char).Result) splitValues (
  string values
) pure nothrow @nogc @trusted;

Returns

The range of multiple nonempty values.

See Also

joinValues

Example

assert(equal(IconThemeFile.splitValues("16x16/actions,16x16/animations,16x16/apps"), ["16x16/actions", "16x16/animations", "16x16/apps"]));
assert(IconThemeFile.splitValues(",").empty);
assert(IconThemeFile.splitValues("").empty);