• 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 /* PHP format strings.
25 #include "format.h"
29 #include "format-invalid.h"
34 /* PHP format strings are described in phpdoc-4.0.6, file
96 format_parse (const char *format, bool translated, char *fdi,
99 const char *const format_start = format;
113 for (; *format != '\0';)
114 if (*format++ == '%')
117 FDI_SET (format - 1, FMTDIR_START);
120 if (*format != '%')
127 if (isdigit (*format))
129 const char *f = format;
148 format = ++f;
156 if (*format == '0' || *format == '-' || *format == ' ')
157 format++;
158 else if (*format == '\'')
160 format++;
161 if (*format == '\0')
164 FDI_SET (format - 1, FMTDIR_ERROR);
167 format++;
174 if (isdigit (*format))
177 format++;
178 while (isdigit (*format));
182 if (*format == '.')
184 format++;
186 if (isdigit (*format))
189 format++;
190 while (isdigit (*format));
193 --format; /* will jump to bad_format */
197 if (*format == 'l')
198 format++;
200 switch (*format)
215 if (*format == '\0')
218 FDI_SET (format - 1, FMTDIR_ERROR);
223 INVALID_CONVERSION_SPECIFIER (directives, *format);
224 FDI_SET (format, FMTDIR_ERROR);
239 FDI_SET (format, FMTDIR_END);
241 format++;
350 error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"),
360 error_logger (_("a format specification for argument %u doesn't exist in '%s'"),
380 error_logger (_("format specifications in 'msgid' and '%s' for argument %u are not the same"),
495 * 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-php.c ../gnulib-lib/libgettextlib.la"