System.SysUtils.ByteLength
Delphi
function ByteLength(const S: string): Integer;
C++
extern DELPHI_PACKAGE int __fastcall ByteLength(const System::UnicodeString S);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Renvoie la longueur d'une chaîne donnée, en octets.
Appelez ByteLength pour obtenir la taille d'une chaîne en octets. ByteLength calcule la taille de la chaîne en multipliant le nombre de caractères de cette chaîne par la taille d'un caractère. Par exemple, pour la chaîne "John", ByteLength renvoie 8.