System.SysUtils.StrPLCopy

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

Delphi

function StrPLCopy(Dest: PAnsiChar; const Source: AnsiString; MaxLen: Cardinal): PAnsiChar;
function StrPLCopy(Dest: PWideChar; const Source: UnicodeString; MaxLen: Cardinal): PWideChar;

C++

extern DELPHI_PACKAGE char * __fastcall StrPLCopy _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (char * Dest, const System::AnsiString Source, unsigned MaxLen)/* overload */;

プロパティ

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

説明

警告: StrPLCopy の ANSI バージョンは廃止予定です。AnsiStrings ユニットを使用してください。

AnsiString(長い文字列)の文字を,ヌルで終わる文字列にコピーします。

StrPLCopy 関数は,最大で MaxLen バイトの文字を,Source からヌルで終わる文字列 Dest にコピーします。StrPLCopy は,Dest へのポインタを返します。

メモ:  Dest は,ヌルターミネータも含め MaxLen + 1 文字分の余地がある位置を指す必要があります。