API:System.SysUtils.TUnicodeEncoding.GetCharCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetCharCount(Bytes: PByte; ByteCount: Integer): Integer; overload; override;

C++

virtual int __fastcall GetCharCount(System::PByte Bytes, int ByteCount)/* overload */;
inline int __fastcall  GetCharCount(const System::Byte *Bytes, const int Bytes_High){ return TEncoding::GetCharCount(Bytes, Bytes_High); }
inline int __fastcall  GetCharCount(const System::DynamicArray<System::Byte> Bytes){ return TEncoding::GetCharCount(Bytes); }
inline int __fastcall  GetCharCount(const System::Byte *Bytes, const int Bytes_High, int ByteIndex, int ByteCount){ return TEncoding::GetCharCount(Bytes, Bytes_High, ByteIndex, ByteCount); }
inline int __fastcall  GetCharCount(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount){ return TEncoding::GetCharCount(Bytes, ByteIndex, ByteCount); }

Properties

Type Visibility Source Unit Parent
function
class protected
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TUnicodeEncoding

Description

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

System.SysUtils.TUnicodeEncoding.GetCharCount inherits from System.SysUtils.TEncoding.GetCharCount. All content below this line refers to System.SysUtils.TEncoding.GetCharCount.

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