TMBCSEncoding class
Multi-Byte character set encoding.
Declaration
TMBCSEncoding = class(TEncoding)Inheritance
- TMBCSEncoding
- 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
IsInvalidInput | strict prote | |
GetByteCount | strict prote | |
GetBytes | strict prote | |
GetCharCount | strict prote | |
GetChars | strict prote | |
GetAnsiBytes | strict prote | |
GetAnsiString | strict prote | |
GetCodePage | strict prote | |
GetEncodingName | strict prote | |
Create | public | Create a new instance of a multi-byte character set encoding. |
Clone | public | Clone a TMBCSEncoding instance. |
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. |
Fields
FMBToWCharFlags | strict prote | |
FWCharToMBFlags | strict prote |
Inherited
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
