1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 ********************************************************************************
5 * Copyright (C) 2012-2014, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 ********************************************************************************/
12 #include "unicode/utypes.h"
15 #if UCONFIG_FORMAT_FASTPATHS_49
19 enum EDecimalFormatFastpathStatus {
22 kFastpathUNKNOWN = 2, /* not yet set */
23 kFastpathMAYBE = 3 /* depends on value being formatted. */
27 * Must be smaller than DecimalFormat::fReserved
29 struct DecimalFormatInternal {
30 uint8_t fFastFormatStatus;
31 uint8_t fFastParseStatus;
33 DecimalFormatInternal &operator=(const DecimalFormatInternal& rhs) {
34 fFastParseStatus = rhs.fFastParseStatus;
35 fFastFormatStatus = rhs.fFastFormatStatus;
40 printf("DecimalFormatInternal: fFastFormatStatus=%c, fFastParseStatus=%c\n",
41 "NY?"[(int)fFastFormatStatus&3],
42 "NY?"[(int)fFastParseStatus&3]