File tree Expand file tree Collapse file tree 4 files changed +18
-14
lines changed
NSStringWrappeer/NSStringWrapper Expand file tree Collapse file tree 4 files changed +18
-14
lines changed Original file line number Diff line number Diff line change 12
12
#define debugMethod ()
13
13
#endif
14
14
15
- #define EMPTY_STRING @""
15
+ #define EMPTY_STRING @""
16
16
17
- #define STR (key ) NSLocalizedString(key, nil)
17
+ #define STR (key ) NSLocalizedString(key, nil)
18
+
19
+ #define PATH_OF_APP_HOME NSHomeDirectory()
20
+ #define PATH_OF_TEMP NSTemporaryDirectory()
21
+ #define PATH_OF_DOCUMENT [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]
Original file line number Diff line number Diff line change 6
6
7
7
/*
8
8
* System Versioning Preprocessor Macros
9
- */
9
+ */
10
10
#define SYSTEM_VERSION_EQUAL_TO (v ) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)
11
11
#define SYSTEM_VERSION_GREATER_THAN (v ) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
12
12
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO (v ) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
@@ -24,4 +24,4 @@ if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"3.1.1")) {
24
24
...
25
25
}
26
26
27
- */
27
+ */
Original file line number Diff line number Diff line change 13
13
/* * Return the char value at the specified index. */
14
14
- (unichar ) charAt : (int )index ;
15
15
16
- /* *
17
- * Compares two strings lexicographically.
18
- * the value 0 if the argument string is equal to this string;
19
- * a value less than 0 if this string is lexicographically less than the string argument;
16
+ /* *
17
+ * Compares two strings lexicographically.
18
+ * the value 0 if the argument string is equal to this string;
19
+ * a value less than 0 if this string is lexicographically less than the string argument;
20
20
* and a value greater than 0 if this string is lexicographically greater than the string argument.
21
21
*/
22
22
- (int ) compareTo : (NSString *) anotherString ;
59
59
60
60
- (NSString *) replaceAll : (NSString *)origin with : (NSString *)replacement ;
61
61
62
- - (NSArray *) split : (NSString *) separator ;
62
+ - (NSArray *) split : (NSString *) separator ;
63
63
64
64
@end
65
65
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ - (unichar) charAt:(int)index {
17
17
return [self characterAtIndex: index];
18
18
}
19
19
20
- /* *
21
- * Java-like method. Compares two strings lexicographically.
22
- * the value 0 if the argument string is equal to this string;
23
- * a value less than 0 if this string is lexicographically less than the string argument;
20
+ /* *
21
+ * Java-like method. Compares two strings lexicographically.
22
+ * the value 0 if the argument string is equal to this string;
23
+ * a value less than 0 if this string is lexicographically less than the string argument;
24
24
* and a value greater than 0 if this string is lexicographically greater than the string argument.
25
25
*/
26
26
- (int ) compareTo : (NSString *) anotherString {
@@ -151,7 +151,7 @@ - (NSString *) replaceAll:(NSString*)origin with:(NSString*)replacement {
151
151
152
152
- (NSArray *) split : (NSString *) separator {
153
153
return [self componentsSeparatedByString: separator];
154
- }
154
+ }
155
155
156
156
157
157
@end
You can’t perform that action at this time.
0 commit comments