API:System.SysUtils.TMBCSEncoding.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 TMBCSEncoding

Description

Calculates the maximum number of characters generated to decode a specified number of bytes.

System.SysUtils.TMBCSEncoding.GetMaxCharCount inherits from System.SysUtils.TEncoding.GetMaxCharCount. All content below this line refers to System.SysUtils.TEncoding.GetMaxCharCount.

Calculates the maximum number of characters generated to decode a specified number of bytes.

TEncoding.GetMaxCharCount calculates the maximum number of characters generated to decode ByteCount number of bytes.

The Return Value is the calculated number of characters.

See Also

Code Examples