| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * Copyright (C) 2007-2013, International Business Machines Corporation and | 3 * Copyright (C) 2007-2015, International Business Machines Corporation and |
| 4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
| 5 ******************************************************************************* | 5 ******************************************************************************* |
| 6 * | 6 * |
| 7 * File PLURRULE_IMPL.H | 7 * File PLURRULE_IMPL.H |
| 8 * | 8 * |
| 9 ******************************************************************************* | 9 ******************************************************************************* |
| 10 */ | 10 */ |
| 11 | 11 |
| 12 | 12 |
| 13 #ifndef PLURRULE_IMPLE | 13 #ifndef PLURRULE_IMPLE |
| (...skipping 10 matching lines...) Expand all Loading... |
| 24 #include "unicode/utypes.h" | 24 #include "unicode/utypes.h" |
| 25 #include "uvector.h" | 25 #include "uvector.h" |
| 26 #include "hash.h" | 26 #include "hash.h" |
| 27 | 27 |
| 28 class PluralRulesTest; | 28 class PluralRulesTest; |
| 29 | 29 |
| 30 U_NAMESPACE_BEGIN | 30 U_NAMESPACE_BEGIN |
| 31 | 31 |
| 32 class AndConstraint; | 32 class AndConstraint; |
| 33 class RuleChain; | 33 class RuleChain; |
| 34 class DigitInterval; |
| 35 class VisibleDigits; |
| 34 | 36 |
| 35 static const UChar DOT = ((UChar)0x002E); | 37 static const UChar DOT = ((UChar)0x002E); |
| 36 static const UChar SINGLE_QUOTE = ((UChar)0x0027); | 38 static const UChar SINGLE_QUOTE = ((UChar)0x0027); |
| 37 static const UChar SLASH = ((UChar)0x002F); | 39 static const UChar SLASH = ((UChar)0x002F); |
| 38 static const UChar BACKSLASH = ((UChar)0x005C); | 40 static const UChar BACKSLASH = ((UChar)0x005C); |
| 39 static const UChar SPACE = ((UChar)0x0020); | 41 static const UChar SPACE = ((UChar)0x0020); |
| 40 static const UChar EXCLAMATION = ((UChar)0x0021); | 42 static const UChar EXCLAMATION = ((UChar)0x0021); |
| 41 static const UChar QUOTATION_MARK = ((UChar)0x0022); | 43 static const UChar QUOTATION_MARK = ((UChar)0x0022); |
| 42 static const UChar NUMBER_SIGN = ((UChar)0x0023); | 44 static const UChar NUMBER_SIGN = ((UChar)0x0023); |
| 43 static const UChar PERCENT_SIGN = ((UChar)0x0025); | 45 static const UChar PERCENT_SIGN = ((UChar)0x0025); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 class U_I18N_API FixedDecimal: public UMemory { | 182 class U_I18N_API FixedDecimal: public UMemory { |
| 181 public: | 183 public: |
| 182 /** | 184 /** |
| 183 * @param n the number, e.g. 12.345 | 185 * @param n the number, e.g. 12.345 |
| 184 * @param v The number of visible fraction digits, e.g. 3 | 186 * @param v The number of visible fraction digits, e.g. 3 |
| 185 * @param f The fraction digits, e.g. 345 | 187 * @param f The fraction digits, e.g. 345 |
| 186 */ | 188 */ |
| 187 FixedDecimal(double n, int32_t v, int64_t f); | 189 FixedDecimal(double n, int32_t v, int64_t f); |
| 188 FixedDecimal(double n, int32_t); | 190 FixedDecimal(double n, int32_t); |
| 189 explicit FixedDecimal(double n); | 191 explicit FixedDecimal(double n); |
| 192 explicit FixedDecimal(const VisibleDigits &n); |
| 190 FixedDecimal(); | 193 FixedDecimal(); |
| 191 FixedDecimal(const UnicodeString &s, UErrorCode &ec); | 194 FixedDecimal(const UnicodeString &s, UErrorCode &ec); |
| 192 FixedDecimal(const FixedDecimal &other); | 195 FixedDecimal(const FixedDecimal &other); |
| 193 | 196 |
| 194 double get(tokenType operand) const; | 197 double get(tokenType operand) const; |
| 195 int32_t getVisibleFractionDigitCount() const; | 198 int32_t getVisibleFractionDigitCount() const; |
| 196 | 199 |
| 197 void init(double n, int32_t v, int64_t f); | 200 void init(double n, int32_t v, int64_t f); |
| 198 void init(double n); | 201 void init(double n); |
| 199 UBool quickInit(double n); // Try a fast-path only initialization, | 202 UBool quickInit(double n); // Try a fast-path only initialization, |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 UResourceBundle *fLocales; | 299 UResourceBundle *fLocales; |
| 297 UResourceBundle *fRes; | 300 UResourceBundle *fRes; |
| 298 }; | 301 }; |
| 299 | 302 |
| 300 U_NAMESPACE_END | 303 U_NAMESPACE_END |
| 301 | 304 |
| 302 #endif /* #if !UCONFIG_NO_FORMATTING */ | 305 #endif /* #if !UCONFIG_NO_FORMATTING */ |
| 303 | 306 |
| 304 #endif // _PLURRULE_IMPL | 307 #endif // _PLURRULE_IMPL |
| 305 //eof | 308 //eof |
| OLD | NEW |