Method MakeInterval
MakeInterval(Int32, Int32, Int32)
Returns a new automaton that accepts strings representing decimal non-negative integers in the given interval.
Declaration
public static Automaton MakeInterval(int min, int max, int digits)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | min | Minimal value of interval. |
System.Int32 | max | Maximal value of interval (both end points are included in the interval). |
System.Int32 | digits | If > 0, use fixed number of digits (strings must be prefixed by 0's to obtain the right length) - otherwise, the number of digits is not fixed. |
Returns
Type | Description |
---|---|
Automaton |