System.SysUtils.TUnicodeEncoding.GetMaxCharCount
Delphi
function GetMaxCharCount(ByteCount: Integer): Integer; override;
C++
virtual int __fastcall GetMaxCharCount(int ByteCount);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TUnicodeEncoding |
Description
Calculates the maximum number of characters generated to decode a specified number of bytes.
GetMaxCharCount calculates the maximum number of characters generated to decode a ByteCount number of bytes. The following table lists the parameters expected by this method and their description.
Parameter | Description |
---|---|
ByteCount |
A positive integer specifying the number of bytes. |
The return value is the calculated number of characters.