Removing extern declaration for AFURLEncodedStringFromStringWithEncoding function (CFURLCreateStringByAddingPercentEscapes should be used instead)

This commit is contained in:
Mattt Thompson 2012-08-29 10:55:34 -07:00
parent e1995eae55
commit 0aeaa60a23

View file

@ -58,18 +58,6 @@ typedef enum {
AFPropertyListParameterEncoding, AFPropertyListParameterEncoding,
} AFHTTPClientParameterEncoding; } AFHTTPClientParameterEncoding;
/**
Returns a string, replacing certain characters with the equivalent percent escape sequence based on the specified encoding.
@param string The string to URL encode
@param encoding The encoding to use for the replacement. If you are uncertain of the correct encoding, you should use UTF-8 (NSUTF8StringEncoding), which is the encoding designated by RFC 3986 as the correct encoding for use in URLs.
@discussion The characters escaped are all characters that are not legal URL characters (based on RFC 3986), including any whitespace, punctuation, or special characters.
@return A URL-encoded string. If it does not need to be modified (no percent escape sequences are missing), this function may merely return string argument.
*/
extern NSString * AFURLEncodedStringFromStringWithEncoding(NSString *string, NSStringEncoding encoding);
/** /**
Returns a query string constructed by a set of parameters, using the specified encoding. Returns a query string constructed by a set of parameters, using the specified encoding.