System.WideStrUtils.WStrBufSize

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function WStrBufSize(const Str: PWideChar): Cardinal;

C++

extern DELPHI_PACKAGE unsigned __fastcall WStrBufSize(const System::WideChar * Str);

Propriétés

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

Description

Renvoie le nombre de caractères maximal pouvant être stockés dans un PWideChar alloué par WStrAlloc.

WStrBufSize renvoie le nombre de caractères de Str, y compris l'octet du caractère de terminaison.

Remarque :  Si Str ne pointe pas sur un tampon de chaîne alloué par WStrAlloc ou WStrNew, aucun message n'est renvoyé et le résultat est imprévisible.

Voir aussi