RepeatType
public enum RepeatType
Types of reating functions
-
At Most Once. Same as Regular Expression ‘+’.
Declaration
Swift
case atMostOnce
-
At Least Once. Same as Regular Expression ‘?’
Declaration
Swift
case atLeastOnce
-
Any number of times. Same as Regular Expression ‘*’
Declaration
Swift
case any
-
At most ‘n’ times
Declaration
Swift
case atMost(Int)
-
At Least ‘n’ times
Declaration
Swift
case atLeast(Int)
-
extactly ‘n’ times
Declaration
Swift
case extactly(Int)
-
within a range of a minimum and a maximum count
Declaration
Swift
case between(Int, Int)
-
one or none times, driven by a collection statergy
Declaration
Swift
case oneOrNone(CollectionStatergy)
-
one or more times, driven by a collection statergy
Declaration
Swift
case oneOrMore(CollectionStatergy)
-
zero or more times, driven by a collection statergy
Declaration
Swift
case zeroOrMore(CollectionStatergy)
-
repeat at most ‘n’ times, driven by a collection statergy
Declaration
Swift
case max(Int, CollectionStatergy)
-
repeat at least ‘n’ times, driven by a collection statergy
Declaration
Swift
case min(Int, CollectionStatergy)
-
repeat between the range, driven by a collection statergy
Declaration
Swift
case within(Int, Int, CollectionStatergy)