AlphaRule
115 |public class AlphaRule: CharacterSetRule
118 |
119 | AlphaRule
is a subclass of CharacterSetRule
. It is used to verify that a field has a
122 | valid list of alpha characters.
-
128 |
-
129 | 130 |136 |
131 | 132 | 133 | init(message:) 134 |
135 |137 | 138 |179 |139 | 140 | 178 |141 |144 |Initializes an
142 | 143 |AlphaRule
object to verify that a field has valid set of alpha characters.145 |152 |Declaration
146 |147 |151 |Swift
148 |
149 | 150 |public init(message: String = "Enter valid alphabetic characters")
153 |172 |Parameters
154 |155 | 156 |
171 |157 | 169 | 170 |158 | 162 |159 | message 160 |
161 |163 | 168 |164 |167 |String of error message.
165 | 166 |173 |177 |Return Value
174 |An initialized object, or nil if an object could not be created for some reason.
175 | 176 |
180 |