| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * Copyright (C) 1997-2013, International Business Machines Corporation and | 3 * Copyright (C) 1997-2014, International Business Machines Corporation and |
| 4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
| 5 ******************************************************************************* | 5 ******************************************************************************* |
| 6 * | 6 * |
| 7 * File DCFMTSYM.CPP | 7 * File DCFMTSYM.CPP |
| 8 * | 8 * |
| 9 * Modification History: | 9 * Modification History: |
| 10 * | 10 * |
| 11 * Date Name Description | 11 * Date Name Description |
| 12 * 02/19/97 aliu Converted from java. | 12 * 02/19/97 aliu Converted from java. |
| 13 * 03/18/97 clhuang Implemented with C++ APIs. | 13 * 03/18/97 clhuang Implemented with C++ APIs. |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 "currencyGroup", | 182 "currencyGroup", |
| 183 NULL, /* one digit - get it from the numbering system */ | 183 NULL, /* one digit - get it from the numbering system */ |
| 184 NULL, /* two digit - get it from the numbering system */ | 184 NULL, /* two digit - get it from the numbering system */ |
| 185 NULL, /* three digit - get it from the numbering system */ | 185 NULL, /* three digit - get it from the numbering system */ |
| 186 NULL, /* four digit - get it from the numbering system */ | 186 NULL, /* four digit - get it from the numbering system */ |
| 187 NULL, /* five digit - get it from the numbering system */ | 187 NULL, /* five digit - get it from the numbering system */ |
| 188 NULL, /* six digit - get it from the numbering system */ | 188 NULL, /* six digit - get it from the numbering system */ |
| 189 NULL, /* seven digit - get it from the numbering system */ | 189 NULL, /* seven digit - get it from the numbering system */ |
| 190 NULL, /* eight digit - get it from the numbering system */ | 190 NULL, /* eight digit - get it from the numbering system */ |
| 191 NULL, /* nine digit - get it from the numbering system */ | 191 NULL, /* nine digit - get it from the numbering system */ |
| 192 "superscriptingExponent", /* Multiplication (x) symbol for exponents */ |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 static const char *gLatn = "latn"; | 195 static const char *gLatn = "latn"; |
| 195 static const char *gSymbols = "symbols"; | 196 static const char *gSymbols = "symbols"; |
| 196 const char *nsName; | 197 const char *nsName; |
| 197 const UChar *sym = NULL; | 198 const UChar *sym = NULL; |
| 198 int32_t len = 0; | 199 int32_t len = 0; |
| 199 | 200 |
| 200 *validLocale = *actualLocale = 0; | 201 *validLocale = *actualLocale = 0; |
| 201 currPattern = NULL; | 202 currPattern = NULL; |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 fSymbols[kCurrencySymbol] = (UChar)0xa4; // 'OX' currency symbol | 414 fSymbols[kCurrencySymbol] = (UChar)0xa4; // 'OX' currency symbol |
| 414 fSymbols[kIntlCurrencySymbol].setTo(TRUE, INTL_CURRENCY_SYMBOL_STR, 2); | 415 fSymbols[kIntlCurrencySymbol].setTo(TRUE, INTL_CURRENCY_SYMBOL_STR, 2); |
| 415 fSymbols[kMonetarySeparatorSymbol] = (UChar)0x2e; // '.' monetary decimal
separator | 416 fSymbols[kMonetarySeparatorSymbol] = (UChar)0x2e; // '.' monetary decimal
separator |
| 416 fSymbols[kExponentialSymbol] = (UChar)0x45; // 'E' exponential | 417 fSymbols[kExponentialSymbol] = (UChar)0x45; // 'E' exponential |
| 417 fSymbols[kPerMillSymbol] = (UChar)0x2030; // '%o' per mill | 418 fSymbols[kPerMillSymbol] = (UChar)0x2030; // '%o' per mill |
| 418 fSymbols[kPadEscapeSymbol] = (UChar)0x2a; // '*' pad escape symbol | 419 fSymbols[kPadEscapeSymbol] = (UChar)0x2a; // '*' pad escape symbol |
| 419 fSymbols[kInfinitySymbol] = (UChar)0x221e; // 'oo' infinite | 420 fSymbols[kInfinitySymbol] = (UChar)0x221e; // 'oo' infinite |
| 420 fSymbols[kNaNSymbol] = (UChar)0xfffd; // SUB NaN | 421 fSymbols[kNaNSymbol] = (UChar)0xfffd; // SUB NaN |
| 421 fSymbols[kSignificantDigitSymbol] = (UChar)0x0040; // '@' significant digit | 422 fSymbols[kSignificantDigitSymbol] = (UChar)0x0040; // '@' significant digit |
| 422 fSymbols[kMonetaryGroupingSeparatorSymbol].remove(); // | 423 fSymbols[kMonetaryGroupingSeparatorSymbol].remove(); // |
| 424 fSymbols[kExponentMultiplicationSymbol] = (UChar)0xd7; // 'x' multiplication
symbol for exponents |
| 423 } | 425 } |
| 424 | 426 |
| 425 Locale | 427 Locale |
| 426 DecimalFormatSymbols::getLocale(ULocDataLocaleType type, UErrorCode& status) con
st { | 428 DecimalFormatSymbols::getLocale(ULocDataLocaleType type, UErrorCode& status) con
st { |
| 427 U_LOCALE_BASED(locBased, *this); | 429 U_LOCALE_BASED(locBased, *this); |
| 428 return locBased.getLocale(type, status); | 430 return locBased.getLocale(type, status); |
| 429 } | 431 } |
| 430 | 432 |
| 431 const UnicodeString& | 433 const UnicodeString& |
| 432 DecimalFormatSymbols::getPatternForCurrencySpacing(UCurrencySpacing type, | 434 DecimalFormatSymbols::getPatternForCurrencySpacing(UCurrencySpacing type, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 450 currencySpcBeforeSym[(int32_t)type] = pattern; | 452 currencySpcBeforeSym[(int32_t)type] = pattern; |
| 451 } else { | 453 } else { |
| 452 currencySpcAfterSym[(int32_t)type] = pattern; | 454 currencySpcAfterSym[(int32_t)type] = pattern; |
| 453 } | 455 } |
| 454 } | 456 } |
| 455 U_NAMESPACE_END | 457 U_NAMESPACE_END |
| 456 | 458 |
| 457 #endif /* #if !UCONFIG_NO_FORMATTING */ | 459 #endif /* #if !UCONFIG_NO_FORMATTING */ |
| 458 | 460 |
| 459 //eof | 461 //eof |
| OLD | NEW |