| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * Copyright (C) 1997-2014, International Business Machines Corporation and * | 3 * Copyright (C) 1997-2015, International Business Machines Corporation and * |
| 4 * others. All Rights Reserved. * | 4 * others. All Rights Reserved. * |
| 5 ******************************************************************************* | 5 ******************************************************************************* |
| 6 */ | 6 */ |
| 7 #ifndef _DECIMAL_FORMAT_PATTERN | 7 #ifndef _DECIMAL_FORMAT_PATTERN |
| 8 #define _DECIMAL_FORMAT_PATTERN | 8 #define _DECIMAL_FORMAT_PATTERN |
| 9 | 9 |
| 10 #include "unicode/utypes.h" | 10 #include "unicode/utypes.h" |
| 11 | 11 |
| 12 #if !UCONFIG_NO_FORMATTING | 12 #if !UCONFIG_NO_FORMATTING |
| 13 | 13 |
| 14 #include "unicode/uobject.h" | 14 #include "unicode/uobject.h" |
| 15 #include "unicode/unistr.h" | 15 #include "unicode/unistr.h" |
| 16 #include "digitlst.h" | 16 #include "digitlst.h" |
| 17 #include "affixpatternparser.h" |
| 17 | 18 |
| 18 U_NAMESPACE_BEGIN | 19 U_NAMESPACE_BEGIN |
| 19 | 20 |
| 20 // currency sign count | 21 // currency sign count |
| 21 enum CurrencySignCount { | 22 enum CurrencySignCount { |
| 22 fgCurrencySignCountZero, | 23 fgCurrencySignCountZero, |
| 23 fgCurrencySignCountInSymbolFormat, | 24 fgCurrencySignCountInSymbolFormat, |
| 24 fgCurrencySignCountInISOFormat, | 25 fgCurrencySignCountInISOFormat, |
| 25 fgCurrencySignCountInPluralFormat | 26 fgCurrencySignCountInPluralFormat |
| 26 }; | 27 }; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 56 int32_t fFormatWidth; | 57 int32_t fFormatWidth; |
| 57 UBool fRoundingIncrementUsed; | 58 UBool fRoundingIncrementUsed; |
| 58 DigitList fRoundingIncrement; | 59 DigitList fRoundingIncrement; |
| 59 UChar32 fPad; | 60 UChar32 fPad; |
| 60 UBool fNegPatternsBogus; | 61 UBool fNegPatternsBogus; |
| 61 UBool fPosPatternsBogus; | 62 UBool fPosPatternsBogus; |
| 62 UnicodeString fNegPrefixPattern; | 63 UnicodeString fNegPrefixPattern; |
| 63 UnicodeString fNegSuffixPattern; | 64 UnicodeString fNegSuffixPattern; |
| 64 UnicodeString fPosPrefixPattern; | 65 UnicodeString fPosPrefixPattern; |
| 65 UnicodeString fPosSuffixPattern; | 66 UnicodeString fPosSuffixPattern; |
| 67 AffixPattern fNegPrefixAffix; |
| 68 AffixPattern fNegSuffixAffix; |
| 69 AffixPattern fPosPrefixAffix; |
| 70 AffixPattern fPosSuffixAffix; |
| 66 EPadPosition fPadPosition; | 71 EPadPosition fPadPosition; |
| 67 }; | 72 }; |
| 68 | 73 |
| 69 class DecimalFormatPatternParser : UMemory { | 74 class DecimalFormatPatternParser : UMemory { |
| 70 public: | 75 public: |
| 71 DecimalFormatPatternParser(); | 76 DecimalFormatPatternParser(); |
| 72 void useSymbols(const DecimalFormatSymbols& symbols); | 77 void useSymbols(const DecimalFormatSymbols& symbols); |
| 73 | 78 |
| 74 void applyPatternWithoutExpandAffix( | 79 void applyPatternWithoutExpandAffix( |
| 75 const UnicodeString& pattern, | 80 const UnicodeString& pattern, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 90 UnicodeString fExponent; | 95 UnicodeString fExponent; |
| 91 UnicodeString fPlus; | 96 UnicodeString fPlus; |
| 92 UnicodeString fMinus; | 97 UnicodeString fMinus; |
| 93 UnicodeString fPadEscape; | 98 UnicodeString fPadEscape; |
| 94 }; | 99 }; |
| 95 | 100 |
| 96 U_NAMESPACE_END | 101 U_NAMESPACE_END |
| 97 | 102 |
| 98 #endif /* !UCONFIG_NO_FORMATTING */ | 103 #endif /* !UCONFIG_NO_FORMATTING */ |
| 99 #endif | 104 #endif |
| OLD | NEW |