Ben Copsey

Remove ASINSStringAdditions

... ... @@ -24,7 +24,7 @@
// Automatically set on build
NSString *ASIHTTPRequestVersion = @"v1.6.2-64 2010-06-23";
NSString *ASIHTTPRequestVersion = @"v1.6.2-65 2010-06-23";
NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain";
... ...
//
// ASINSStringAdditions.h
// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
//
// Created by Ben Copsey on 12/09/2008.
// Copyright 2008 All-Seeing Interactive. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (CookieValueEncodingAdditions)
- (NSString *)encodedCookieValue;
- (NSString *)decodedCookieValue;
@end
//
// ASINSStringAdditions.m
// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
//
// Created by Ben Copsey on 12/09/2008.
// Copyright 2008 All-Seeing Interactive. All rights reserved.
//
#import "ASINSStringAdditions.h"
@implementation NSString (CookieValueEncodingAdditions)
- (NSString *)decodedCookieValue
{
NSMutableString *s = [NSMutableString stringWithString:[self stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
//Also swap plus signs for spaces
[s replaceOccurrencesOfString:@"+" withString:@" " options:NSLiteralSearch range:NSMakeRange(0, [s length])];
return [NSString stringWithString:s];
}
- (NSString *)encodedCookieValue
{
return [self stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
}
@end
This diff was suppressed by a .gitattributes entry.