Sign in Join
FPDoc Onlineexperiment

TEncoding.GetMaxCharCount function

Member of TEncodingpublicIn unit sysutils

Return the maximum number of characters that can be represented in a number of bytes.

Declaration

pascal
function GetMaxCharCount(ByteCount: Integer): Integer; virtual
 ; abstract

Description

GetMaxCharCount returns the theoretical maximum number of characters that can be represented in a buffer of length ByteCount in the given encoding. Note that the actual number of characters that can be represented may well be much less and depends on the encoding and the actual characters.

This is an abstract method, implemented by descendents of TEncoding.

See also

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