Skip to content

Validator features

Gokhan Gultekin edited this page Oct 11, 2018 · 3 revisions

Trims white spaces in string:

func trimWhiteSpaces()

Checks regex pattern in string and returns Bool:

func checkRegex(pattern: String) -> Bool

Checks the email is valid or not:

func isValidEmail() -> Bool

Checks the TR identity number valid or not:

func isValidIdentityNumber() -> Bool

Checks the password valid or not:

func isValidPassword() -> Bool

Checks the gender valid or not:

func isValidGender() -> Bool

Checks the OBD device id valid or not:

func isValidOBDDeviceId() -> Bool

Checks the auth code valid or not:

func isValidAuthCode() -> Bool

Checks the year valid or not:

func isValidYear() -> Bool

Checks the birthday valid or not:

func isValidBirthday() -> Bool

Checks the odometer valid or not:

func isValidOdometer() -> Bool

Checks the engine capacity valid or not:

func isValidEngineCapacity() -> Bool

Checks the vehicle name valid or not:

func isValidVehicleName() -> Bool

Checks the plate valid or not:

func isValidPlate() -> Bool

Checks the phone number valid or not:

func isValidPhoneNumber() -> String
Clone this wiki locally