Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 872a47bdee
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (28 sloc) 0.827 kB
//
// NSString+Extensions.h
//
// Created by Thomas Joulin on 10/17/11.
//
#import <Foundation/Foundation.h>
@interface NSString (Extensions)
// Test Strings
- (BOOL)isValidEmail;
- (BOOL)isNeitherNullNorEmpty;
- (BOOL)startsWith:(NSString *)s;
- (BOOL)containsString:(NSString *)aString;
// Convert Strings
+ (NSString *)stringFromBool:(BOOL)boolean;
+ (NSString *)stringWithData:(NSData *)data;
// Work with date strings
- (NSString *)formattedStringUsingFormat:(NSString *)dateFormat;
- (NSDate *)dateValueWithFormat:(NSString *)format;
- (NSDate *)dateValue;
// Manipulate strings
- (NSString *)substringFrom:(NSInteger)a to:(NSInteger)b;
- (NSInteger)indexOf:(NSString *)substring from:(NSInteger)starts;
- (NSString *)trim;
// URL strings
- (NSString *)urlEncode;
// Hash strings
- (NSString *)sha1Value;
@end
Jump to Line
Something went wrong with that request. Please try again.