C++ Builder 參考手冊 ? System::Sysutils ? AssignStr
把一個字符串賦值給一個字符串,過時的函數(shù)
頭文件:#include <System.SysUtils.hpp>
命名空間:System::Sysutils
函數(shù)原型:
void __fastcall AssignStr(System::PAnsiString &P, const System::AnsiString S);
參數(shù):
- P:字符串指針引用娄昆;
- S:把字符串 S 的內(nèi)容復(fù)制到 P 里面晃痴;
返回值:
- 無;
- 如果 P 為 nullptr缰趋,會給 P 分配內(nèi)存捧杉,并且把 S 的內(nèi)容復(fù)制到 P 里面;
- 如果 P 不是 nullptr秘血,會先釋放 P 占用的內(nèi)存味抖,然后重新分配內(nèi)存,把 S 的內(nèi)容復(fù)制到 P 里面灰粮;
- 函數(shù)的參數(shù)是 System::AnsiString 類型的仔涩,是過時的函數(shù)。
相關(guān):
- System::Sysutils::AppendStr
- System::Sysutils::AssignStr
- System::Sysutils::StrMove
- System::Sysutils::StrPCopy
- System::Sysutils::StrPLCopy
- System::Sysutils::StrAlloc
- AnsiStrAlloc
- System::Sysutils::WideStrAlloc
- System::Sysutils::StrNew
- System::Sysutils::NewStr
- System::Sysutils::DisposeStr
- System::Sysutils
- std::strcpy, std::_fstrcpy, std::_tcscpy, std::wcscpy
- std::strncpy, std::_fstrncpy, std::_tcsncpy, std::wcsncpy
- std::stpcpy, std::_stpcpy, std::_tcspcpy, std::wcspcpy, std::_wcspcpy
- std::strdup, std::_strdup, std::_fstrdup, std::_tcsdup, std::_wcsdup
- std::strcat, std::_fstrcat, std::_tcscat, std::wcscat
- std::strncat, std::_fstrncat, std::_tcsncat, std::wcsncat
- <cstring>
C++ Builder 參考手冊 ? System::Sysutils ? AssignStr