System.UnicodeString.printf
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
- Format Specifiers in C/C++
- printf Format Specifiers
- printf Precision Specifiers
- printf Format String
- The scanf Format String
- scanf Format Specifiers
- Extended Types Formatted I/O (C++)