RAD Studio VCL Reference
|
Appends result of given format string and its arguments to end of System::UnicodeString.
function cat_sprintf(const format: wchar_t*; : ...): UnicodeString&; cdecl;
__cdecl UnicodeString& cat_sprintf(const wchar_t* format, ...);
Use System::UnicodeString::cat_sprintf to append to the value of the System::UnicodeString object, given a standard C++ format specifier. Pass the values to any arguments in the format specifier as additional parameters following the format parameter.
For example, the following code
UnicodeString Salutation = "Mr." UnicodeString s = ""; s.cat_sprintf("Dear %s ", Salutation); s.cat_sprintf("%s,", "Smith");
results in an System::UnicodeString object with the value
Dear Mr. Smith,
This method returns a reference to the System::UnicodeString object (*this) with the resulting value.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|