• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/ICU-531.30/icuSources/samples/uresb/

Lines Matching refs:out

18  * This program prints out resource bundles - example for
59 void printOutBundle(UFILE *out, UResourceBundle *resource, int32_t indent, UErrorCode *status);
60 void printIndent(UFILE *out, int32_t indent);
61 void printHex(UFILE *out, const int8_t *what);
80 UFILE *out = NULL;
146 out = u_finit(stdout, locale, encoding);
152 u_fprintf(out, "uresb: processing file \"%s\" in path \"%s\"\n", arg, resPath);
155 u_fprintf(out, "%s\n", arg);
156 printOutBundle(out, bundle, 0, &status);
166 u_fclose(out);
171 void printIndent(UFILE *out, int32_t indent) {
178 u_fprintf(out, "%s", inchar);
181 void printHex(UFILE *out, const int8_t *what) {
182 u_fprintf(out, "%02X", (uint8_t)*what);
221 void printOutBundle(UFILE *out, UResourceBundle *resource, int32_t indent, UErrorCode *status) {
235 printIndent(out, indent);
236 u_fprintf(out, "// WARNING: this string, size %d is truncated to %d\n", len, truncsize/2);
240 printIndent(out, indent);
242 u_fprintf(out, "%s { \"%S\" } ", key, string);
244 u_fprintf(out, "\"%S\",", string);
247 u_fprintf(out, " // STRING");
249 u_fprintf(out, "\n");
254 printIndent(out, indent);
256 u_fprintf(out, "%s", key);
258 u_fprintf(out, ":int { %li } ", ures_getInt(resource, status));
261 u_fprintf(out, " // INT");
263 u_fprintf(out, "\n");
270 printIndent(out, indent);
271 u_fprintf(out, "// WARNING: this resource, size %li is truncated to %li\n", len, truncsize/2);
275 printIndent(out, indent);
277 u_fprintf(out, "%s", key);
279 u_fprintf(out, ":binary { ");
281 printHex(out, data++);
283 u_fprintf(out, " }");
285 u_fprintf(out, " // BINARY");
287 u_fprintf(out, "\n");
299 printIndent(out, indent);
301 u_fprintf(out, "%s", key);
303 u_fprintf(out, ":intvector { ");
305 u_fprintf(out, "%d, ", data[i]);
308 u_fprintf(out, "%d ", data[len-1]);
310 u_fprintf(out, "}");
312 u_fprintf(out, " // INTVECTOR");
314 u_fprintf(out, "\n");
326 printIndent(out, indent);
328 u_fprintf(out, "%s ", key);
330 u_fprintf(out, "{");
333 u_fprintf(out, " // TABLE");
335 u_fprintf(out, " // ARRAY");
338 u_fprintf(out, "\n");
342 printOutBundle(out, t, indent+indentsize, status);
345 printIndent(out, indent);
346 u_fprintf(out, "}\n");