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.
PARROT_CANNOT_RETURN_NULL static STRING *handle_flags(PARROT_INTERP, NOTNULL(SpfInfo *info), NOTNULL(STRING *str), INTVAL is_int_type, NULLOK(STRING *prefix))
+
,
-
,
0
,
#
,
space,
width,
and prec.PARROT_CANNOT_RETURN_NULL static STRING *str_append_w_flags(PARROT_INTERP, NOTNULL(STRING *dest), NOTNULL(SpfInfo *info), NOTNULL(STRING *src), NULLOK(STRING *prefix))
static void gen_sprintf_call(NOTNULL(char *out), NOTNULL(SpfInfo *info), int thingy)
snprintf()
when we're confronted with a float.PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL STRING *Parrot_sprintf_format(PARROT_INTERP, NOTNULL(STRING *pat), NOTNULL(SPRINTF_OBJ *obj))
src/misc.h, src/misc.c, src/spf_vtable.c.
|