Home | History | Annotate | Download | only in i18n

Lines Matching refs:errorCode

226                                   int32_t minPlaceholders, UErrorCode &errorCode) {
229 if (U_SUCCESS(errorCode) && patterns[index] == NULL) {
231 value.getUnicodeString(errorCode), minPlaceholders, 1, errorCode);
232 if (U_SUCCESS(errorCode) && patterns[index] == NULL) {
233 errorCode = U_MEMORY_ALLOCATION_ERROR;
238 virtual void put(const char *key, const ResourceValue &value, UErrorCode &errorCode) {
239 if (U_FAILURE(errorCode)) { return; }
246 setFormatterIfAbsent(MeasureFormatCacheData::PER_UNIT_INDEX, value, 0, errorCode);
251 setFormatterIfAbsent(StandardPlural::indexFromString(key, errorCode), value, 0,
252 errorCode);
266 const char *key, int32_t /* initialSize */, UErrorCode &errorCode) {
267 if (U_FAILURE(errorCode)) { return NULL; }
284 virtual void put(const char *key, const ResourceValue &value, UErrorCode &errorCode) {
285 if (U_SUCCESS(errorCode) && uprv_strcmp(key, "per") == 0) {
287 compileMinMaxPlaceholders(value.getUnicodeString(errorCode), 2, 2, errorCode);
302 const char *key, int32_t /* initialSize */, UErrorCode &errorCode) {
303 if (U_FAILURE(errorCode)) { return NULL; }
324 virtual void put(const char *key, const ResourceValue &value, UErrorCode &errorCode) {
328 if (U_FAILURE(errorCode) || value.getType() != URES_ALIAS) { return; }
334 UMeasureFormatWidth targetWidth = widthFromAlias(value, errorCode);
337 errorCode = U_INVALID_FORMAT_ERROR;
342 errorCode = U_INVALID_FORMAT_ERROR;
348 const char *key, int32_t /* initialSize */, UErrorCode &errorCode) {
349 if (U_SUCCESS(errorCode) && (width = widthFromKey(key)) != UMEASFMT_WIDTH_COUNT) {
369 static UMeasureFormatWidth widthFromAlias(const ResourceValue &value, UErrorCode &errorCode) {
371 const UChar *s = value.getAliasString(length, errorCode);
373 if (U_SUCCESS(errorCode) && length >= 13 && u_memcmp(s, g_LOCALE_units, 13) == 0) {
1053 UErrorCode &errorCode) const {
1054 if (U_FAILURE(errorCode)) {
1059 errorCode = U_MISSING_RESOURCE_ERROR;
1066 UErrorCode &errorCode) const {
1067 if (U_FAILURE(errorCode)) {
1076 return getFormatter(unit, width, StandardPlural::OTHER, errorCode);