Lines Matching refs:cacheEntry
1447 CurrencyNameCacheEntry* cacheEntry = NULL; in getCacheEntry() local
1461 cacheEntry = currCache[found]; in getCacheEntry()
1462 ++(cacheEntry->refCount); in getCacheEntry()
1485 cacheEntry = currCache[currentCacheEntryIndex]; in getCacheEntry()
1486 if (cacheEntry) { in getCacheEntry()
1487 --(cacheEntry->refCount); in getCacheEntry()
1489 if (cacheEntry->refCount == 0) { in getCacheEntry()
1490 deleteCacheEntry(cacheEntry); in getCacheEntry()
1493 cacheEntry = (CurrencyNameCacheEntry*)uprv_malloc(sizeof(CurrencyNameCacheEntry)); in getCacheEntry()
1494 currCache[currentCacheEntryIndex] = cacheEntry; in getCacheEntry()
1495 uprv_strcpy(cacheEntry->locale, locale); in getCacheEntry()
1496 cacheEntry->currencyNames = currencyNames; in getCacheEntry()
1497 cacheEntry->totalCurrencyNameCount = total_currency_name_count; in getCacheEntry()
1498 cacheEntry->currencySymbols = currencySymbols; in getCacheEntry()
1499 cacheEntry->totalCurrencySymbolCount = total_currency_symbol_count; in getCacheEntry()
1500 cacheEntry->refCount = 2; // one for cache, one for reference in getCacheEntry()
1506 cacheEntry = currCache[found]; in getCacheEntry()
1507 ++(cacheEntry->refCount); in getCacheEntry()
1512 return cacheEntry; in getCacheEntry()
1515 static void releaseCacheEntry(CurrencyNameCacheEntry* cacheEntry) { in releaseCacheEntry() argument
1517 --(cacheEntry->refCount); in releaseCacheEntry()
1518 if (cacheEntry->refCount == 0) { // remove in releaseCacheEntry()
1519 deleteCacheEntry(cacheEntry); in releaseCacheEntry()
1536 CurrencyNameCacheEntry* cacheEntry = getCacheEntry(locale, ec); in uprv_parseCurrency() local
1541 int32_t total_currency_name_count = cacheEntry->totalCurrencyNameCount; in uprv_parseCurrency()
1542 CurrencyNameStruct* currencyNames = cacheEntry->currencyNames; in uprv_parseCurrency()
1543 int32_t total_currency_symbol_count = cacheEntry->totalCurrencySymbolCount; in uprv_parseCurrency()
1544 CurrencyNameStruct* currencySymbols = cacheEntry->currencySymbols; in uprv_parseCurrency()
1594 releaseCacheEntry(cacheEntry); in uprv_parseCurrency()
1602 CurrencyNameCacheEntry* cacheEntry = getCacheEntry(locale, ec); in uprv_currencyLeads() local
1607 for (int32_t i=0; i<cacheEntry->totalCurrencySymbolCount; i++) { in uprv_currencyLeads()
1608 const CurrencyNameStruct& info = cacheEntry->currencySymbols[i]; in uprv_currencyLeads()
1614 for (int32_t i=0; i<cacheEntry->totalCurrencyNameCount; i++) { in uprv_currencyLeads()
1615 const CurrencyNameStruct& info = cacheEntry->currencyNames[i]; in uprv_currencyLeads()
1622 releaseCacheEntry(cacheEntry); in uprv_currencyLeads()