WideStrUtils.WStrBufSize

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From WideStrUtils.pas

	function WStrBufSize(const Str: PWideChar): Cardinal;


Unit: WideStrUtils

Type: function

Visibility: public

C++ Information

From WideStrUtils.hpp

	unsigned int __fastcall WStrBufSize(const wchar_t * Str);


Unit: WideStrUtils

Type: function

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.

See Also

Personal tools
Translations
Newest Version