System.SysUtils.TUnicodeEncoding.GetMaxCharCount

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also