Cross-Platform C++

ot::net
class URLDecoder

#include "ot/net/URLDecoder.h"

A class module containing static methods for decoding strings that have been transmitted as an escaped URL.




Method Summary
static String Decode(const String& s)
         Converts an escaped string in the MIME x-www-form-urlencoded format into a plain Unicode string.
static String RawDecode(const String& s)
         Converts a raw-encoded URI string into a Unicode String.

Method Detail

Decode

static String Decode(const String& s)
Converts an escaped string in the MIME x-www-form-urlencoded format into a plain Unicode string. To convert a URL, each character is examined in turn:

See also:
URLEncoder::Encode()

RawDecode

static String RawDecode(const String& s)
Converts a raw-encoded URI string into a Unicode String. This method performs a similar function to Decode(), but the algorithm has been modified to complement the URLEncoder::RawEncode() function which performs an idempotent transformation.

The algorithm employed is described in the W3C XML recommendation section 4.2.2, External Entities.



Cross-Platform C++

Found a bug or missing feature? Please email us at support@elcel.com

Copyright © 2000-2003 ElCel Technology   Trademark Acknowledgements