Sign in Join
FPDoc Onlineexperiment

TUnicodeEncoding class

In unit sysutils

UTF-16 Unicode encoding.

Declaration

pascal
TUnicodeEncoding = class(TEncoding)

Inheritance

  1. TUnicodeEncoding
  2. TEncoding

Descends from it: TBigEndianUnicodeEncoding

Description

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

See also

Methods

GetByteCountstrict prote
GetBytesstrict prote
GetCharCountstrict prote
GetCharsstrict prote
GetAnsiBytesstrict prote
GetAnsiStringstrict prote
GetCodePagestrict prote
GetEncodingNamestrict prote
CreatepublicCreate a new instance of the TUnicodeEncoding class.
ClonepublicClone a TUnicodeEncoding instance.
GetMaxByteCountpublicReturn max number of bytes needed to represent a string.
GetMaxCharCountpublicReturn max number of characters that can be represented by an array of bytes.
GetPreamblepublicReturn BOM marker bytes.

Inherited

From TEncoding (16)

ANSI ASCII BigEndianUnicode CodePage Convert Default EncodingName GetBufferEncoding GetEncoding GetString IsSingleByte IsStandardEncoding SystemEncoding Unicode UTF7 UTF8

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.