//
//  ValidateUtil.h
//  JasonDevelop
//
//  Created by Jason Lee on 8/5/14.
//  Copyright (c) 2014 JasonDevelop All rights reserved.
//

typedef NS_ENUM(NSInteger, ValidateType) {
    ValidateTypeNull = 1,
    ValidateTypeNumber,
    ValidateTypeMobile,
    ValidateTypeEmail,
    ValidateTypePassword,
    ValidateTypeNickname,
    ValidateTypeDate
};

@interface ValidateUtil : NSObject

#pragma mark - 정규표현식
+ (BOOL)validateCellular:(NSString *)phone;
+ (BOOL)validateUserBirth:(NSString *)birth;
+ (BOOL)validateUserShortBirth:(NSString *)birth;
+ (BOOL)validateEmail:(NSString *)email;
+ (BOOL)validateNumeric:(NSString *)numString;

+ (BOOL)validateCardYear:(NSString *)yearString;
+ (BOOL)validateMonth:(NSString *)monthString;
+ (BOOL)validateDay:(NSString *)dayString month:(NSString *)monthString;
+ (BOOL)validateCardNumber:(NSString *)numString;

+ (BOOL)validateTextfiled:(UITextField *)textfield type:(ValidateType)type title:(NSString *)title;
+ (BOOL)validateTextView:(UITextView *)textview type:(ValidateType)type title:(NSString *)title;

@end