PageRenderTime 277ms CodeModel.GetById 97ms app.highlight 3ms RepoModel.GetById 0ms app.codeStats 1ms

/NSString+Extras.h

http://github.com/bububa/MongoHub-Mac
C Header | 30 lines | 17 code | 6 blank | 7 comment | 0 complexity | d9eb980784bf7978b377263a66c762d4 MD5 | raw file
 1//
 2//  NSString+Extras.h
 3//  MongoHub
 4//
 5//  Created by Syd on 10-4-28.
 6//  Copyright 2010 ThePeppersStudio.COM. All rights reserved.
 7//
 8
 9#import <Cocoa/Cocoa.h>
10
11
12@interface NSString (Extras)
13
14+ (NSString*)stringFromResource:(NSString*)resourceName;
15- (BOOL)startsWithString:(NSString*)otherString;
16- (BOOL)endsWithString:(NSString*)otherString;
17- (BOOL)isPresent;
18- (NSComparisonResult)compareCaseInsensitive:(NSString*)other;
19- (NSString*)stringByPercentEscapingCharacters:(NSString*)characters;
20- (NSString*)stringByEscapingURL;
21- (NSString*)stringByUnescapingURL;
22- (BOOL) containsString:(NSString *)aString;
23- (BOOL) containsString:(NSString *)aString ignoringCase:(BOOL)flag;
24- (int)countSubstring:(NSString *)aString ignoringCase:(BOOL)flag;
25- (NSString *)stringByTrimmingWhitespace;
26
27+ (NSNull *)nullValue;
28+ (NSString*)UUIDString;
29
30@end