intl/icu/source/i18n/dcfmtimp.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /*
     2 ********************************************************************************
     3 *   Copyright (C) 2012, International Business Machines
     4 *   Corporation and others.  All Rights Reserved.
     5 ********************************************************************************/
     7 #ifndef DCFMTIMP_H
     8 #define DCFMTIMP_H
    10 #include "unicode/utypes.h"
    13 #if UCONFIG_FORMAT_FASTPATHS_49
    15 U_NAMESPACE_BEGIN
    17 enum EDecimalFormatFastpathStatus {
    18   kFastpathNO = 0,
    19   kFastpathYES = 1,
    20   kFastpathUNKNOWN = 2 /* not yet set */
    21 };
    23 /**
    24  * Must be smaller than DecimalFormat::fReserved
    25  */
    26 struct DecimalFormatInternal {
    27   uint8_t    fFastFormatStatus;
    28   uint8_t    fFastParseStatus;
    30 #ifdef FMT_DEBUG
    31   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 };
    42 U_NAMESPACE_END
    44 #endif
    46 #endif

mercurial