System.SysUtils.StrBufSize
Delphi
function StrBufSize(const Str: PAnsiChar): Cardinal;
function StrBufSize(const Str: PWideChar): Cardinal;
C++
extern DELPHI_PACKAGE unsigned __fastcall StrBufSize _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (const char * Str)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Warning: The ANSI version of StrBufSize is deprecated. Please use the AnsiStrings unit.
Returns the maximum number of characters that can be stored in a buffer allocated by StrAlloc.
StrBufSize returns the number of characters in Str, including one for the termination character.
Note: If Str does not point to a string buffer allocated by StrAlloc or StrNew, no error message is returned, and the result is unpredictable.