From RAD Studio API Documentation
Jump to: navigation, search


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


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


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


Code Examples