-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNSString+ETCategories.h
executable file
·64 lines (42 loc) · 1.75 KB
/
NSString+ETCategories.h
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
// NSString+ETCategories.h
//
//Author: ab
//
// CVS Info: $Id: NSString+ETCategories.h,v 1.9 2000/10/30 17:55:52 cmp Exp $
//
// Copyright (c) 1996-1999 Annard Brouwer. All rights reserved.
// Read the "License" file included in the distribution to find out what you can do with this code.
#import <Foundation/Foundation.h>
#import "ETStringEncodingProtocol.h"
@interface NSString (ETCategories) <ETStringEncodingProtocol>
+ (NSString *)stringWithData:(NSData *)someData
encoding:(NSStringEncoding)anEncoding;
+ (NSString *)emptyString;
+ (id)readPropertyListFromFile:(NSString *)aPath
mustBeOfType:(Class)targetClass
logErrors:(BOOL)showErrors;
+ (id)readPropertyListFromFile:(NSString *)path
encoding:(NSStringEncoding)anEncoding
mustBeOfType:(Class)targetClass
logErrors:(BOOL)showErrors;
+ (NSString *)formattedStringForBytes:(unsigned long long)bytes;
+ (NSString *)formattedStringForNumberOfBytes:(NSNumber *)bytesNumber;
+ (NSString *)formattedStringForNumberOfSeconds:(NSNumber *)secondsNumber;
- (NSString *)stringWithCharactersFromSet:(NSCharacterSet *)aSet;
- (NSString *)stringWithStrippedWhiteSpace;
- (NSString *)stringByTruncatingWhiteSpace;
- (NSString *)stringWithTrimmedWhitespace;
- (BOOL)containsOnlyDigits;
- (BOOL)stringConsistsOfWhitespace;
- (NSData *)base64DecodedStringData;
- (NSString *)uriEncodedString;
- (NSString *)cleansedString;
- (NSString *)encodedStringUsingDictionary:(NSDictionary *)encodingDictionary;
- (SEL)selectorValue;
- (NSString *)asAccessor;
- (NSString *)asSetter;
- (BOOL)isNotEmpty;
- (BOOL)containsNonWhitespaceCharacter;
- (BOOL)containsString:(NSString *)aString;
- (BOOL)caseInsensitiveIsEqual:(NSString *)otherString;
@end