• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/src/

Lines Matching defs:format

1 /* Python format strings.
26 #include "format.h"
30 #include "format-invalid.h"
35 /* Python format strings are described in
41 Any string or Unicode string can act as format string via the '%' operator,
115 format_parse (const char *format, bool translated, char *fdi,
118 const char *const format_start = format;
129 for (; *format != '\0';)
130 if (*format++ == '%')
136 FDI_SET (format - 1, FMTDIR_START);
139 if (*format == '(')
146 name_start = ++format;
148 for (; *format != '\0'; format++)
150 if (*format == '(')
152 else if (*format == ')')
160 if (*format == '\0')
163 FDI_SET (format - 1, FMTDIR_ERROR);
166 name_end = format++;
174 while (*format == '-' || *format == '+' || *format == ' '
175 || *format == '#' || *format == '0')
176 format++;
178 if (*format == '*')
180 format++;
186 FDI_SET (format - 1, FMTDIR_ERROR);
198 else if (isdigit (*format))
200 do format++; while (isdigit (*format));
203 if (*format == '.')
205 format++;
207 if (*format == '*')
209 format++;
215 FDI_SET (format - 1, FMTDIR_ERROR);
227 else if (isdigit (*format))
229 do format++; while (isdigit (*format));
233 if (*format == 'h' || *format == 'l' || *format == 'L')
234 format++;
236 switch (*format)
254 if (*format == '\0')
257 FDI_SET (format - 1, FMTDIR_ERROR);
262 INVALID_CONVERSION_SPECIFIER (spec.directives, *format);
263 FDI_SET (format, FMTDIR_ERROR);
276 FDI_SET (format, FMTDIR_ERROR);
289 else if (*format != '%')
297 FDI_SET (format, FMTDIR_ERROR);
310 FDI_SET (format, FMTDIR_END);
312 format++;
419 error_logger (_("format specifications in 'msgid' expect a mapping, those in '%s' expect a tuple"),
426 error_logger (_("format specifications in 'msgid' expect a tuple, those in '%s' expect a mapping"),
449 error_logger (_("a format specification for argument '%s', as in '%s', doesn't exist in 'msgid'"),
459 error_logger (_("a format specification for argument '%s' doesn't exist in '%s'"),
479 error_logger (_("format specifications in 'msgid' and '%s' for argument '%s' are not the same"),
501 error_logger (_("number of format specifications in 'msgid' and '%s' does not match"),
510 error_logger (_("format specifications in 'msgid' and '%s' for argument %u are not the same"),
534 /* Parse the format string. */
674 * 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-python.c ../gnulib-lib/libgettextlib.la"