2 ********************************************************************************
3 * Copyright (C) 2012-2014, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 ********************************************************************************/
10 #include "unicode/utypes.h"
13 #if UCONFIG_FORMAT_FASTPATHS_49
17 enum EDecimalFormatFastpathStatus
{
20 kFastpathUNKNOWN
= 2, /* not yet set */
21 kFastpathMAYBE
= 3 /* depends on value being formatted. */
25 * Must be smaller than DecimalFormat::fReserved
27 struct DecimalFormatInternal
{
28 uint8_t fFastFormatStatus
;
29 uint8_t fFastParseStatus
;
31 DecimalFormatInternal
&operator=(const DecimalFormatInternal
& rhs
) {
32 fFastParseStatus
= rhs
.fFastParseStatus
;
33 fFastFormatStatus
= rhs
.fFastFormatStatus
;
38 printf("DecimalFormatInternal: fFastFormatStatus=%c, fFastParseStatus=%c\n",
39 "NY?"[(int)fFastFormatStatus
&3],
40 "NY?"[(int)fFastParseStatus
&3]