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. {{#multireplace:System.SysUtils.TUTF8Encoding.GetMaxCharCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.SysUtils.TUTF7Encoding.GetMaxCharCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.SysUtils.TUTF7Encoding.GetMaxCharCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
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.