diff --git a/include/url.h b/include/url.h index 4622d67..61f96e4 100644 --- a/include/url.h +++ b/include/url.h @@ -248,24 +248,24 @@ namespace Url */ Url& unpunycode(); - private: - // Private, unimplemented to prevent use. - Url(); - /** - * Remove repeated, leading, and trailing instances of chr from the string. + * Ensure all the provided characters are escaped if necessary */ - void remove_repeats(std::string& str, const char chr); + static void escape(std::string& str, const CharacterClass& safe, bool strict); /** - * Ensure all the provided characters are escaped if necessary + * Unescape entities in the provided string */ - void escape(std::string& str, const CharacterClass& safe, bool strict); + static void unescape(std::string& str); + + private: + // Private, unimplemented to prevent use. + Url(); /** - * Unescape entities in the provided string + * Remove repeated, leading, and trailing instances of chr from the string. */ - void unescape(std::string& str); + void remove_repeats(std::string& str, const char chr); /** * Remove any params that match entries in the blacklist.