intl/icu/source/i18n/dcfmtimp.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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