Lines Matching defs:out
24 * This program prints out resource bundles - example for
65 void printOutBundle(UFILE *out, UResourceBundle *resource, int32_t indent, UErrorCode *status);
66 void printIndent(UFILE *out, int32_t indent);
67 void printHex(UFILE *out, const int8_t *what);
86 UFILE *out = NULL;
152 out = u_finit(stdout, locale, encoding);
158 u_fprintf(out, "uresb: processing file \"%s\" in path \"%s\"\n", arg, resPath);
161 u_fprintf(out, "%s\n", arg);
162 printOutBundle(out, bundle, 0, &status);
172 u_fclose(out);
177 void printIndent(UFILE *out, int32_t indent) {
184 u_fprintf(out, "%s", inchar);
187 void printHex(UFILE *out, const int8_t *what) {
188 u_fprintf(out, "%02X", (uint8_t)*what);
227 void printOutBundle(UFILE *out, UResourceBundle *resource, int32_t indent, UErrorCode *status) {
241 printIndent(out, indent);
242 u_fprintf(out, "// WARNING: this string, size %d is truncated to %d\n", len, truncsize/2);
246 printIndent(out, indent);
248 u_fprintf(out, "%s { \"%S\" } ", key, string);
250 u_fprintf(out, "\"%S\",", string);
253 u_fprintf(out, " // STRING");
255 u_fprintf(out, "\n");
260 printIndent(out, indent);
262 u_fprintf(out, "%s", key);
264 u_fprintf(out, ":int { %li } ", ures_getInt(resource, status));
267 u_fprintf(out, " // INT");
269 u_fprintf(out, "\n");
276 printIndent(out, indent);
277 u_fprintf(out, "// WARNING: this resource, size %li is truncated to %li\n", len, truncsize/2);
281 printIndent(out, indent);
283 u_fprintf(out, "%s", key);
285 u_fprintf(out, ":binary { ");
287 printHex(out, data++);
289 u_fprintf(out, " }");
291 u_fprintf(out, " // BINARY");
293 u_fprintf(out, "\n");
305 printIndent(out, indent);
307 u_fprintf(out, "%s", key);
309 u_fprintf(out, ":intvector { ");
311 u_fprintf(out, "%d, ", data[i]);
314 u_fprintf(out, "%d ", data[len-1]);
316 u_fprintf(out, "}");
318 u_fprintf(out, " // INTVECTOR");
320 u_fprintf(out, "\n");
332 printIndent(out, indent);
334 u_fprintf(out, "%s ", key);
336 u_fprintf(out, "{");
339 u_fprintf(out, " // TABLE");
341 u_fprintf(out, " // ARRAY");
344 u_fprintf(out, "\n");
348 printOutBundle(out, t, indent+indentsize, status);
351 printIndent(out, indent);
352 u_fprintf(out, "}\n");