• 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 /* Shell format strings.
26 #include "format.h"
29 #include "format-invalid.h"
34 /* Shell format strings are simply strings subjects to variable substitution.
88 format_parse (const char *format, bool translated, char *fdi,
91 const char *const format_start = format;
100 for (; *format != '\0';)
101 if (*format++ == '$')
106 FDI_SET (format - 1, FMTDIR_START);
109 if (*format == '{')
115 name_start = ++format;
116 for (; *format != '\0'; format++)
118 if (*format == '}')
120 if (!c_isascii (*format))
123 FDI_SET (format, FMTDIR_ERROR);
126 if (format > name_start
127 && (*format == '-' || *format == '=' || *format == '+'
128 || *format == '?' || *format == ':'))
131 FDI_SET (format, FMTDIR_ERROR);
134 if (!(c_isalnum (*format) || *format == '_')
135 || (format == name_start && c_isdigit (*format)))
138 FDI_SET (format, FMTDIR_ERROR);
142 if (*format == '\0')
145 FDI_SET (format - 1, FMTDIR_ERROR);
148 name_end = format++;
154 FDI_SET (format - 1, FMTDIR_ERROR);
161 else if (c_isalpha (*format) || *format == '_')
167 name_start = format;
169 format++;
170 while (*format != '\0' && (c_isalnum (*format) || *format == '_'));
171 name_end = format;
178 else if (*format != '\0')
180 if (!c_isascii (*format))
183 FDI_SET (format, FMTDIR_ERROR);
189 FDI_SET (format, FMTDIR_ERROR);
196 FDI_SET (format - 1, FMTDIR_ERROR);
209 FDI_SET (format - 1, FMTDIR_END);
297 error_logger (_("a format specification for argument '%s', as in '%s', doesn't exist in 'msgid'"),
307 error_logger (_("a format specification for argument '%s' doesn't exist in '%s'"),
398 * 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-sh.c ../gnulib-lib/libgettextlib.la"