System.SysUtils.StrCharLength
Delphi
function StrCharLength(const Str: MarshaledAString): Integer;
function StrCharLength(const Str: PWideChar): Integer;
C++
extern DELPHI_PACKAGE int __fastcall StrCharLength _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (const char * Str)/* overload */;
Propriétés
| Type | Visibilité | Source | Unité | Parent |
|---|---|---|---|---|
| function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Avertissement : La version ANSI de StrCharLength est obsolète. Veuillez utiliser l’unité AnsiStrings.
Renvoie la longueur, exprimée en octets, d'un caractère.
StrCharLength renvoie la taille, en octets, du premier caractère de Str. Cette valeur peut être 1 ou 2 sous Windows et 1 à 6 sous MacOS.