ObjFW  Diff

Differences From Artifact [413ff97b8f]:

  • File src/OFURLEncoding.h — part of check-in [b992a4b0e5] at 2009-05-16 14:28:15 on branch trunk — Add OFURLEncoding for OFString category. (user: js size: 723)

To Artifact [372c3e5fe1]:

  • File src/OFURLEncoding.h — part of check-in [033054ad75] at 2009-05-29 19:21:57 on branch trunk — A few renames. OFExceptions: * OFNoMemException to OFOutOfMemoryException. * OFMemNotPartOfObjException to OFMemoryNotPartOfObjectException. OFObject: * -[addItemToMemoryPool:] to -[addMemoryToPool:]. * -[allocWithSize:] to -[allocMemoryWithSize:]. * -[allocNItems:withSize] to -[allocMemoryForNItems:withSize:]. * -[resizeMem:toSize] to -[resizeMemory:toSize:]. * -[resizeMem:toNItems:withSize:] to -[resizeMemoryToNItems:withSize:]. * -[freeMem] to -[freeMemory:]. OFString: * -[urlencode] to -[urlEncodedString]. * -[urldecode] to -[urlDecodedString]. (user: js size: 737)

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 */
@interface OFString (OFURLEncoding)
/**
 * Encodes a string for use in a URL.
 *
 * \return A new, autoreleased string
 */
- (OFString*)urlencode;

/**
 * Decodes a string used in a URL.
 *
 * \return A new, autoreleased string
 */
- (OFString*)urldecode;
@end







|






|

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 */
@interface OFString (OFURLEncoding)
/**
 * Encodes a string for use in a URL.
 *
 * \return A new, autoreleased string
 */
- (OFString*)urlEncodedString;

/**
 * Decodes a string used in a URL.
 *
 * \return A new, autoreleased string
 */
- (OFString*)urlDecodedString;
@end