System.UnicodeString.printf

From RAD Studio API Documentation
Jump to: navigation, search

C++

int            __cdecl          printf(const wchar_t* format, ...); // Returns formatted length

Properties

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

Description

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

Use printf to set the value of a 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 the length, in characters, of the final formatted string.

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

See Also

Topics

Code Examples