|
OpenTop 1.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||||
| SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD | |||||||
#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 ByteString |
DecodeBytes(const ByteString& in)Translates a sequence of Bytes which contain HH sequences into a plain sequence of bytes. |
static String |
RawDecode(const String& s)Converts a raw-encoded URI string into a Unicode String. |
| Method Detail |
static String Decode(const String& s)
For consistency with convention and the URLEncoder::Encode() method, the byte sequence resulting from the HH decoding stage is assumed to be UTF-8. If and invalid UTF-8 sequence is detected then an IllegalCharacterException wil be thrown. If applications need to cope with HH-escaped URLs which have not been converted to UTF-8, the DecodeBytes() function should be used.
IllegalCharacterException - static ByteString DecodeBytes(const ByteString& in)
Each byte in the passed sequence is examined and added to the returned ByteString, except for:-
static String RawDecode(const String& s)
The algorithm employed is described in the W3C XML recommendation section 4.2.2, External Entities.
|
OpenTop 1.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||||
| SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD | |||||||