Home | History | Annotate | Download | only in i18n

Lines Matching defs:currency

148  * The CURRENCY_SIGN is the standard Unicode symbol for currency.  It
149 * is used in patterns and substitued with either the currency symbol,
150 * or if it is doubled, with the international currency symbol. If the
442 // If it looks like we are going to use a currency pattern
475 // initialize for currency, not only for plural format,
498 // If it was a currency format, apply the appropriate rounding by
499 // resetting the currency. NOTE: this copies fCurrency on top of itself.
517 // Save the default currency patterns of this locale.
541 // save the unique currency plural patterns of this locale.
1572 * Parses the given text as either a number or a currency amount.
1580 * @param parseCurrency if true, a currency amount is parsed;
1618 UChar* currency = parseCurrency ? curbuf : NULL;
1623 status, currency)) {
1631 parsePosition, digits, status, currency)) {
1699 UChar* currency) const {
1716 tmpPos, tmpDigitList, tmpStatus, currency);
1722 tmpPos, tmpDigitList, tmpStatus, currency);
1736 // Those are currency patterns and currency plural patterns.
1752 tmpPos, tmpDigitList, tmpStatus, currency);
1786 currency);
1828 * @param currencyParsing whether it is currency parsing or not.
1829 * @param type the currency type to parse against, LONG_NAME only or not.
1835 * @param currency return value for parsed currency, for generic
1836 * currency parsing mode, or NULL for normal parsing. In generic
1837 * currency parsing mode, any currency is parsed, not just the
1838 * currency that this formatter is set to.
1849 UChar* currency) const
1860 int32_t posMatch = compareAffix(text, position, FALSE, TRUE, posPrefix, currencyParsing, type, currency);
1861 int32_t negMatch = compareAffix(text, position, TRUE, TRUE, negPrefix,currencyParsing, type, currency);
2076 posMatch = compareAffix(text, position, FALSE, FALSE, posSuffix, currencyParsing, type, currency);
2079 negMatch = compareAffix(text, position, TRUE, FALSE, negSuffix, currencyParsing, type, currency);
2137 * @param affixPat affix pattern used for currency affix comparison.
2138 * @param currencyParsing whether it is currency parsing or not
2139 * @param type the currency type to parse against, LONG_NAME only or not.
2140 * @param currency return value for parsed currency, for generic
2141 * currency parsing mode, or null for normal parsing. In generic
2142 * currency parsing mode, any currency is parsed, not just the
2143 * currency that this formatter is set to.
2153 UChar* currency) const
2156 if (fCurrencyChoice != NULL || currency != NULL ||
2160 return compareComplexAffix(*affixPat, text, pos, type, currency);
2287 * @param type the currency type to parse against, LONG_NAME only or not.
2288 * @param currency return value for parsed currency, for generic
2289 * currency parsing mode, or null for normal parsing. In generic
2290 * currency parsing mode, any currency is parsed, not just the
2291 * currency that this formatter is set to.
2298 UChar* currency) const
2301 U_ASSERT(currency != NULL ||
2319 // since the currency names in choice format is saved
2320 // the same way as other currency names,
2321 // do not need to do currency choice parsing here.
2322 // the general currency parsing parse against all names,
2335 // Parse generic currency -- anything for which we
2343 // Delegate parse of display name => ISO code to Currency
2346 // If parse succeeds, populate currency[0]
2348 if (currency) {
2349 u_strcpy(currency, curr);
2455 // If the currency symbols are the same, there is no need to recalculate.
2484 // re-set currency affix patterns and currency affixes.
2507 * Update the currency object to match the symbols. This method
2519 // With the introduction of the Currency object, the currency
2523 // currency object to one for that locale. If it is custom,
2524 // we set the currency to null.
2537 // Trap an error in mapping locale to currency. If we can't
2538 // map, then don't fail and set the currency to "".
2966 * This method also will be called before formatting if format currency
2968 * based on the currency plural count, the affix will be known only
2969 * after the currency plural count is know.
2971 * 'pluralCount' will be a non-null currency plural count.
3006 * currency sign. If CURRENCY_SIGN is tripled, it is interpreted as
3007 * currency plural long names, such as "US Dollars".
3016 * which a currency format references a ChoiceFormat (e.g., en_IN display
3020 * currencyChoice to a ChoiceFormat object, if the currency's display name
3028 * currency symbol is encountered that expands to a ChoiceFormat, the
3032 * @param pluralCount the plural count. It is only used for currency
3034 * count of the currency amount. For example,
3053 // As of ICU 2.2 we use the currency object, and
3054 // ignore the currency symbols in the DFS, unless
3055 // we have a null currency object. This occurs if
3075 // which means when formatting currency plural names.
3105 // If the currency is handled by a ChoiceFormat,
3139 // We only arrive here if the currency choice
3685 // currency symbols are recognized and translated.
3864 affix->append(kQuote); // Encode currency
3865 // Use lookahead to determine if the currency sign is
4357 // If we are a currency format, then modify our affixes to
4358 // encode the currency symbol for the given currency in our
4360 // given currency.
4365 // NULL or empty currency is *legal* and indicates no currency.
4379 // NULL or empty currency is *legal* and indicates no currency.
4390 // set the currency before compute affixes to get the right currency names
4398 // set the currency after apply pattern to get the correct rounding/fraction