Home | History | Annotate | Download | only in i18n

Lines Matching refs:currency

44 // Default currency meta data of last resort.  We try to use the
135 * Unfortunately, we have to convert the UChar* currency code to char*
139 myUCharsToChars(char* resultOfLen4, const UChar* currency) {
140 u_UCharsToChars(currency, resultOfLen4, ISO_CURRENCY_CODE_LENGTH);
146 * Internal function to look up currency data. Result is an array of
152 _findMetaData(const UChar* currency, UErrorCode& ec) {
154 if (currency == 0 || *currency == 0) {
173 // Look up our currency, or if that's not available, then DEFAULT
176 UResourceBundle* rb = ures_getByKey(currencyMeta, myUCharsToChars(buf, currency), NULL, &ec2);
364 * Release all static memory held by currency.
378 * There might be some cached currency data or isoCodes data.
401 if ((resLen = uloc_getKeywordValue(locale, "currency", id, ULOC_FULLNAME_CAPACITY, &localStatus))) {
402 // there is a currency keyword. Try to see if it's valid
404 /* Normalize the currency keyword value to upper case. */
442 an old version of ICU that hasn't been updated yet. The latest currency is
509 ucurr_getName(const UChar* currency,
538 // fallback. That is, if a currency is not found in the en_US
558 myUCharsToChars(buf, currency);
602 *len = u_strlen(currency); // Should == ISO_CURRENCY_CODE_LENGTH, but maybe not...?
604 return currency;
608 ucurr_getPluralName(const UChar* currency,
641 myUCharsToChars(buf, currency);
660 return ucurr_getName(currency, locale, UCURR_LONG_NAME,
678 *len = u_strlen(currency); // Should == ISO_CURRENCY_CODE_LENGTH, but maybe not...?
680 return currency;
685 // Following are structure and function for parsing currency names
732 // Give a locale, return the maximum number of currency names associated with
734 // It gets currency names from resource bundles using fallback.
736 // currency names are duplicated.
737 // For example, given locale as "en_US", the currency names get from resource
739 // all currency names in "en_US" and "en".
772 ++(*total_currency_symbol_count); // currency symbol
780 // currency plurals
815 // Collect all available currency names associated with the given locale
819 // return the malloc-ed currency name arrays and the total number of currency
838 // Get maximum currency name count first.
846 const UChar* s = NULL; // currency name
847 char* iso = NULL; // currency ISO code
903 // Add currency symbol.
910 // Add currency long name.
919 // Add currency ISO code.
930 // currency plurals
952 // currency long name?
981 printf("currency name count: %d\n", *total_currency_name_count);
992 printf("currency symbol count: %d\n", *total_currency_symbol_count);
1006 // @param currencyNames: currency names array
1007 // @param indexInCurrencyNames: the index of the character in currency names
1010 // @param begin(IN/OUT): the begin index of matching range in currency names array
1011 // @param end(IN/OUT): the end index of matching range in currency names array.
1147 // Find longest match between "text" and currency names in "currencyNames".
1148 // @param total_currency_count: total number of currency names in CurrencyNames.
1165 // For example, given the currency names in currencyNames array are:
1169 // the first char in currency names, and find the first char matching range
1172 // the 2nd char in currency names, and narrow the matching range to
1204 //========================= currency name cache =====================
1207 // currency names, case insensitive
1209 int32_t totalCurrencyNameCount; // currency name count
1210 // currency symbols and ISO code, case sensitive
1367 // case in-sensitive comparision against currency names
1378 // case sensitive comparison against currency
1407 * Internal method. Given a currency ISO code and a locale, return
1408 * the "static" currency name. This is usually the same as the
1413 * This is used for backward compatibility with old currency logic in
1427 // If this is a ChoiceFormat currency, then format an
1444 ucurr_getDefaultFractionDigits(const UChar* currency, UErrorCode* ec) {
1445 return (_findMetaData(currency, *ec))[0];
1449 ucurr_getRoundingIncrement(const UChar* currency, UErrorCode* ec) {
1450 const int32_t *data = _findMetaData(currency, *ec);
1485 const char *currency;
1796 for (int32_t idx = 0; gCurrencyList[idx].currency != NULL; idx++) {
1817 *resultLength = 3; /* Currency codes are only 3 chars long */
1819 return currItem->currency;
1849 // process each entry in currency map
1851 // get the currency resource
1853 // process each currency
1856 // get the currency resource
2009 uloc_getKeywordValue(locale, "currency", id, ULOC_FULLNAME_CAPACITY, &localStatus);
2029 // Using the id derived from the local, get the currency data
2032 // process each currency to see which one is valid for the given date
2037 // get the currency resource
2124 resLen = uloc_getKeywordValue(locale, "currency", id, ULOC_FULLNAME_CAPACITY, &localStatus);
2144 // Using the id derived from the local, get the currency data
2147 // process each currency to see which one is valid for the given date
2160 // get the currency resource
2234 // write out the currency value
2243 // return null terminated currency string
2364 // Currently active currency for the target country
2418 ucurr_getNumericCode(const UChar* currency) {
2420 if (currency && u_strlen(currency) == ISO_CURRENCY_CODE_LENGTH) {
2427 myUCharsToChars(alphaCode, currency);