• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 ********************************************************************************
3 *   Copyright (C) 2012, International Business Machines
4 *   Corporation and others.  All Rights Reserved.
5 ********************************************************************************/
6 
7 #ifndef DCFMTIMP_H
8 #define DCFMTIMP_H
9 
10 #include "unicode/utypes.h"
11 
12 
13 #if UCONFIG_FORMAT_FASTPATHS_49
14 
15 U_NAMESPACE_BEGIN
16 
17 enum EDecimalFormatFastpathStatus {
18   kFastpathNO = 0,
19   kFastpathYES = 1,
20   kFastpathUNKNOWN = 2 /* not yet set */
21 };
22 
23 /**
24  * Must be smaller than DecimalFormat::fReserved
25  */
26 struct DecimalFormatInternal {
27   uint8_t    fFastFormatStatus;
28   uint8_t    fFastParseStatus;
29 
30 #ifdef FMT_DEBUG
dumpDecimalFormatInternal31   void dump() const {
32     printf("DecimalFormatInternal: fFastFormatStatus=%c, fFastParseStatus=%c\n",
33            "NY?"[(int)fFastFormatStatus&3],
34            "NY?"[(int)fFastParseStatus&3]
35            );
36   }
37 #endif
38 };
39 
40 
41 
42 U_NAMESPACE_END
43 
44 #endif
45 
46 #endif
47