萤石云 iOSSDK,移植跨平台相关工程
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
//
//  NSString+DDKit.h
//  DDCategory
//
//  Created by DeJohn Dong on 15-3-20.
//  Copyright (c) 2015年 DDKit. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
@interface NSString (DDKit)
 
@end
 
@interface NSString (DDDate)
 
/**
 *  Get date info string from a date type object
 *
 *  @param date date type object
 *
 *  @return a date info string
 */
+ (NSString *)dd_formatInfoFromDate:(NSDate *)date;
 
/**
 *  Get sns date info string form date type object
 *
 *  @param date date type object
 *
 *  @return a date info string of sns
 */
+ (NSString *)dd_formatDateFromDate:(NSDate *)date;
 
@end
 
@interface NSString (DDPredicate)
 
/**
 *  check the string is email
 *
 *  @param input input string
 *
 *  @return true/false value
 */
+ (BOOL)dd_checkEmail:(NSString *)input;
 
/**
 *  check the string is phone Number
 *
 *  @param input input string
 *
 *  @return true/false value
 */
+ (BOOL)dd_checkPhoneNumber:(NSString *)input;
 
/**
 *  check the string is chinese name
 *
 *  @param input input string
 *
 *  @return true/false value
 */
+ (BOOL)dd_checkChineseName:(NSString *)input;
 
/**
 *  check the string is valudate code
 *
 *  @param input input string
 *
 *  @return true/false value
 */
+ (BOOL)dd_checkValidateCode:(NSString *)input;
 
/**
 *  check the string is strong password string
 *
 *  @param input input string
 *
 *  @return true/false value
 */
+ (BOOL)dd_checkPassword:(NSString *)input;
 
 
/**
 *  check the string is mobile number
 *
 *  @param input input string
 *
 *  @return true/false value
 */
+ (BOOL)dd_checkMobileNumber:(NSString *)input;
 
/**
 *  check the string is validate money
 *
 *  @param input input string
 *
 *  @return true/false value
 */
+ (BOOL)dd_checkWithDrawMoney:(NSString *)input;
 
@end
 
@interface NSString (md5)
 
/**
 *  Get a md5 string - encrypt method
 *
 *  @return The md5 encrypt string
 */
- (NSString *)dd_md5;
 
@end
 
@interface NSString (DDSubString)
 
/**
 *  Get substring from origin string with condition
 *
 *  @param bKey The begin key
 *  @param eKey The end key
 *
 *  @return The result string
 */
- (NSString *)dd_getSubStringBeginKey:(NSString *)bKey endKey:(NSString *)eKey;
 
@end
 
@interface NSString (DDPrice)
 
+ (NSString *)dd_formatPrice:(NSNumber *)price;
 
@end