Lines Matching refs:pname
60 static void reportError(const char *pname, UErrorCode *status, const char *when);
62 static void printOutBundle(FILE *out, UConverter *converter, UResourceBundle *resource, int32_t indent, const char *pname, UErrorCode *status);
94 const char *pname;
105 pname = uprv_strrchr(*argv, U_FILE_SEP_CHAR);
107 if (!pname) {
108 pname = uprv_strrchr(*argv, U_FILE_ALT_SEP_CHAR);
111 if (!pname) {
112 pname = *argv;
114 ++pname;
123 "%s: error in command line argument \"%s\"\n", pname,
135 pname);
143 pname, DERB_VERSION, U_ICU_VERSION, U_COPYRIGHT_STRING);
191 fprintf(stderr, "%s: couldn't create %s converter for encoding\n", pname, encoding ? encoding : ucnv_getDefaultName());
196 fprintf(stderr, "%s: couldn't configure converter for encoding\n", pname);
202 fprintf(stderr, "%s: couldn't create %s converter for encoding\n", ucnv_getDefaultName(), pname);
298 fprintf(stderr, "%s: couldn't set standard output to binary mode\n", pname);
324 fprintf(stderr, "%s: couldn't create %s\n", pname, thefile);
354 printOutBundle(out, converter, bundle, 0, pname, &status);
361 reportError(pname, &status, "opening resource file");
518 static void printOutAlias(FILE *out, UConverter *converter, UResourceBundle *parent, Resource r, const char *key, int32_t indent, const char *pname, UErrorCode *status) {
546 reportError(pname, status, "getting binary value");
551 static void printOutBundle(FILE *out, UConverter *converter, UResourceBundle *resource, int32_t indent, const char *pname, UErrorCode *status)
651 reportError(pname, status, "getting binary value");
686 reportError(pname, status, "getting int vector");
716 printOutBundle(out, converter, t, indent+indentsize, pname, status);
718 reportError(pname, status, "While processing table");
734 printOutAlias(out, converter, resource, r, key, indent+indentsize, pname, status);
737 printOutBundle(out, converter, t, indent+indentsize, pname, status);
740 reportError(pname, status, "While processing table");
772 static void reportError(const char *pname, UErrorCode *status, const char *when) {
773 fprintf(stderr, "%s: error %d while %s: %s\n", pname, *status, when, u_errorName(*status));