Lines Matching refs:currencyCode
235 private static int getDefaultFractionDigits(String currencyCode) {
238 currenciesWithDefinedMinorUnitDecimals[i].indexOf(currencyCode) != -1) {
243 if (currenciesWithMinorUnitsUndefined.indexOf(currencyCode) != -1) {
250 private static int getNumericCode(String currencyCode) {
251 int index = validCurrencyCodes.indexOf(currencyCode);
310 String currencyCode = validCurrencyCodes.substring(i * 7, i * 7 + 3);
313 checkCurrencyCode(currencyCode);
314 int tableEntry = mainTable[(currencyCode.charAt(0) - 'A') * A_TO_Z + (currencyCode.charAt(1) - 'A')];
317 (tableEntry & SIMPLE_CASE_COUNTRY_FINAL_CHAR_MASK) != (currencyCode.charAt(2) - 'A')) {
321 otherCurrencies[otherCurrenciesCount] = currencyCode;
322 otherCurrenciesDefaultFractionDigits[otherCurrenciesCount] = getDefaultFractionDigits(currencyCode);
323 otherCurrenciesNumericCode[otherCurrenciesCount] = getNumericCode(currencyCode);
329 private static void checkCurrencyCode(String currencyCode) {
330 if (currencyCode.length() != 3) {
331 throw new RuntimeException("illegal length for currency code: " + currencyCode);
334 char aChar = currencyCode.charAt(i);
335 if ((aChar < 'A' || aChar > 'Z') && !currencyCode.equals("XB5")) {
336 throw new RuntimeException("currency code contains illegal character: " + currencyCode);
339 if (validCurrencyCodes.indexOf(currencyCode) == -1) {
340 throw new RuntimeException("currency code not listed as valid: " + currencyCode);