parseNumericFieldGroup

parseNumericFieldGroup parses a single number or number range. E.g. '5' or '5-8'. (Private function.)

parseNumericFieldGroup returns a range that iterates over all the values in the field-group. It has options supporting conversion of field numbers to zero-based indices and the use of '0' (zero) as a field number.

This was part of the original code supporting numeric field list and is used by both numeric and named field-list routines.

private
parseNumericFieldGroup
(
T = size_t
ConvertToZeroBasedIndex convertToZero = No.convertToZeroBasedIndex
AllowFieldNumZero allowZero = No.allowFieldNumZero
)
(
string fieldRange
)
if (
isIntegral!T &&
(
!allowZero ||
!convertToZero
||
!isUnsigned!T
)
)

Meta