UnicodeEncoding

UnicodeEncoding


A set of functions used to convert UTF-16 Unicode characters to and from byte arrays.


Implements:

Encoding 
ICloneable 
IObject 

Public:

Properties:

NameDescription
 BodyName (get) Gets the encoding name to be used in with the mail agent body tags.  
 CodePage (get) Gets the code page identifier for this encoding.  
 DecoderFallback (get) Gets the current DecoderFallback instance used by the encoding.  
 DecoderFallback (set) Sets the DecoderFallback to be used by this encoding instance.  
 EncoderFallback (get) Gets the current EncoderFallback instance used by the encoding.  
 EncoderFallback (set) Sets the EncoderFallback to be used by this encoding instance.  
 EncodingName (get) Gets the name of this encoding.  
 HeaderName (get) Gets the encoding name to be used in with the mail agent header tags.  
 IsBrowserDisplay (get) Gets if this encoding can be used by browsers to display text.  
 IsBrowserSave (get) Gets if this encoding can be used to save data with this encoding.  
 IsMailNewsDisplay (get) Gets if this encoding can be used to display mail and news by mail and news clients.  
 IsMailNewsSave (get) Gets if this encoding can be used to save date by mail and news clients.  
 IsReadOnly (get) When implemented in a derived class, gets a value indicating whether the current encoding is read-only.  
 IsSingleByte (get) Gets if the current encoding uses single-byte code points.  
 WebName (get) Gets the encoding name registered with the Internet Assigned Numbers Authority.  
 WindowsCodePage (get) Gets the Windows Operating Systems code page for this encoding.  

Methods:

NameDescription
 Clone Creates a clone of the current Encoding instance.  
 Equals Returns a boolean indicating if the value and this object instance are the same instance.  
 GetByteCount Returns the number of bytes that would be produced from the set of characters using this encoding.  
 GetBytes Encodes a set of characters into an array of bytes.  
 GetBytesEx Encodes a set of characters into an array of bytes, returning the number of bytes produced.  
 GetCharCount Returns the number of characters that would be produced by decoding a byte array.  
 GetChars Decodes a set of bytes into a set of characters.  
 GetCharsEx Decodes a set of bytes into the supplied Integer array.  
 GetDecoder Returns a decoder that maintains state.  
 GetEncoder Returns an encoder that maintains state.  
 GetHashCode Returns a pseudo-unique number identifying this instance.  
 GetMaxByteCount Returns the maximum number of bytes that can be created from a specific number of characters.  
 GetMaxCharCount Returns the maximum number of characters than can be decoded from the number of bytes specified.  
 GetPreamble Returns an array of bytes that represents this encoding.  
 GetString Decodes a set of bytes into a String.  
 ToString Returns a string representation of this object instance.  

Remarks

This encoding can encode characters using big-endian or little-endian notation. The default is little-endian (least significant byte first).

A Byte order Mark will be emitted if selected using the Cor.NewUnicodeEncoding constructor.

See Also

Project CorLib Overview

Class UnicodeEncoding Overview

Constructors

Encoding