Lines Matching defs:format
1 /* librep format strings.
25 #include "format.h"
29 #include "format-invalid.h"
34 /* librep format strings are implemented in librep-0.14/src/streams.c.
94 format_parse (const char *format, bool translated, char *fdi,
97 const char *const format_start = format;
108 for (; *format != '\0';)
109 if (*format++ == '%')
114 FDI_SET (format - 1, FMTDIR_START);
117 if (isdigit (*format))
119 const char *f = format;
132 format = ++f;
137 while (*format == '-' || *format == '^' || *format == '0'
138 || *format == '+' || *format == ' ')
139 format++;
142 if (isdigit (*format))
144 do format++; while (isdigit (*format));
148 if (*format == '.')
150 format++;
152 if (isdigit (*format))
154 do format++; while (isdigit (*format));
158 switch (*format)
176 if (*format == '\0')
179 FDI_SET (format - 1, FMTDIR_ERROR);
184 INVALID_CONVERSION_SPECIFIER (spec.directives, *format);
185 FDI_SET (format, FMTDIR_ERROR);
204 FDI_SET (format, FMTDIR_END);
206 format++;
312 error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"),
322 error_logger (_("a format specification for argument %u doesn't exist in '%s'"),
342 error_logger (_("format specifications in 'msgid' and '%s' for argument %u are not the same"),
457 * compile-command: "/bin/sh ../libtool --tag=CC --mode=link gcc -o a.out -static -O -g -Wall -I.. -I../gnulib-lib -I../intl -DHAVE_CONFIG_H -DTEST format-librep.c ../gnulib-lib/libgettextlib.la"