Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* |
michael@0 | 2 | ******************************************************************************** |
michael@0 | 3 | * Copyright (C) 2012, International Business Machines |
michael@0 | 4 | * Corporation and others. All Rights Reserved. |
michael@0 | 5 | ********************************************************************************/ |
michael@0 | 6 | |
michael@0 | 7 | #ifndef DCFMTIMP_H |
michael@0 | 8 | #define DCFMTIMP_H |
michael@0 | 9 | |
michael@0 | 10 | #include "unicode/utypes.h" |
michael@0 | 11 | |
michael@0 | 12 | |
michael@0 | 13 | #if UCONFIG_FORMAT_FASTPATHS_49 |
michael@0 | 14 | |
michael@0 | 15 | U_NAMESPACE_BEGIN |
michael@0 | 16 | |
michael@0 | 17 | enum EDecimalFormatFastpathStatus { |
michael@0 | 18 | kFastpathNO = 0, |
michael@0 | 19 | kFastpathYES = 1, |
michael@0 | 20 | kFastpathUNKNOWN = 2 /* not yet set */ |
michael@0 | 21 | }; |
michael@0 | 22 | |
michael@0 | 23 | /** |
michael@0 | 24 | * Must be smaller than DecimalFormat::fReserved |
michael@0 | 25 | */ |
michael@0 | 26 | struct DecimalFormatInternal { |
michael@0 | 27 | uint8_t fFastFormatStatus; |
michael@0 | 28 | uint8_t fFastParseStatus; |
michael@0 | 29 | |
michael@0 | 30 | #ifdef FMT_DEBUG |
michael@0 | 31 | void dump() const { |
michael@0 | 32 | printf("DecimalFormatInternal: fFastFormatStatus=%c, fFastParseStatus=%c\n", |
michael@0 | 33 | "NY?"[(int)fFastFormatStatus&3], |
michael@0 | 34 | "NY?"[(int)fFastParseStatus&3] |
michael@0 | 35 | ); |
michael@0 | 36 | } |
michael@0 | 37 | #endif |
michael@0 | 38 | }; |
michael@0 | 39 | |
michael@0 | 40 | |
michael@0 | 41 | |
michael@0 | 42 | U_NAMESPACE_END |
michael@0 | 43 | |
michael@0 | 44 | #endif |
michael@0 | 45 | |
michael@0 | 46 | #endif |