|
|
@ -21,6 +21,12 @@ func NewIsIn(s string) func(rune) bool { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// NewIsInRunes generates a rune condition checker that accepts
|
|
|
|
|
|
|
|
// the runes specified
|
|
|
|
|
|
|
|
func NewIsInRunes(s ...rune) func(rune) bool { |
|
|
|
|
|
|
|
return NewIsIn(string(s)) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// NewIsOneOf generates a run condition checker that accepts runes
|
|
|
|
// NewIsOneOf generates a run condition checker that accepts runes
|
|
|
|
// accepted by any of the given checkers
|
|
|
|
// accepted by any of the given checkers
|
|
|
|
func NewIsOneOf(s ...func(rune) bool) func(rune) bool { |
|
|
|
func NewIsOneOf(s ...func(rune) bool) func(rune) bool { |
|
|
|