validateRangeNonNegativeAscending

Validates that the values described by rangeString are non-negative and in ascending order. Validation is skipped if rangeString is null.

void
validateRangeNonNegativeAscending
(
DestType
string option
)
(
in string rangeString
,
lazy string msg = "0 <= <from> < <to> must hold"
)

Parameters

rangeString
Type: string

Range to be validated

Throws

darg_plus.exception.ValidationError unless rangeString is null or 0 <= x && x < y.

See Also

validate

Meta