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

Lines Matching defs:format

128 Options controlling the input and output format:\n"));
234 /* Check that the argument is a format string taking either no argument
236 size of the format string. */
237 static size_t check_subst_formatstring (const char *format, const char *param_name)
239 /* C format strings are described in POSIX (IEEE P1003.1 2001), section
247 - format specifiers other than 'o', 'u', 'x', 'X'.
264 for (; *format != '\0';) {
265 if (*format++ == '%') {
272 if (*format == ' ' || *format == '+' || *format == '-'
273 || *format == '#' || *format == '0' || *format == '\'')
274 format++;
279 if (*format == '*')
280 error(EXIT_FAILURE,0,_("%s argument: A format directive with a variable width is not allowed here."),param_name);
281 if (isdigit (*format)) {
283 width = 10*width + (*format - '0');
284 format++;
285 } while (isdigit (*format));
288 if (*format == '.') {
289 format++;
290 if (*format == '*')
291 error(EXIT_FAILURE,0,_("%s argument: A format directive with a variable precision is not allowed here."),param_name);
292 if (isdigit (*format)) {
294 precision = 10*precision + (*format - '0');
295 format++;
296 } while (isdigit (*format));
300 switch (*format) {
303 error(EXIT_FAILURE,0,_("%s argument: A format directive with a size is not allowed here."),param_name);
306 switch (*format) {
311 if (*format == 'u') {
320 } else if (*format == 'o') {
340 if (*format == '\0')
342 else if (c_isprint(*format))
343 error(EXIT_FAILURE,0,_("%s argument: The character '%c' is not a valid conversion specifier."),param_name,*format);
345 error(EXIT_FAILURE,0,_("%s argument: The character that terminates the format directive is not a valid conversion specifier."),param_name);
348 format++;
356 error(EXIT_FAILURE,0,ngettext("%s argument: The format string consumes more than one argument: %u argument.",
357 "%s argument: The format string consumes more than one argument: %u arguments.",
368 /* Maximum result size for each format string. */