Show: Delphi C++
Display Preferences

System.UnicodeString.sprintf

From RAD Studio API Documentation
Jump to: navigation, search

C++

UnicodeString& __cdecl         sprintf(const wchar_t* format, ...); // Returns *this

Properties

Type Visibility Source Unit Parent
function public ustring.h System UnicodeString

Description

Sets the value of UnicodeString, given the format string and its arguments.

Use sprintf to set to the value of the UnicodeString instance, given a standard C++ format specifier. Pass the values to any arguments in the format specifier as additional parameters following the format parameter.

This method returns a reference to the UnicodeString instance (*this) with the resulting value.

Warning: The value returned by UnicodeString.c_str() under OS X and iOS is char16_t* while the sprintf function expects wchar_t*.

Note:

UnicodeString.sprintf() does not support %ls on the OS X platform.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance