Lines Matching defs:format
1 /* YCP and Smalltalk format strings.
25 #include "format.h"
29 #include "format-invalid.h"
37 GNU Smalltalk format strings are described in the CharArray documentation,
50 format_parse (const char *format, bool translated, char *fdi,
53 const char *const format_start = format;
60 for (; *format != '\0';)
61 if (*format++ == '%')
64 FDI_SET (format - 1, FMTDIR_START);
67 if (*format == '%')
68 format++;
69 else if (*format >= '1' && *format <= '9')
71 unsigned int number = *format - '1';
77 format++;
81 if (*format == '\0')
84 FDI_SET (format - 1, FMTDIR_ERROR);
89 (c_isprint (*format)
90 ? xasprintf (_("In the directive number %u, the character '%c' is not a digit between 1 and 9."), spec.directives, *format)
92 FDI_SET (format, FMTDIR_ERROR);
97 FDI_SET (format - 1, FMTDIR_END);
143 ? _("a format specification for argument %u doesn't exist in '%s'")
144 : _("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"),
242 * 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-ycp.c ../gnulib-lib/libgettextlib.la"