TouchGFX + 0/4 examples
CodeScope will show references to touchgfx::Unicode::snprintf() from the following samples and libraries:
Examples
STM32469I-Discovery
Demonstrations
STM32469I_EVAL
Demonstrations
STM324x9I_EVAL
Demonstrations
STM32F429I-Discovery
Demonstrations
 
Symbols
loading...
Files
loading...

touchgfx::Unicode::snprintf() method

@fn static UnicodeChar* Unicode::snprintf(UnicodeChar* dst, uint16_t dstSize, const UnicodeChar* format, ...); Formats a string and adds null termination. Formats a string and adds null termination. The string is formatted like when printf is used. Support formats: \%c (element type: char), \%s (element type: zero-terminated UnicodeChar list), \%u, \%i, \%d, \%o, \%x (all these are integers formatted in radix 10, 10, 10, 8, 16 respectively). The number formats (\%u, \%i, \%d, \%o and \%x) all support \%[0][length]X to specify the size of the generated field (length) and whether the number should be prefixed with zeros (or blanks). @see snprintfFloat, snprintfFloats

Syntax

static UnicodeChar* snprintf(UnicodeChar* dst,     uint16_t dstSize,     const UnicodeChar* format, ...);

Arguments

dst

dstSize

Size of the dst buffer measured by number of UnicodeChars the buffer can hold.

format

Return value

pointer to the first element in the buffer where the formatted string is placed.

Examples

touchgfx::Unicode::snprintf() is referenced by 4 libraries and example projects.

References

LocationText
Unicode.hpp:178
static UnicodeChar* snprintf(UnicodeChar* dst, uint16_t dstSize, const UnicodeChar* format, ...);
Unicode.hpp:252
static UnicodeChar* snprintf(UnicodeChar* dst, uint16_t dstSize, const char* format, ...);

Type Use

Type of touchgfx::Unicode::snprintf()
touchgfx::Unicode::snprintf()
all items filtered out