nsICharsetConverterManager
| IID: | f5323a76-c8f7-4c65-8d0c-1250e969c7d5 |
| Inherits From: | nsISupports |
Here Charsets are identified by ASCII strings. Charset alias resolution is provided by default in most methods. "Raw" versions that do not need this resolution are also provided.
Methods
ACString getCharsetAlias ( char* charset )
AString getCharsetData ( char* charset , PRUnichar* prop )
nsIUTF8StringEnumerator GetCharsetDetectorList ( )
nsIAtom getCharsetLangGroup ( char* charset )
nsIAtom getCharsetLangGroupRaw ( char* charset )
AString getCharsetTitle ( char* charset )
nsIUTF8StringEnumerator getDecoderList ( )
nsIUTF8StringEnumerator getEncoderList ( )
nsIUnicodeDecoder getUnicodeDecoder ( char* charset )
nsIUnicodeDecoder getUnicodeDecoderRaw ( char* charset )
nsIUnicodeEncoder getUnicodeEncoder ( char* charset )
nsIUnicodeEncoder getUnicodeEncoderRaw ( char* charset )
ACString getCharsetAlias ( char* charset )
A shortcut to calling nsICharsetAlias to do alias resolution
- Arguments:
- charset
AString getCharsetData ( char* charset , PRUnichar* prop )
Get some data about the given charset. This includes whether the character encoding may be used for certain purposes, if it is multi-byte, and the language code for it. See charsetData.properties for the source of this data. Some known property names: notForBrowser - not to be used in the bowser. notForOutgoing - not to be used for exporting files. LangGroup - language code for charset, e.g. 'he' and 'zh-CN'. isMultibyte - is this a multi-byte charset?
- Arguments:
- charset: name of the character encoding, e.g. 'iso-8859-15'.
- prop: property desired for the character encoding.
- Returns:
- the value of the property, for the character encoding.
nsIUTF8StringEnumerator GetCharsetDetectorList ( )
Get the complete list of available charset detectors.
nsIAtom getCharsetLangGroup ( char* charset )
Get the language group for the given charset. This is similar to calling getCharsetData with the prop "LangGroup".
- Arguments:
- charset: name of the character encoding, e.g. 'iso-8859-15'.
- Returns:
- the language code for the character encoding.
nsIAtom getCharsetLangGroupRaw ( char* charset )
- Arguments:
- charset
AString getCharsetTitle ( char* charset )
Get the human-readable name for the given charset.
- Arguments:
- charset
nsIUTF8StringEnumerator getDecoderList ( )
Get the complete list of available decoders.
nsIUTF8StringEnumerator getEncoderList ( )
Get the complete list of available encoders.
nsIUnicodeDecoder getUnicodeDecoder ( char* charset )
Get the Unicode decoder for the given charset. The "Raw" version skips charset alias resolution
- Arguments:
- charset
nsIUnicodeDecoder getUnicodeDecoderRaw ( char* charset )
- Arguments:
- charset
nsIUnicodeEncoder getUnicodeEncoder ( char* charset )
Get the Unicode encoder for the given charset. The "Raw" version skips charset alias resolution
- Arguments:
- charset
nsIUnicodeEncoder getUnicodeEncoderRaw ( char* charset )
- Arguments:
- charset
Reference documentation is generated from Mozilla's source.
