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

    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)
  • max

    repeat at most ‘n’ times, driven by a collection statergy

    Declaration

    Swift

    case max(Int, CollectionStatergy)
  • min

    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)