parseRange

Parse range of indexes to var (eg. "2-4" or "5-1")

Note: If the range "a-b" is reversed (a > b), it's mean two ranges: "a-until", "from-b"

void
parseRange
(
T
R
)
(
ref T val
,,
ubyte from
,
ubyte until
)
if (
isSomeString!R
)

Meta