Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TMBCSEncoding

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Multi-Byte character set encoding.

Declaration

Source position: sysencodingh.inc line 118

type TMBCSEncoding = class(TEncoding)

public

  constructor Create();

  

Create a new instance of a multi-byte character set encoding.

  function Clone; override;

  

Clone a TMBCSEncoding instance.

  function GetMaxByteCount(); override;

  

Return max number of bytes needed to represent a string.

  function GetMaxCharCount(); override;

  

Return max number of characters that can be represented by an array of bytes.

  function GetPreamble; override;

  

Return BOM marker bytes.

end;

Inheritance

TMBCSEncoding

  

Multi-Byte character set encoding.

|

TEncoding

  

Encoding support.

|

TObject

  

Base class of all classes.

Description

TMBCSEncoding is the encoding class used for most of the encodings, except the actual Unicode encodings. The codepage is specified during creation, and is by default the system codepage.

The name is somewhat misleading, since the MBCS is also used for single-byte encodings.

See also

TUnicodeEncoding

  

UTF-16 Unicode encoding.

TUTF8Encoding

  

UTF-8 Unicode encoding.

TUTF7Encoding

  

UTF-7 Unicode encoding.

TBigendianUnicodeEncoding

  

Big-endian UTF-16 Unicode encoding.


Documentation generated on: Dec 24 2024