Lines Matching defs:other

178     //   (Different from most other locale APIs, where a null name means use
404 Locale::Locale(const Locale &other)
405 : UObject(other), fullName(fullNameBuffer), baseName(nullptr)
407 *this = other;
410 Locale::Locale(Locale&& other) noexcept
411 : UObject(other), fullName(fullNameBuffer), baseName(fullName) {
412 *this = std::move(other);
415 Locale& Locale::operator=(const Locale& other) {
416 if (this == &other) {
422 if (other.fullName == other.fullNameBuffer) {
423 uprv_strcpy(fullNameBuffer, other.fullNameBuffer);
424 } else if (other.fullName == nullptr) {
427 fullName = uprv_strdup(other.fullName);
431 if (other.baseName == other.fullName) {
433 } else if (other.baseName != nullptr) {
434 baseName = uprv_strdup(other.baseName);
438 uprv_strcpy(language, other.language);
439 uprv_strcpy(script, other.script);
440 uprv_strcpy(country, other.country);
442 variantBegin = other.variantBegin;
443 fIsBogus = other.fIsBogus;
448 Locale& Locale::operator=(Locale&& other) noexcept {
452 if (other.fullName == other.fullNameBuffer || other.baseName == other.fullNameBuffer) {
453 uprv_strcpy(fullNameBuffer, other.fullNameBuffer);
455 if (other.fullName == other.fullNameBuffer) {
458 fullName = other.fullName;
461 if (other.baseName == other.fullNameBuffer) {
463 } else if (other.baseName == other.fullName) {
466 baseName = other.baseName;
469 uprv_strcpy(language, other.language);
470 uprv_strcpy(script, other.script);
471 uprv_strcpy(country, other.country);
473 variantBegin = other.variantBegin;
474 fIsBogus = other.fIsBogus;
476 other.baseName = other.fullName = other.fullNameBuffer;
487 Locale::operator==( const Locale& other) const
489 return (uprv_strcmp(other.fullName, fullName) == 0);
2525 // Not a Unicode keyword, could be a t, x or other, continue to look at the next one.