| parrotcode: Parrot sprintf | |
| Contents | C |

src/spf_render.c - Parrot sprintf

Implements the main function that drives the Parrot_sprintf family and its utility functions.

static STRING *uint_to_str(Interp *interpreter, char *tc, UHUGEINTVAL num, char base, int minus)num converted to a Parrot STRING.base must be defined,
a default of 10 is not assumed.minus is true then - is prepended to the string representation.STRING *int_to_str(Interp *interpreter, char *tc, HUGEINTVAL num, char base)num converted to a Parrot STRING.base must be defined,
a default of 10 is not assumed.num < 0 then - is prepended to the string representation.static STRING *handle_flags(Interp *interpreter, SpfInfo info, STRING *str, INTVAL is_int_type, const char *prefix)+,
-,
0,
#,
space,
width,
and prec.static void gen_sprintf_call(Interp *interpreter, char *out, SpfInfo info, int thingy)snprintf() when we're confronted with a float.STRING *Parrot_sprintf_format(Interp *interpreter, STRING *pat, SPRINTF_OBJ *obj)
src/misc.h, src/misc.c, src/spf_vtable.c.
|
|
|