API:System.SysUtils.TUTF8Encoding.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 | TUTF8Encoding |
Description
Calculates the maximum number of characters generated to decode a specified number of bytes.
System.SysUtils.TUTF8Encoding.GetMaxCharCount inherits from System.SysUtils.TUTF7Encoding.GetMaxCharCount. All content below this line refers to System.SysUtils.TUTF7Encoding.GetMaxCharCount.
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.