Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsITextToSubURI Interface Reference

import "nsITextToSubURI.idl";

Inheritance diagram for nsITextToSubURI:
Inheritance graph
[legend]
Collaboration diagram for nsITextToSubURI:
Collaboration graph
[legend]

List of all members.

Public Member Functions

string ConvertAndEscape (in string charset, in wstring text)
wstring UnEscapeAndConvert (in string charset, in string text)
AString unEscapeURIForUI (in ACString aCharset, in AUTF8String aURIFragment)
 Unescapes the given URI fragment (for UI purpose only) Note:
AString unEscapeNonAsciiURI (in ACString aCharset, in AUTF8String aURIFragment)
 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.

Detailed Description

Definition at line 48 of file nsITextToSubURI.idl.


Member Function Documentation

string nsITextToSubURI::ConvertAndEscape ( in string  charset,
in wstring  text 
)
wstring nsITextToSubURI::UnEscapeAndConvert ( in string  charset,
in string  text 
)

Here is the caller graph for this function:

AString nsITextToSubURI::unEscapeNonAsciiURI ( in ACString  aCharset,
in AUTF8String  aURIFragment 
)

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.

Parameters:
aCharsetthe charset to convert from
aURIFragmentthe URI (or URI fragment) to unescape
Returns:
Unescaped aURIFragment converted to unicode
Exceptions:
NS_ERROR_UCONV_NOCONVwhen there is no decoder for aCharset or error code of nsIUnicodeDecoder in case of conversion failure
AString nsITextToSubURI::unEscapeURIForUI ( in ACString  aCharset,
in AUTF8String  aURIFragment 
)

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)
Parameters:
aCharsetthe charset to convert from
aURIFragmentthe URI (or URI fragment) to unescape
Returns:
Unescaped aURIFragment converted to unicode

The documentation for this interface was generated from the following file: