System.WideStrUtils.WStrBufSize
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 に格納できる最大文字数を返します。
WStrBufSize は Str の文字数を返します。これには終端文字用バイトも含みます。
メモ: Str が WStrAlloc や WStrNew で割り当てられた文字列バッファを指していない場合は、エラー メッセージは返りません。結果を不定です。