18 #ifndef _PRINTF_PARSE_H
19 #define _PRINTF_PARSE_H
26 # include <features.h>
35 #define FLAG_SHOWSIGN 4
39 #if __GLIBC__ >= 2 && !defined __UCLIBC__
40 # define FLAG_LOCALIZED 64
44 #define ARG_NONE (~(size_t)0)
50 #define N_DIRECT_ALLOC_DIRECTIVES 7
90 size_t width_arg_index;
93 size_t precision_arg_index;
104 size_t max_width_length;
105 size_t max_precision_length;
118 size_t width_arg_index;
121 size_t precision_arg_index;
132 size_t max_width_length;
133 size_t max_precision_length;
146 size_t width_arg_index;
149 size_t precision_arg_index;
160 size_t max_width_length;
161 size_t max_precision_length;
179 u16_printf_parse (
const uint16_t *format, u16_directives *d,
182 u32_printf_parse (
const uint32_t *format, u32_directives *d,
#define N_DIRECT_ALLOC_DIRECTIVES
xxx_directive: A parsed directive.
int printf_parse(const char *format, char_directives *d, arguments *a)
Parses the format string.
const char * precision_end
size_t precision_arg_index
size_t arg_index
d i o u x X f F e E g G a A c s p n U % but not C S
const char * precision_start
size_t max_precision_length