Sign in Join
FPDoc Onlineexperiment

TMBCSEncoding class

In unit sysutils

Multi-Byte character set encoding.

Declaration

pascal
TMBCSEncoding = class(TEncoding)

Inheritance

  1. TMBCSEncoding
  2. TEncoding

Descends from it: TUTF7Encoding

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

Methods

IsInvalidInputstrict prote
GetByteCountstrict prote
GetBytesstrict prote
GetCharCountstrict prote
GetCharsstrict prote
GetAnsiBytesstrict prote
GetAnsiStringstrict prote
GetCodePagestrict prote
GetEncodingNamestrict prote
CreatepublicCreate a new instance of a multi-byte character set encoding.
ClonepublicClone a TMBCSEncoding 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.

Fields

FMBToWCharFlagsstrict prote
FWCharToMBFlagsstrict prote

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.