/*
********************************************************************************
-* Copyright (C) 2012, International Business Machines
+* Copyright (C) 2012-2014, International Business Machines
* Corporation and others. All Rights Reserved.
********************************************************************************/
struct DecimalFormatInternal {
uint8_t fFastFormatStatus;
uint8_t fFastParseStatus;
-
+
+ DecimalFormatInternal &operator=(const DecimalFormatInternal& rhs) {
+ fFastParseStatus = rhs.fFastParseStatus;
+ fFastFormatStatus = rhs.fFastFormatStatus;
+ return *this;
+ }
#ifdef FMT_DEBUG
void dump() const {
printf("DecimalFormatInternal: fFastFormatStatus=%c, fFastParseStatus=%c\n",
"NY?"[(int)fFastParseStatus&3]
);
}
-#endif
+#endif
};
fPluralAffixesForCurrency = initHashForAffixPattern(status);
copyHashForAffix(rhs.fPluralAffixesForCurrency, fPluralAffixesForCurrency, status);
}
- }
#if UCONFIG_FORMAT_FASTPATHS_49
- handleChanged();
+ DecimalFormatInternal &data = internalData(fReserved);
+ const DecimalFormatInternal &rhsData = internalData(rhs.fReserved);
+ data = rhsData;
#endif
+ }
return *this;
}