Lines Matching refs:status

169 // CalendarData::CalendarData(const Locale& loc, UErrorCode& status) 
171 // initData(loc.getBaseName(), (char*) "???", status);
174 CalendarData::CalendarData(const Locale& loc, const char *type, UErrorCode& status)
176 initData(loc.getBaseName(), type, status);
179 void CalendarData::initData(const char *locale, const char *type, UErrorCode& status) {
180 fOtherFillin = ures_open(U_CALENDAR_DATA, locale, &status);
181 fFillin = ures_getByKey(fOtherFillin, U_CALENDAR_KEY, fFillin, &status);
187 fBundle = ures_getByKeyWithFallback(fFillin, type, NULL, &status);
188 fFallback = ures_getByKeyWithFallback(fFillin, U_GREGORIAN_KEY, NULL, &status);
192 this, locale, type, u_errorName(status), fBundle, type, fBundle?ures_getLocale(fBundle, &status):"",
193 fFallback, U_GREGORIAN_KEY, fFallback?ures_getLocale(fFallback, &status):"");
197 fBundle = ures_getByKeyWithFallback(fFillin, U_GREGORIAN_KEY, NULL, &status);
200 this, locale, type, u_errorName(status), fBundle, U_GREGORIAN_KEY, fBundle?ures_getLocale(fBundle, &status):"" );
213 CalendarData::getByKey(const char *key, UErrorCode& status) {
214 if(U_FAILURE(status)) {
219 fFillin = ures_getByKeyWithFallback(fBundle, key, fFillin, &status);
221 fprintf(stderr, "%p: get %s -> %s - from MAIN %s\n",this, key, u_errorName(status), ures_getLocale(fFillin, &status));
224 if(fFallback && (status == U_MISSING_RESOURCE_ERROR)) {
225 status = U_ZERO_ERROR; // retry with fallback (gregorian)
226 fFillin = ures_getByKeyWithFallback(fFallback, key, fFillin, &status);
228 fprintf(stderr, "%p: get %s -> %s - from FALLBACK %s\n",this, key, u_errorName(status), ures_getLocale(fFillin, &status));
234 UResourceBundle* CalendarData::getByKey2(const char *key, const char *subKey, UErrorCode& status) {
235 if(U_FAILURE(status)) {
243 fFillin = ures_getByKeyWithFallback(fBundle, key, fFillin, &status);
244 fOtherFillin = ures_getByKeyWithFallback(fFillin, U_FORMAT_KEY, fOtherFillin, &status);
245 fFillin = ures_getByKeyWithFallback(fOtherFillin, subKey, fFillin, &status);
247 fprintf(stderr, "%p: get %s/format/%s -> %s - from MAIN %s\n", this, key, subKey, u_errorName(status), ures_getLocale(fFillin, &status));
250 if(fFallback && (status == U_MISSING_RESOURCE_ERROR)) {
251 status = U_ZERO_ERROR; // retry with fallback (gregorian)
252 fFillin = ures_getByKeyWithFallback(fFallback, key, fFillin, &status);
253 fOtherFillin = ures_getByKeyWithFallback(fFillin, U_FORMAT_KEY, fOtherFillin, &status);
254 fFillin = ures_getByKeyWithFallback(fOtherFillin, subKey, fFillin, &status);
256 fprintf(stderr, "%p: get %s/format/%s -> %s - from FALLBACK %s\n",this, key, subKey, u_errorName(status), ures_getLocale(fFillin,&status));
261 // if((status == U_MISSING_RESOURCE_ERROR) &&
283 // status = U_ZERO_ERROR;
284 // /* fFillin = */ getByKey2(key, kwBuf, status);
288 // fprintf(stderr, "%p: could not load %s/format/default - fail out (%s)\n",this, key, kwBuf, u_errorName(status));
296 UResourceBundle* CalendarData::getByKey3(const char *key, const char *contextKey, const char *subKey, UErrorCode& status) {
297 if(U_FAILURE(status)) {
305 fFillin = ures_getByKeyWithFallback(fBundle, key, fFillin, &status);
306 fOtherFillin = ures_getByKeyWithFallback(fFillin, contextKey, fOtherFillin, &status);
307 fFillin = ures_getByKeyWithFallback(fOtherFillin, subKey, fFillin, &status);
309 fprintf(stderr, "%p: get %s/%s/%s -> %s - from MAIN %s\n", this, key, contextKey, subKey, u_errorName(status), ures_getLocale(fFillin, &status));
312 if(fFallback && (status == U_MISSING_RESOURCE_ERROR)) {
313 status = U_ZERO_ERROR; // retry with fallback (gregorian)
314 fFillin = ures_getByKeyWithFallback(fFallback, key, fFillin, &status);
315 fOtherFillin = ures_getByKeyWithFallback(fFillin, contextKey, fOtherFillin, &status);
316 fFillin = ures_getByKeyWithFallback(fOtherFillin, subKey, fFillin, &status);
318 fprintf(stderr, "%p: get %s/%s/%s -> %s - from FALLBACK %s\n",this, key, contextKey, subKey, u_errorName(status), ures_getLocale(fFillin,&status));