michael@0: /* michael@0: ******************************************************************************** michael@0: * Copyright (C) 2012, International Business Machines michael@0: * Corporation and others. All Rights Reserved. michael@0: ********************************************************************************/ michael@0: michael@0: #ifndef DCFMTIMP_H michael@0: #define DCFMTIMP_H michael@0: michael@0: #include "unicode/utypes.h" michael@0: michael@0: michael@0: #if UCONFIG_FORMAT_FASTPATHS_49 michael@0: michael@0: U_NAMESPACE_BEGIN michael@0: michael@0: enum EDecimalFormatFastpathStatus { michael@0: kFastpathNO = 0, michael@0: kFastpathYES = 1, michael@0: kFastpathUNKNOWN = 2 /* not yet set */ michael@0: }; michael@0: michael@0: /** michael@0: * Must be smaller than DecimalFormat::fReserved michael@0: */ michael@0: struct DecimalFormatInternal { michael@0: uint8_t fFastFormatStatus; michael@0: uint8_t fFastParseStatus; michael@0: michael@0: #ifdef FMT_DEBUG michael@0: void dump() const { michael@0: printf("DecimalFormatInternal: fFastFormatStatus=%c, fFastParseStatus=%c\n", michael@0: "NY?"[(int)fFastFormatStatus&3], michael@0: "NY?"[(int)fFastParseStatus&3] michael@0: ); michael@0: } michael@0: #endif michael@0: }; michael@0: michael@0: michael@0: michael@0: U_NAMESPACE_END michael@0: michael@0: #endif michael@0: michael@0: #endif