URL escape: Improve API documentation.

This commit is contained in:
Michael Drake 2016-07-24 21:08:05 +01:00
parent a122b94efd
commit 0c7649d030

View File

@ -31,10 +31,12 @@
/** /**
* Escape a string suitable for inclusion in an URL. * Escape a string suitable for inclusion in an URL.
* *
* \param unescaped the unescaped string * \param[in] unescaped the unescaped string
* \param sptoplus true iff spaces should be converted to + * \param[in] sptoplus true iff spaces should be converted to +
* \param escexceptions NULL or a string of characters excluded to be escaped * \param[in] escexceptions NULL or a string of characters to be excluded
* \param result pointer to pointer to buffer to hold escaped string * from escaping.
* \param[out] result Returns pointer to buffer to escaped string.
* Returned string is '\0' terminated.
* \return NSERROR_OK on success * \return NSERROR_OK on success
*/ */
nserror url_escape(const char *unescaped, bool sptoplus, nserror url_escape(const char *unescaped, bool sptoplus,