#include <xmltooling/util/URLEncoder.h>
Public Member Functions | |
virtual std::string | encode (const char *s) const |
Produce a URL-safe but equivalent version of the input string. | |
virtual void | decode (char *s) const |
Perform an in-place decoding operation on the input string. | |
Protected Member Functions | |
virtual bool | isBad (char ch) const |
Returns true iff the input character requires encoding. |
Since URL-encoding is not canonical, it's important that the same encoder is used during some library operations and the calling code. Applications can supply an alternative implementation to the library if required.
|
Perform an in-place decoding operation on the input string. The resulting string will be NULL-terminated.
|
|
Produce a URL-safe but equivalent version of the input string.
|
|
Returns true iff the input character requires encoding.
|