System.SysUtils.TEncoding.GetChars

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function GetChars(Bytes: PByte; ByteCount: Integer; Chars: PChar; CharCount: Integer): Integer; overload; virtual; abstract;
function GetChars(const Bytes: array of Byte): TCharArray; overload;
function GetChars(const Bytes: TBytes): TCharArray; overload; inline;
function GetChars(const Bytes: array of Byte; ByteIndex, ByteCount: Integer): TCharArray; overload;
function GetChars(const Bytes: TBytes; ByteIndex, ByteCount: Integer): TCharArray; overload;
function GetChars(const Bytes: array of Byte; ByteIndex, ByteCount: Integer;  const Chars: array of Char; CharIndex: Integer): Integer; overload;
function GetChars(const Bytes: TBytes; ByteIndex, ByteCount: Integer;  const Chars: TCharArray; CharIndex: Integer): Integer; overload;

C++

virtual int __fastcall GetChars(System::PByte Bytes, int ByteCount, System::WideChar * Chars, int CharCount) = 0 /* overload */;
System::DynamicArray<System::WideChar> __fastcall GetChars(const System::Byte *Bytes, const int Bytes_High)/* overload */;
System::DynamicArray<System::WideChar> __fastcall GetChars(const System::DynamicArray<System::Byte> Bytes)/* overload */;
System::DynamicArray<System::WideChar> __fastcall GetChars(const System::Byte *Bytes, const int Bytes_High, int ByteIndex, int ByteCount)/* overload */;
System::DynamicArray<System::WideChar> __fastcall GetChars(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount)/* overload */;
int __fastcall GetChars(const System::Byte *Bytes, const int Bytes_High, int ByteIndex, int ByteCount, const System::WideChar *Chars, const int Chars_High, int CharIndex)/* overload */;
int __fastcall GetChars(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount, const System::DynamicArray<System::WideChar> Chars, int CharIndex)/* overload */;

Propriétés

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

Description

Décode un ensemble d'octets en un ensemble de caractères.

TEncoding.GetChars génère un nombre de caractères en décodant Bytes.

Bytes peut être un pointeur d'octets ou un tableau d'octets.

ByteIndex spécifie le premier octet à décoder. S'il est absent, l'index est 0.

ByteCount spécifie le nombre d'octets à décoder. S'il est absent, tous les octets seront décodés.

Chars est un pointeur sur la destination des caractères décodés.

CharIndex où commencer l'écriture des résultats dans 'Chars'.

La valeur de retour est le tableau des caractères décodés, ou le nombre de caractères décodés.

Voir aussi