iOS??????ü??????????????У??
???????????? ???????[ 2015/1/27 17:48:08 ] ??????????????? iOS ??????
?????????
??????ios?????????п???????????????????У?飬????????????????????????????????????????????У???????????????????????У?????????????????????????з????????2013??1??1?????????15λ?????????????????У????????15λ?????
??????????????У????????????????????????Щ????????????????????????????????????????????????????????????????У???????????????????“????”?????
???????????
??????????iOS????У??????????6?????????????????????????λ??20???????????????У??????????????18????????м?飬???????????У?????檔
?????????????18λ???17λ????????????????λ???????????X??У??????????Сд??
???????λ??????????35???????е?????11??12??13??14??15??21??22??23??31??32??33??34??35??36??37??41??42??43??44??45??46??50??51??52??53??54??61??62??63??64??65??71??81??82??91
??????7????14λ?????????????7????10λ?????????11??12λ????·????Χ?01??12??13??14λ????????????????·???04????Χ???01??30
??????17λ????????????0??1??0??????1?????
??????18λ??17λ??У??λ?????£?
???????=(n1+n11)*7+(n2+n12)*9+(n3+n13)*10+(n4+n14)*5+(n5+n15)*8+(n6+n16)*4+(n7+n17)*2+n8+n9*6+n10*3??????n1???1λ?????????????
????????????11?????????????????????????012345678910??11?????????????????λ??????????10X98765432
??????7λ?????1????8λ?????9?????????????????λ??????19
?????????????????
?????????????????????????????????????????????????????????д???????У??????д??????????????С?
????VerifyRegexTool.h???????
1#import<Foundation/Foundation.h>
2
3@interfaceVerifyRegexTool:NSObject
4
5+(BOOL)verifyIsNotEmpty:(NSString*)str;//?????????
6
7+(BOOL)verifyText:(NSString*)textwithRegex:(NSString*)regex;//???????
8
9+(BOOL)verifyIDCardNumber:(NSString*)value;//???????
10
11+(BOOL)verifyCardNumberWithSoldier:(NSString*)value;//?????????????
12
13+(BOOL)verifyIDCardHadAdult:(NSString*)card;//???????????????С??100??****????????в???????У?飬???????????????????
14
15+(BOOL)verifyIDCardMoreThanPointDate:(NSString*)cardwithNumber:(NSInteger)numberwithAddTimeInterval:(NSTimeInterval)intervalwithDateType:(DateType)dateType;//???????????????????????????number??????
16
17+(BOOL)verifyIDCardLessThanPointDate:(NSString*)cardwithNumber:(NSInteger)numberwithAddTimeInterval:(NSTimeInterval)intervalwithDateType:(DateType)dateType;//??????????С?????number??????
18
19
20+(NSString*)getIDCardBirthday:(NSString*)card;//?????????????****????????в???????У?飬???????????????????
21+(NSInteger)getIDCardSex:(NSString*)card;//????????????1??0???****????????в???????У?飬???????????????????
22
23@end
|
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11