@@ -26,15 +26,18 @@ } #endif @interface OFString (URLEncoding) /*! - * @brief Encodes a string for use in a URL. - * - * @return A new autoreleased string + * The string as an URL encoded string for use in a URL. + */ +@property (readonly, nonatomic) OFString *stringByURLEncoding; + +/*! + * The string as an URL decoded string. */ -- (OFString *)stringByURLEncoding; +@property (readonly, nonatomic) OFString *stringByURLDecoding; /*! * @brief Encodes a string for use in a URL, but does not escape the specified * ignored characters. * @@ -41,15 +44,8 @@ * @param allowed A C string of characters that should not be escaped * * @return A new autoreleased string */ - (OFString *)stringByURLEncodingWithAllowedCharacters: (const char *)allowed; - -/*! - * @brief Decodes a string used in a URL. - * - * @return A new autoreleased string - */ -- (OFString *)stringByURLDecoding; @end OF_ASSUME_NONNULL_END