mirror of
https://github.com/wu736139669/ManagerDemo.git
synced 2026-08-05 05:55:42 +00:00
30 lines
728 B
Objective-C
30 lines
728 B
Objective-C
//
|
|
// NSString+DTURLEncoding.h
|
|
// DTFoundation
|
|
//
|
|
// Created by Oliver Drobnik on 4/16/12.
|
|
// Copyright (c) 2012 Cocoanetics. All rights reserved.
|
|
//
|
|
|
|
/**
|
|
A collection of useful additions for `NSString` to deal with URL encoding.
|
|
*/
|
|
|
|
@interface NSString (DTURLEncoding)
|
|
|
|
/**-------------------------------------------------------------------------------------
|
|
@name Encoding Strings for URLs
|
|
---------------------------------------------------------------------------------------
|
|
*/
|
|
|
|
|
|
/** Encoding suitable for use in URLs.
|
|
|
|
stringByAddingPercentEscapes does not replace serveral characters which are problematics in URLs.
|
|
|
|
@return The encoded version of the receiver.
|
|
*/
|
|
- (NSString *)stringByURLEncoding;
|
|
|
|
@end
|