Ben Copsey

Remove ASINSStringAdditions

@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 24
25 // Automatically set on build 25 // Automatically set on build
26 26
27 -NSString *ASIHTTPRequestVersion = @"v1.6.2-64 2010-06-23"; 27 +NSString *ASIHTTPRequestVersion = @"v1.6.2-65 2010-06-23";
28 28
29 NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; 29 NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain";
30 30
1 -//  
2 -// ASINSStringAdditions.h  
3 -// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest  
4 -//  
5 -// Created by Ben Copsey on 12/09/2008.  
6 -// Copyright 2008 All-Seeing Interactive. All rights reserved.  
7 -//  
8 -  
9 -#import <Foundation/Foundation.h>  
10 -  
11 -@interface NSString (CookieValueEncodingAdditions)  
12 -  
13 -- (NSString *)encodedCookieValue;  
14 -- (NSString *)decodedCookieValue;  
15 -  
16 -@end  
1 -//  
2 -// ASINSStringAdditions.m  
3 -// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest  
4 -//  
5 -// Created by Ben Copsey on 12/09/2008.  
6 -// Copyright 2008 All-Seeing Interactive. All rights reserved.  
7 -//  
8 -  
9 -#import "ASINSStringAdditions.h"  
10 -  
11 -@implementation NSString (CookieValueEncodingAdditions)  
12 -  
13 -- (NSString *)decodedCookieValue  
14 -{  
15 - NSMutableString *s = [NSMutableString stringWithString:[self stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];  
16 - //Also swap plus signs for spaces  
17 - [s replaceOccurrencesOfString:@"+" withString:@" " options:NSLiteralSearch range:NSMakeRange(0, [s length])];  
18 - return [NSString stringWithString:s];  
19 -}  
20 -  
21 -- (NSString *)encodedCookieValue  
22 -{  
23 - return [self stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];  
24 -}  
25 -  
26 -@end  
27 -  
28 -  
This diff was suppressed by a .gitattributes entry.