RLib  5.7
RLib - an opensource, lightweight and multi-platform framework for cpp programming
System::Net::HttpUtility Class Reference

Provides methods for encoding and decoding URLs when processing Web requests More...

Static Public Member Functions

static String UrlEncode (const String &str, Text::Encoding codepage=Text::UTF8Encoding)
 Encodes a URL string using the specified encoding codepage More...
 
static String UrlDecode (const String &str, Text::Encoding codepage=Text::UTF8Encoding)
 Converts a URL-encoded string into a decoded string, using the specified encoding codepage More...
 
static String HTMLEncode (const String &str)
 Converts a string to an HTML-encoded string using numeric character reference (NCR) and partial character entity reference More...
 
static String HTMLDecode (const String &str)
 Converts a string that has been HTML-encoded for HTTP transmission into a decoded string Function does not process all character entity reference, see http://dev.w3.org/html5/html-author/charref More...
 
static String UnicodeEscapesDecode (const String &str)
 Converts a string that has been unicode-encoded() for HTTP transmission into a decoded string Function does not process which is exactly 8 hex digits More...
 
static bool IsUrlSafeChar (TCHAR ch)
 

Detailed Description

Provides methods for encoding and decoding URLs when processing Web requests

Member Function Documentation

String HttpUtility::HTMLDecode ( const String str)
static

Converts a string that has been HTML-encoded for HTTP transmission into a decoded string Function does not process all character entity reference, see http://dev.w3.org/html5/html-author/charref

String HttpUtility::HTMLEncode ( const String str)
static

Converts a string to an HTML-encoded string using numeric character reference (NCR) and partial character entity reference

String HttpUtility::UnicodeEscapesDecode ( const String str)
static

Converts a string that has been unicode-encoded() for HTTP transmission into a decoded string Function does not process which is exactly 8 hex digits

String HttpUtility::UrlDecode ( const String str,
Text::Encoding  codepage = Text::UTF8Encoding 
)
static

Converts a URL-encoded string into a decoded string, using the specified encoding codepage

String HttpUtility::UrlEncode ( const String str,
Text::Encoding  codepage = Text::UTF8Encoding 
)
static

Encodes a URL string using the specified encoding codepage


The documentation for this class was generated from the following files: