class CCL::UrlEncoder
Overview
#include <urlencoder.h> class UrlEncoder { public: // enums enum Scheme; // construction UrlEncoder (Scheme scheme = kDefault, TextEncoding textEncoding = Text::kUTF8); // methods MutableCString encode (CStringRef string); String encode (StringRef string); MutableCString encodePathComponents (CStringRef string); String encodePathComponents (StringRef string); MutableCString encode (const ICStringDictionary& parameters); String encode (const IStringDictionary& parameters); MutableCString decode (CStringRef string); String decode (StringRef string); MutableCString decodePathComponents (CStringRef string); String decodePathComponents (StringRef string); IStringDictionary& decode (IStringDictionary& parameters, StringRef string); ICStringDictionary& decode (ICStringDictionary& parameters, CStringRef string); };
Detailed Documentation
Methods
MutableCString encode (CStringRef string)
Encode C-String.
String encode (StringRef string)
Encode Unicode.
MutableCString encodePathComponents (CStringRef string)
Encode path components respecting “/” delimiter (C-String).
String encodePathComponents (StringRef string)
Encode path components respecting “/” delimiter (Unicode).
MutableCString encode (const ICStringDictionary& parameters)
Encode C-String parameters.
String encode (const IStringDictionary& parameters)
Encode Unicode parameters.
MutableCString decode (CStringRef string)
Decode to C-String.
String decode (StringRef string)
Decode to Unicode.
MutableCString decodePathComponents (CStringRef string)
Decode path components respecting “/” delimiter (C-String).
String decodePathComponents (StringRef string)
Decode path components respecting “/” delimiter (Unicode).
IStringDictionary& decode (IStringDictionary& parameters, StringRef string)
Decode Unicode parameters.
ICStringDictionary& decode (ICStringDictionary& parameters, CStringRef string)
Decode C-String parameters.