Skip to content

TUnicodeEncoding

UTF-16 Unicode encoding.

Declaration

Source position: sysencodingh.inc line 178

type

  TUnicodeEncoding = class(TEncoding)
  public
    constructor Create;
    function Clone : TEncoding;
    function GetMaxByteCount : Integer;
    function GetMaxCharCount : Integer;
    function GetPreamble : TBytes;
  end;

Description

TUnicodeEncoding is the encoding class used to represent the UTF-16 encoding.

Methods

Member Visibility Description
Clone public Clone a TUnicodeEncoding instance.
Create public Create a new instance of the TUnicodeEncoding class.
GetMaxByteCount public Return max number of bytes needed to represent a string.
GetMaxCharCount public Return max number of characters that can be represented by an array of bytes.
GetPreamble public Return BOM marker bytes.
See all Methods

See also

Name Description
TUnicodeEncoding UTF-16 Unicode encoding.
TUTF7Encoding UTF-7 Unicode encoding.
TMBCSEncoding Multi-Byte character set encoding.
TBigendianUnicodeEncoding Big-endian UTF-16 Unicode encoding.