Home | History | Annotate | Download | only in genrb

Lines Matching defs:pname

46 static void reportError(const char *pname, UErrorCode *status, const char *when);
48 static void printOutBundle(UFILE *out, UResourceBundle *resource, int32_t indent, const char *pname, UErrorCode *status);
81 const char *pname;
89 pname = uprv_strrchr(*argv, U_FILE_SEP_CHAR);
91 if (!pname) {
92 pname = uprv_strrchr(*argv, U_FILE_ALT_SEP_CHAR);
95 if (!pname) {
96 pname = *argv;
98 ++pname;
107 "%s: error in command line argument \"%s\"\n", pname,
119 pname);
127 pname, DERB_VERSION, U_ICU_VERSION, U_COPYRIGHT_STRING);
136 fprintf(stderr, "%s: Error: don't specify an encoding (-e) when writing to stdout (-c).\n", pname);
271 u_fprintf(ustderr, "%s: couldn't create %s\n", pname, thefile.data());
280 u_fprintf(ustderr, "%s: couldn't configure converter for encoding\n", pname);
306 printOutBundle(out, bundle, 0, pname, &status);
313 reportError(pname, &status, "opening resource file");
386 static void printOutAlias(UFILE *out, UResourceBundle *parent, Resource r, const char *key, int32_t indent, const char *pname, UErrorCode *status) {
414 reportError(pname, status, "getting binary value");
419 static void printOutBundle(UFILE *out, UResourceBundle *resource, int32_t indent, const char *pname, UErrorCode *status)
519 reportError(pname, status, "getting binary value");
554 reportError(pname, status, "getting int vector");
584 printOutBundle(out, t, indent+indentsize, pname, status);
586 reportError(pname, status, "While processing table");
603 printOutAlias(out, resource, r, key, indent+indentsize, pname, status);
606 printOutBundle(out, t, indent+indentsize, pname, status);
609 reportError(pname, status, "While processing table");
641 static void reportError(const char *pname, UErrorCode *status, const char *when) {
642 u_fprintf(ustderr, "%s: error %d while %s: %s\n", pname, *status, when, u_errorName(*status));