nsITextToSubURI
| IID: | 8B042E24-6F87-11d3-B3C8-00805F8A6670 |
| Inherits From: | nsISupports |
This interface is implemented by the following components:
Methods
char* ConvertAndEscape ( char* charset , PRUnichar* text )
PRUnichar* UnEscapeAndConvert ( char* charset , char* text )
AString unEscapeNonAsciiURI ( ACString charset , AUTF8String URIFragment )
AString unEscapeURIForUI ( ACString charset , AUTF8String URIFragment )
AString unEscapeNonAsciiURI ( ACString charset , AUTF8String URIFragment )
Unescapes only non ASCII characters in the given URI fragment note: this method assumes the URI as UTF-8 and fallbacks to the given charset in case the data is not UTF-8
- Arguments:
- charset: the charset to convert from
- URIFragment: the URI (or URI fragment) to unescape
- Returns:
- Unescaped aURIFragment converted to unicode
AString unEscapeURIForUI ( ACString charset , AUTF8String URIFragment )
Unescapes the given URI fragment (for UI purpose only) Note:
- escaping back the result (unescaped string) is not guaranteed to give the original escaped string
- In case of a conversion error, the URI fragment (escaped) is assumed to be in UTF-8 and converted to AString (UTF-16)
- Always succeeeds (callers don't need to do error checking)
- Arguments:
- charset: the charset to convert from
- URIFragment: the URI (or URI fragment) to unescape
- Returns:
- Unescaped aURIFragment converted to unicode
Reference documentation is generated from Mozilla's source.
