System.WideStrUtils.WStrBufSize

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function WStrBufSize(const Str: PWideChar): Cardinal;

C++

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

プロパティ

種類 可視性 ソース ユニット
function public
System.WideStrUtils.pas
System.WideStrUtils.hpp
System.WideStrUtils System.WideStrUtils

説明

WStrAlloc で割り当てられた PWideChar に格納できる最大文字数を返します。

WStrBufSizeStr の文字数を返します。これには終端文字用バイトも含みます。

メモ:  StrWStrAllocWStrNew で割り当てられた文字列バッファを指していない場合は、エラー メッセージは返りません。結果を不定です。

関連項目