IconThemeFile.splitValues

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

class IconThemeFile
@trusted static
splitValues
(
string values
)

Return Value

Type: auto

The range of multiple nonempty values.

Examples

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

See Also

Meta