source: trunk/NSString-Extensions.m @ 123

Last change on this file since 123 was 123, checked in by pmerrill, 10 years ago
  • changed MyCompany? name to www.nanopi.net
  • added xml importing to the file import tool
File size: 443 bytes
Line 
1//
2//  NSString-Extensions.m
3//  Sapphire
4//
5//  Created by Graham Booker on 6/30/07.
6//  Copyright 2007 __www.nanopi.net__. All rights reserved.
7//
8
9#import "NSString-Extensions.h"
10
11@implementation NSString (PostStrings)
12- (NSString *)URLEncode
13{
14        NSString *result = (NSString *) CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)self, NULL, CFSTR("?=&+"), kCFStringEncodingUTF8);
15        return [result autorelease];
16}
17@end
Note: See TracBrowser for help on using the repository browser.