Home | History | Annotate | Download | only in i18n

Lines Matching defs:currency

49 // Default currency meta data of last resort.  We try to use the
61 // Defines equivalent currency symbols.
118 // Currency symbol equivalances
287 * Unfortunately, we have to convert the UChar* currency code to char*
291 myUCharsToChars(char* resultOfLen4, const UChar* currency) {
292 u_UCharsToChars(currency, resultOfLen4, ISO_CURRENCY_CODE_LENGTH);
298 * Internal function to look up currency data. Result is an array of
306 _findMetaData(const UChar* currency, UErrorCode& ec) {
308 if (currency == 0 || *currency == 0) {
327 // Look up our currency, or if that's not available, then DEFAULT
330 UResourceBundle* rb = ures_getByKey(currencyMeta, myUCharsToChars(buf, currency), NULL, &ec2);
518 * Release all static memory held by currency.
532 * There might be some cached currency data or isoCodes data.
556 if ((resLen = uloc_getKeywordValue(locale, "currency", id, ULOC_FULLNAME_CAPACITY, &localStatus))) {
557 // there is a currency keyword. Try to see if it's valid
559 /* Normalize the currency keyword value to upper case. */
597 an old version of ICU that hasn't been updated yet. The latest currency is
664 ucurr_getName(const UChar* currency,
693 // fallback. That is, if a currency is not found in the en_US
713 myUCharsToChars(buf, currency);
757 *len = u_strlen(currency); // Should == ISO_CURRENCY_CODE_LENGTH, but maybe not...?
759 return currency;
763 ucurr_getPluralName(const UChar* currency,
796 myUCharsToChars(buf, currency);
815 return ucurr_getName(currency, locale, UCURR_LONG_NAME,
833 *len = u_strlen(currency); // Should == ISO_CURRENCY_CODE_LENGTH, but maybe not...?
835 return currency;
840 // Following are structure and function for parsing currency names
887 // Give a locale, return the maximum number of currency names associated with
889 // It gets currency names from resource bundles using fallback.
891 // currency names are duplicated.
892 // For example, given locale as "en_US", the currency names get from resource
894 // all currency names in "en_US" and "en".
928 ++(*total_currency_symbol_count); // currency symbol
939 // currency plurals
974 // Collect all available currency names associated with the given locale
978 // return the malloc-ed currency name arrays and the total number of currency
998 // Get maximum currency name count first.
1006 const UChar* s = NULL; // currency name
1007 char* iso = NULL; // currency ISO code
1063 // Add currency symbol.
1081 // Add currency long name.
1090 // Add currency ISO code.
1101 // currency plurals
1123 // currency long name?
1152 printf("currency name count: %d\n", *total_currency_name_count);
1162 printf("currency symbol count: %d\n", *total_currency_symbol_count);
1175 // @param currencyNames: currency names array
1176 // @param indexInCurrencyNames: the index of the character in currency names
1179 // @param begin(IN/OUT): the begin index of matching range in currency names array
1180 // @param end(IN/OUT): the end index of matching range in currency names array.
1316 // Find longest match between "text" and currency names in "currencyNames".
1317 // @param total_currency_count: total number of currency names in CurrencyNames.
1334 // For example, given the currency names in currencyNames array are:
1338 // the first char in currency names, and find the first char matching range
1341 // the 2nd char in currency names, and narrow the matching range to
1373 //========================= currency name cache =====================
1376 // currency names, case insensitive
1378 int32_t totalCurrencyNameCount; // currency name count
1379 currency symbols and ISO code, case sensitive
1538 // case in-sensitive comparision against currency names
1549 // case sensitive comparison against currency symbols and ISO code.
1581 * Internal method. Given a currency ISO code and a locale, return
1582 * the "static" currency name. This is usually the same as the
1587 * This is used for backward compatibility with old currency logic in
1601 // If this is a ChoiceFormat currency, then format an
1618 ucurr_getDefaultFractionDigits(const UChar* currency, UErrorCode* ec) {
1619 return (_findMetaData(currency, *ec))[0];
1623 ucurr_getRoundingIncrement(const UChar* currency, UErrorCode* ec) {
1624 const int32_t *data = _findMetaData(currency, *ec);
1659 const char *currency;
1974 for (int32_t idx = 0; gCurrencyList[idx].currency != NULL; idx++) {
1995 *resultLength = 3; /* Currency codes are only 3 chars long */
1997 return currItem->currency;
2027 // process each entry in currency map
2029 // get the currency resource
2031 // process each currency
2034 // get the currency resource
2225 uloc_getKeywordValue(locale, "currency", id, ULOC_FULLNAME_CAPACITY, &localStatus);
2245 // Using the id derived from the local, get the currency data
2248 // process each currency to see which one is valid for the given date
2253 // get the currency resource
2340 resLen = uloc_getKeywordValue(locale, "currency", id, ULOC_FULLNAME_CAPACITY, &localStatus);
2360 // Using the id derived from the local, get the currency data
2363 // process each currency to see which one is valid for the given date
2376 // get the currency resource
2450 // write out the currency value
2459 // return null terminated currency string
2580 // Currently active currency for the target country
2634 ucurr_getNumericCode(const UChar* currency) {
2636 if (currency && u_strlen(currency) == ISO_CURRENCY_CODE_LENGTH) {
2643 myUCharsToChars(alphaCode, currency);