Sign in Join
FPDoc Onlineexperiment

TEncoding.GetMaxByteCount function

Member of TEncodingpublicIn unit sysutils

Returns the maximum number of bytes needed to represent a string.

Declaration

pascal
function GetMaxByteCount(CharCount: Integer): Integer; virtual
 ; abstract

Description

GetMaxByteCount returns the maximum number of bytes needed to represent a string of CharCount characters in the given encoding.

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.