System.WideStrUtils.WStrBufSize
Delphi
function WStrBufSize(const Str: PWideChar): Cardinal;
C++
extern DELPHI_PACKAGE unsigned __fastcall WStrBufSize(const System::WideChar * Str);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.WideStrUtils.pas System.WideStrUtils.hpp |
System.WideStrUtils | System.WideStrUtils |
Description
Returns the maximum number of characters that can be stored in a PWideChar allocated by WStrAlloc.
WStrBufSize returns the number of characters in Str, including the byte for the termination character.
Note: If Str does not point to a string buffer allocated by WStrAlloc or WStrNew, no error message is returned, and the result is unpredictable.