Lines Matching refs:currencyNames
986 CurrencyNameStruct** currencyNames, in collectCurrencyNames() argument
1005 *currencyNames = (CurrencyNameStruct*)uprv_malloc in collectCurrencyNames()
1010 if(currencyNames == NULL || currencySymbols == NULL) { in collectCurrencyNames()
1093 (*currencyNames)[*total_currency_name_count].IsoCode = iso; in collectCurrencyNames()
1095 (*currencyNames)[*total_currency_name_count].currencyName = upperName; in collectCurrencyNames()
1096 (*currencyNames)[*total_currency_name_count].flag = NEED_TO_BE_DELETED; in collectCurrencyNames()
1097 (*currencyNames)[(*total_currency_name_count)++].currencyNameLen = len; in collectCurrencyNames()
1135 (*currencyNames)[*total_currency_name_count].IsoCode = iso; in collectCurrencyNames()
1137 (*currencyNames)[*total_currency_name_count].currencyName = upperName; in collectCurrencyNames()
1138 (*currencyNames)[*total_currency_name_count].flag = NEED_TO_BE_DELETED; in collectCurrencyNames()
1139 (*currencyNames)[(*total_currency_name_count)++].currencyNameLen = len; in collectCurrencyNames()
1156 qsort(*currencyNames, *total_currency_name_count, in collectCurrencyNames()
1165 printf("iso: %s\n", (*currencyNames)[index].IsoCode); in collectCurrencyNames()
1168 …u_austrncpy(curNameBuf, (*currencyNames)[index].currencyName, (*currencyNames)[index].currencyName… in collectCurrencyNames()
1170 printf("len: %d\n", (*currencyNames)[index].currencyNameLen); in collectCurrencyNames()
1201 binarySearch(const CurrencyNameStruct* currencyNames, in binarySearch() argument
1212 if (indexInCurrencyNames >= currencyNames[mid].currencyNameLen) { in binarySearch()
1215 if (key > currencyNames[mid].currencyName[indexInCurrencyNames]) { in binarySearch()
1218 else if (key < currencyNames[mid].currencyName[indexInCurrencyNames]) { in binarySearch()
1236 if (indexInCurrencyNames >= currencyNames[M].currencyNameLen) { in binarySearch()
1239 if (currencyNames[M].currencyName[indexInCurrencyNames] < key) { in binarySearch()
1243 U_ASSERT(currencyNames[M].currencyName[indexInCurrencyNames] == key); in binarySearch()
1255 U_ASSERT(currencyNames[*begin].currencyName[indexInCurrencyNames] == key); in binarySearch()
1267 if (currencyNames[M].currencyNameLen < indexInCurrencyNames) { in binarySearch()
1270 if (currencyNames[M].currencyName[indexInCurrencyNames] > key) { in binarySearch()
1274 U_ASSERT(currencyNames[M].currencyName[indexInCurrencyNames] == key); in binarySearch()
1283 if (currencyNames[R].currencyName[indexInCurrencyNames] > key) { in binarySearch()
1293 if (currencyNames[*begin].currencyNameLen == indexInCurrencyNames + 1) { in binarySearch()
1315 linearSearch(const CurrencyNameStruct* currencyNames, in linearSearch() argument
1320 int32_t len = currencyNames[index].currencyNameLen; in linearSearch()
1322 uprv_memcmp(currencyNames[index].currencyName, text, len * sizeof(UChar)) == 0) { in linearSearch()
1343 searchCurrencyName(const CurrencyNameStruct* currencyNames, in searchCurrencyName() argument
1369 matchIndex = binarySearch(currencyNames, index, in searchCurrencyName()
1383 linearSearch(currencyNames, binarySearchBegin, binarySearchEnd, in searchCurrencyName()
1396 CurrencyNameStruct* currencyNames; // value member
1422 deleteCurrencyNames(CurrencyNameStruct* currencyNames, int32_t count) { in deleteCurrencyNames() argument
1424 if ( (currencyNames[index].flag & NEED_TO_BE_DELETED) ) { in deleteCurrencyNames()
1425 uprv_free(currencyNames[index].currencyName); in deleteCurrencyNames()
1428 uprv_free(currencyNames); in deleteCurrencyNames()
1434 deleteCurrencyNames(entry->currencyNames, entry->totalCurrencyNameCount); in deleteCacheEntry()
1468 CurrencyNameStruct* currencyNames = NULL; in uprv_parseCurrency() local
1486 currencyNames = cacheEntry->currencyNames; in uprv_parseCurrency()
1494 …collectCurrencyNames(locale, ¤cyNames, &total_currency_name_count, ¤cySymbols, &total_… in uprv_parseCurrency()
1525 cacheEntry->currencyNames = currencyNames; in uprv_parseCurrency()
1534 deleteCurrencyNames(currencyNames, total_currency_name_count); in uprv_parseCurrency()
1537 currencyNames = cacheEntry->currencyNames; in uprv_parseCurrency()
1558 searchCurrencyName(currencyNames, total_currency_name_count, in uprv_parseCurrency()
1582 u_charsToUChars(currencyNames[matchIndex].IsoCode, result, 4); in uprv_parseCurrency()