Lines Matching refs:format
1 /* C# format strings.
26 #include "format.h"
34 /* C# format strings are described in the description of the .NET System.String
39 A format string consists of literal text (that is output verbatim), doubled
46 - is optionally followed by ':' and a sequence of format specifiers.
47 (But the interpretation of the format specifiers is up to the IFormattable
60 format_parse (const char *format, bool translated, char **invalid_reason)
68 for (; *format != '\0';)
70 char c = *format++;
74 if (*format == '{')
75 format++;
83 if (!c_isdigit (*format))
92 number = 10 * number + (*format - '0');
93 format++;
95 while (c_isdigit (*format));
97 if (*format == ',')
100 format++;
101 if (*format == '-')
102 format++;
103 if (!c_isdigit (*format))
110 format++;
111 while (c_isdigit (*format));
114 if (*format == ':')
116 /* Parse format specifiers. */
118 format++;
119 while (*format != '\0' && *format != '}');
122 if (*format == '\0')
129 if (*format != '}')
132 (c_isprint (*format)
133 ? xasprintf (_("The directive number %u ends with an invalid character '%c' instead of '}'."), spec.directives, *format)
138 format++;
146 if (*format == '}')
147 format++;
195 error_logger (_("number of format specifications in 'msgid' and '%s' does not match"),
278 * compile-command: "/bin/sh ../libtool --mode=link gcc -o a.out -static -O -g -Wall -I.. -I../lib -I../intl -DHAVE_CONFIG_H -DTEST format-csharp.c ../lib/libgettextlib.la"