Lines Matching refs:status_
33 LocaleBuilder::LocaleBuilder() : UObject(), status_(U_ZERO_ERROR), language_(), in LocaleBuilder()
56 status_ = U_MEMORY_ALLOCATION_ERROR; in setLocale()
63 Locale l = Locale::forLanguageTag(tag, status_); in setLanguageTag()
64 if (U_FAILURE(status_)) { return *this; } in setLanguageTag()
86 setField(language, language_, status_, &ultag_isLanguageSubtag); in setLanguage()
92 setField(script, script_, status_, &ultag_isScriptSubtag); in setScript()
98 setField(region, region_, status_, &ultag_isRegionSubtag); in setRegion()
114 if (U_FAILURE(status_)) { return *this; } in setVariant()
120 CharString* new_variant = new CharString(variant, status_); in setVariant()
121 if (U_FAILURE(status_)) { return *this; } in setVariant()
123 status_ = U_MEMORY_ALLOCATION_ERROR; in setVariant()
129 status_ = U_ILLEGAL_ARGUMENT_ERROR; in setVariant()
217 if (U_FAILURE(status_)) { return *this; } in setExtension()
219 status_ = U_ILLEGAL_ARGUMENT_ERROR; in setExtension()
222 CharString value_str(value, status_); in setExtension()
223 if (U_FAILURE(status_)) { return *this; } in setExtension()
227 status_ = U_ILLEGAL_ARGUMENT_ERROR; in setExtension()
233 status_ = U_MEMORY_ALLOCATION_ERROR; in setExtension()
240 status_); in setExtension()
243 _clearUAttributesAndKeyType(*extensions_, status_); in setExtension()
244 if (U_FAILURE(status_)) { return *this; } in setExtension()
246 _setUnicodeExtensions(*extensions_, value_str, status_); in setExtension()
254 if (U_FAILURE(status_)) { return *this; } in setUnicodeLocaleKeyword()
258 status_ = U_ILLEGAL_ARGUMENT_ERROR; in setUnicodeLocaleKeyword()
264 status_ = U_MEMORY_ALLOCATION_ERROR; in setUnicodeLocaleKeyword()
268 extensions_->setUnicodeKeywordValue(key, type, status_); in setUnicodeLocaleKeyword()
275 CharString value_str(value, status_); in addUnicodeLocaleAttribute()
276 if (U_FAILURE(status_)) { return *this; } in addUnicodeLocaleAttribute()
279 status_ = U_ILLEGAL_ARGUMENT_ERROR; in addUnicodeLocaleAttribute()
285 status_ = U_MEMORY_ALLOCATION_ERROR; in addUnicodeLocaleAttribute()
288 extensions_->setKeywordValue(kAttributeKey, value_str.data(), status_); in addUnicodeLocaleAttribute()
297 CharString new_attributes(value_str.data(), status_); in addUnicodeLocaleAttribute()
299 extensions_->setKeywordValue(kAttributeKey, new_attributes.data(), status_); in addUnicodeLocaleAttribute()
313 if (!new_attributes.isEmpty()) new_attributes.append('_', status_); in addUnicodeLocaleAttribute()
314 new_attributes.append(value_str.data(), status_); in addUnicodeLocaleAttribute()
319 new_attributes.append('_', status_); in addUnicodeLocaleAttribute()
321 new_attributes.append(start, status_); in addUnicodeLocaleAttribute()
326 new_attributes.append('_', status_); in addUnicodeLocaleAttribute()
328 new_attributes.append(value_str.data(), status_); in addUnicodeLocaleAttribute()
331 extensions_->setKeywordValue(kAttributeKey, new_attributes.data(), status_); in addUnicodeLocaleAttribute()
338 CharString value_str(value, status_); in removeUnicodeLocaleAttribute()
339 if (U_FAILURE(status_)) { return *this; } in removeUnicodeLocaleAttribute()
342 status_ = U_ILLEGAL_ARGUMENT_ERROR; in removeUnicodeLocaleAttribute()
371 new_attributes.append('_', status_); in removeUnicodeLocaleAttribute()
373 new_attributes.append(start, status_); in removeUnicodeLocaleAttribute()
379 extensions_->setKeywordValue(kAttributeKey, new_attributes.data(), status_); in removeUnicodeLocaleAttribute()
386 status_ = U_ZERO_ERROR; in clear()
420 status_ = U_MEMORY_ALLOCATION_ERROR; in copyExtensionsFrom()
432 if (U_FAILURE(status_)) { in build()
433 errorCode = status_; in build()
464 outErrorCode = status_; in copyErrorTo()