Lines Matching refs:err
55 UBool displayUsage = FALSE; /* Set true if command line err or help */
66 UErrorCode err = U_ZERO_ERROR; /* Error return, used for most ICU */
118 udata_setAppData("fortune_resources", &fortune_resources_dat, &err);
119 if (U_FAILURE(err)) {
120 fprintf(stderr, "%s: udata_setAppData failed with error \"%s\"\n", programName, u_errorName(err));
127 myResources = ures_open("fortune_resources", locale, &err);
128 if (U_FAILURE(err)) {
129 fprintf(stderr, "%s: ures_open failed with error \"%s\"\n", programName, u_errorName(err));
134 locale? locale: " ", u_errorName(err));
142 const UChar *msg = ures_getStringByKey(myResources, "optionMessage", &len, &err);
143 if (U_FAILURE(err)) {
145 programName, u_errorName(err));
156 usage = ures_getStringByKey(myResources, "usage", &len, &err);
157 if (U_FAILURE(err)) {
158 fprintf(stderr, "%s: ures_getStringByKey(\"usage\") failed, %s\n", programName, u_errorName(err));
169 fortunes_r = ures_getByKey(myResources, "fortunes", NULL, &err);
170 if (U_FAILURE(err)) {
171 fprintf(stderr, "%s: ures_getByKey(\"fortunes\") failed, %s\n", programName, u_errorName(err));
180 numFortunes = ures_countArrayItems(myResources, "fortunes", &err);
181 if (U_FAILURE(err)) {
182 fprintf(stderr, "%s: ures_countArrayItems(\"fortunes\") failed, %s\n", programName, u_errorName(err));
191 resString = ures_getStringByIndex(fortunes_r, i, &len, &err);
192 if (U_FAILURE(err)) {
193 fprintf(stderr, "%s: ures_getStringByIndex(%d) failed, %s\n", programName, i, u_errorName(err));