1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/i18n/dcfmtimp.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,46 @@ 1.4 +/* 1.5 +******************************************************************************** 1.6 +* Copyright (C) 2012, International Business Machines 1.7 +* Corporation and others. All Rights Reserved. 1.8 +********************************************************************************/ 1.9 + 1.10 +#ifndef DCFMTIMP_H 1.11 +#define DCFMTIMP_H 1.12 + 1.13 +#include "unicode/utypes.h" 1.14 + 1.15 + 1.16 +#if UCONFIG_FORMAT_FASTPATHS_49 1.17 + 1.18 +U_NAMESPACE_BEGIN 1.19 + 1.20 +enum EDecimalFormatFastpathStatus { 1.21 + kFastpathNO = 0, 1.22 + kFastpathYES = 1, 1.23 + kFastpathUNKNOWN = 2 /* not yet set */ 1.24 +}; 1.25 + 1.26 +/** 1.27 + * Must be smaller than DecimalFormat::fReserved 1.28 + */ 1.29 +struct DecimalFormatInternal { 1.30 + uint8_t fFastFormatStatus; 1.31 + uint8_t fFastParseStatus; 1.32 + 1.33 +#ifdef FMT_DEBUG 1.34 + void dump() const { 1.35 + printf("DecimalFormatInternal: fFastFormatStatus=%c, fFastParseStatus=%c\n", 1.36 + "NY?"[(int)fFastFormatStatus&3], 1.37 + "NY?"[(int)fFastParseStatus&3] 1.38 + ); 1.39 + } 1.40 +#endif 1.41 +}; 1.42 + 1.43 + 1.44 + 1.45 +U_NAMESPACE_END 1.46 + 1.47 +#endif 1.48 + 1.49 +#endif