• 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 /* C# format strings.
25 #include "format.h"
33 /* C# format strings are described in the description of the .NET System.String
38 A format string consists of literal text (that is output verbatim), doubled
45 - is optionally followed by ':' and a sequence of format specifiers.
46 (But the interpretation of the format specifiers is up to the IFormattable
59 format_parse (const char *format, bool translated, char *fdi,
62 const char *const format_start = format;
69 for (; *format != '\0';)
71 char c = *format++;
75 FDI_SET (format - 1, FMTDIR_START);
76 if (*format == '{')
77 format++;
85 if (!c_isdigit (*format))
89 FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR);
95 number = 10 * number + (*format - '0');
96 format++;
98 while (c_isdigit (*format));
100 if (*format == ',')
103 format++;
104 if (*format == '-')
105 format++;
106 if (!c_isdigit (*format))
110 FDI_SET (*format == '\0' ? format - 1 : format,
115 format++;
116 while (c_isdigit (*format));
119 if (*format == ':')
121 /* Parse format specifiers. */
123 format++;
124 while (*format != '\0' && *format != '}');
127 if (*format == '\0')
131 FDI_SET (format - 1, FMTDIR_ERROR);
135 if (*format != '}')
138 (c_isprint (*format)
139 ? xasprintf (_("The directive number %u ends with an invalid character '%c' instead of '}'."), spec.directives, *format)
141 FDI_SET (format, FMTDIR_ERROR);
145 format++;
150 FDI_SET (format - 1, FMTDIR_END);
154 FDI_SET (format - 1, FMTDIR_START);
155 if (*format == '}')
156 format++;
163 FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR);
166 FDI_SET (format - 1, FMTDIR_END);
206 error_logger (_("number of format specifications in 'msgid' and '%s' does not match"),
289 * 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-csharp.c ../gnulib-lib/libgettextlib.la"