NAME
src/spf_render.c - Parrot sprintf
DESCRIPTION
Implements the main function that drives the Parrot_sprintf
family and its utility functions.
Utility Functions
static STRING *handle_flags
Handles static STRING *str_append_w_flags
Used by Parrot_sprintf_format.
Prepends supplied prefix for numeric values.
(e.g.
0x for hex.)Returns the pointer to the modified string.
static void gen_sprintf_call
Turn the info structure back into an sprintf format.
Far from being pointless,
this is used to call STRING *Parrot_sprintf_format
This is the engine that does all the formatting.
+
,
-
,
0
,
#
,
space,
width,
and prec.
snprintf()
when we're confronted with a float.
SEE ALSO
src/misc.h, src/misc.c, src/spf_vtable.c.