Home | History | Annotate | Download | only in i18n

Lines Matching refs:currency

89 /* For currency parsing purose,
91 * every currency format pattern,
93 * and plural currency style. And the patterns are set through applyPattern.
119 /* affix for currency formatting when the currency sign in the pattern
120 * equals to 3, such as the pattern contains 3 currency sign or
121 * the formatter style is currency plural format style.
230 * The CURRENCY_SIGN is the standard Unicode symbol for currency. It
231 * is used in patterns and substitued with either the currency symbol,
232 * or if it is doubled, with the international currency symbol. If the
456 // If it looks like we are going to use a currency pattern
489 // initialize for currency, not only for plural format,
512 // If it was a currency format, apply the appropriate rounding by
513 // resetting the currency. NOTE: this copies fCurrency on top of itself.
542 // Save the default currency patterns of this locale.
576 // save the unique currency plural patterns of this locale.
1877 * Parses the given text as a number, optionally providing a currency amount.
1885 * @param currency if non-NULL, it should point to a 4-UChar buffer.
1886 * In this case the text is parsed as a currency format, and the
1887 * ISO 4217 code for the parsed currency is put into the buffer.
1888 * Otherwise the text is parsed as a non-currency format.
1893 UChar* currency) const {
1943 status, currency)) {
1951 parsePosition, *digits, status, currency)) {
1989 UChar* currency) const {
2006 tmpPos, tmpDigitList, tmpStatus, currency);
2012 tmpPos, tmpDigitList, tmpStatus, currency);
2026 // Those are currency patterns and currency plural patterns.
2041 tmpPos, tmpDigitList, tmpStatus, currency);
2075 currency);
2109 * @param currencyParsing whether it is currency parsing or not.
2110 * @param type the currency type to parse against, LONG_NAME only or not.
2116 * @param currency return value for parsed currency, for generic
2117 * currency parsing mode, or NULL for normal parsing. In generic
2118 * currency parsing mode, any currency is parsed, not just the
2119 * currency that this formatter is set to.
2130 UChar* currency) const
2285 int32_t posMatch = compareAffix(text, position, FALSE, TRUE, posPrefix, currencyParsing, type, currency);
2286 int32_t negMatch = compareAffix(text, position, TRUE, TRUE, negPrefix, currencyParsing, type, currency);
2614 posSuffixMatch = compareAffix(text, position, FALSE, FALSE, posSuffix, currencyParsing, type, currency);
2617 negSuffixMatch = compareAffix(text, position, TRUE, FALSE, negSuffix, currencyParsing, type, currency);
2707 * @param affixPat affix pattern used for currency affix comparison.
2708 * @param currencyParsing whether it is currency parsing or not
2709 * @param type the currency type to parse against, LONG_NAME only or not.
2710 * @param currency return value for parsed currency, for generic
2711 * currency parsing mode, or null for normal parsing. In generic
2712 * currency parsing mode, any currency is parsed, not just the
2713 * currency that this formatter is set to.
2723 UChar* currency) const
2726 if (fCurrencyChoice != NULL || currency != NULL ||
2730 return compareComplexAffix(*affixPat, text, pos, type, currency);
2909 * @param type the currency type to parse against, LONG_NAME only or not.
2910 * @param currency return value for parsed currency, for generic
2911 * currency parsing mode, or null for normal parsing. In generic
2912 * currency parsing mode, any currency is parsed, not just the
2913 * currency that this formatter is set to.
2920 UChar* currency) const
2923 U_ASSERT(currency != NULL ||
2941 // since the currency names in choice format is saved
2942 // the same way as other currency names,
2943 // do not need to do currency choice parsing here.
2944 // the general currency parsing parse against all names,
2957 // Parse generic currency -- anything for which we
2965 // Delegate parse of display name => ISO code to Currency
2968 // If parse succeeds, populate currency[0]
2970 if (currency) {
2971 u_strcpy(currency, curr);
2973 // The formatter is currency-style but the client has not requested
2974 // the value of the parsed currency. In this case, if that value does
3130 // If the currency symbols are the same, there is no need to recalculate.
3165 // re-set currency affix patterns and currency affixes.
3194 * Update the currency object to match the symbols. This method
3206 // With the introduction of the Currency object, the currency
3210 // currency object to one for that locale. If it is custom,
3211 // we set the currency to null.
3224 // Trap an error in mapping locale to currency. If we can't
3225 // map, then don't fail and set the currency to "".
3721 * This method also will be called before formatting if format currency
3723 * based on the currency plural count, the affix will be known only
3724 * after the currency plural count is know.
3726 * 'pluralCount' will be a non-null currency plural count.
3762 * currency sign. If CURRENCY_SIGN is tripled, it is interpreted as
3763 * currency plural long names, such as "US Dollars".
3772 * which a currency format references a ChoiceFormat (e.g., en_IN display
3776 * currencyChoice to a ChoiceFormat object, if the currency's display name
3784 * currency symbol is encountered that expands to a ChoiceFormat, the
3788 * @param pluralCount the plural count. It is only used for currency
3790 * count of the currency amount. For example,
3811 // As of ICU 2.2 we use the currency object, and
3812 // ignore the currency symbols in the DFS, unless
3813 // we have a null currency object. This occurs if
3833 // which means when formatting currency plural names.
3862 // If the currency is handled by a ChoiceFormat,
3896 // We only arrive here if the currency choice
4485 // currency symbols are recognized and translated.
4664 affix->append(kQuote); // Encode currency
4665 // Use lookahead to determine if the currency sign is
5183 // If we are a currency format, then modify our affixes to
5184 // encode the currency symbol for the given currency in our
5186 // given currency.
5191 // NULL or empty currency is *legal* and indicates no currency.
5205 // NULL or empty currency is *legal* and indicates no currency.
5219 // set the currency before compute affixes to get the right currency names
5227 // set the currency after apply pattern to get the correct rounding/fraction