System.SysUtils.TEncoding.GetCharCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetCharCount(Bytes: PByte; ByteCount: Integer): Integer; overload; virtual; abstract;
function GetCharCount(const Bytes: array of Byte): Integer; overload;
function GetCharCount(const Bytes: TBytes): Integer; overload; inline;
function GetCharCount(const Bytes: array of Byte; ByteIndex, ByteCount: Integer): Integer; overload;
function GetCharCount(const Bytes: TBytes; ByteIndex, ByteCount: Integer): Integer; overload;

C++

virtual int __fastcall GetCharCount(System::PByte Bytes, int ByteCount) = 0 /* overload */;
int __fastcall GetCharCount(const System::Byte *Bytes, const int Bytes_High)/* overload */;
int __fastcall GetCharCount(const System::DynamicArray<System::Byte> Bytes)/* overload */;
int __fastcall GetCharCount(const System::Byte *Bytes, const int Bytes_High, int ByteIndex, int ByteCount)/* overload */;
int __fastcall GetCharCount(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TEncoding

Description

Calculates a number of characters generated by decoding a sequence of bytes.

TEncoding.GetCharCount generates a number of characters by decoding Bytes.

Bytes can be a byte array or a byte pointer.

The ByteCount parameter specifies the number of bytes to decode.

The Return Value is the number of decoded characters.

See Also


Code Examples