Parser API¶
Overview¶
Main functions to parse specifiers from the string. More…
// global functions void fmt_spec_init(fmt_spec* spec); fmt_status fmt_read_one(const fmt_char** fmt, fmt_spec* spec); fmt_bool fmt_read_is_ok(fmt_status status);
Detailed Documentation¶
Main functions to parse specifiers from the string.
Global Functions¶
void fmt_spec_init(fmt_spec* spec)
Initialize format specifier
Parameters:
spec |
Pointer to specifier |
fmt_status fmt_read_one(const fmt_char** fmt, fmt_spec* spec)
Read one specifier from the format string
Parameters:
fmt |
The format string |
spec |
Pointer to specifier |
Returns:
Status code
fmt_bool fmt_read_is_ok(fmt_status status)
Check that read is OK and specifier parsing can be continued
Parameters:
status |
Status code (from |
Returns:
FMT_TRUE
if read can be continued, FMT_FALSE
otherwise