System.SysUtils.StrCharLength
Delphi
function StrCharLength(const Str: MarshaledAString): Integer;
function StrCharLength(const Str: PWideChar): Integer;
C++
extern DELPHI_PACKAGE int __fastcall StrCharLength _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (const char * Str)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
説明
警告: StrCharLength の ANSI バージョンは廃止予定です。AnsiStrings ユニットを使用してください。
文字 の長さを、バイトで返します。
StrCharLength は、Str
の最初の文字のサイズを、バイトで返します。この値は、Windows では 1 または 2 となり、MacOS では 1 から 6 までの値になります。