Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
//
//
// AUTO-GENERATED CLASS - DO NOT EDIT
//
//
package com.squarespace.cldr.numbers;
import com.squarespace.cldr.CLDR;
import com.squarespace.cldr.plurals.PluralCategory;
import java.lang.String;
import java.lang.StringBuilder;
public class _NumberFormatter_to extends NumberFormatterBase {
public static final NumberPattern[] DECIMAL_STANDARD = patterns("#,##0.###", "-#,##0.###");
public static final NumberPattern[] PERCENT_STANDARD = patterns("#,##0%", "-#,##0%");
public static final NumberPattern[] CURRENCY_STANDARD = patterns("¤ #,##0.00", "-¤ #,##0.00");
public static final NumberPattern[] CURRENCY_ACCOUNTING = patterns("¤ #,##0.00", "-¤ #,##0.00");
public static final NumberPattern[] DECIMAL_STANDARD_COMPACT = patterns("#,##0", "-#,##0");
public static final NumberPattern[] CURRENCY_STANDARD_COMPACT = patterns("¤ #,##0", "-¤ #,##0");
private final NumberPattern[] DECIMAL_SHORT_1K_OTHER = patterns("0k", "-0k");
private final NumberPattern[] DECIMAL_SHORT_10K_OTHER = patterns("00k", "-00k");
private final NumberPattern[] DECIMAL_SHORT_100K_OTHER = patterns("000k", "-000k");
private final NumberPattern[] DECIMAL_SHORT_1M_OTHER = patterns("0M", "-0M");
private final NumberPattern[] DECIMAL_SHORT_10M_OTHER = patterns("00M", "-00M");
private final NumberPattern[] DECIMAL_SHORT_100M_OTHER = patterns("000M", "-000M");
private final NumberPattern[] DECIMAL_SHORT_1B_OTHER = patterns("0Ki", "-0Ki");
private final NumberPattern[] DECIMAL_SHORT_10B_OTHER = patterns("00Ki", "-00Ki");
private final NumberPattern[] DECIMAL_SHORT_100B_OTHER = patterns("000Ki", "-000Ki");
private final NumberPattern[] DECIMAL_SHORT_1T_OTHER = patterns("0T", "-0T");
private final NumberPattern[] DECIMAL_SHORT_10T_OTHER = patterns("00T", "-00T");
private final NumberPattern[] DECIMAL_SHORT_100T_OTHER = patterns("000T", "-000T");
private final int DECIMAL_SHORT_1K_SHIFT = 3;
private final int DECIMAL_SHORT_10K_SHIFT = 3;
private final int DECIMAL_SHORT_100K_SHIFT = 3;
private final int DECIMAL_SHORT_1M_SHIFT = 6;
private final int DECIMAL_SHORT_10M_SHIFT = 6;
private final int DECIMAL_SHORT_100M_SHIFT = 6;
private final int DECIMAL_SHORT_1B_SHIFT = 9;
private final int DECIMAL_SHORT_10B_SHIFT = 9;
private final int DECIMAL_SHORT_100B_SHIFT = 9;
private final int DECIMAL_SHORT_1T_SHIFT = 12;
private final int DECIMAL_SHORT_10T_SHIFT = 12;
private final int DECIMAL_SHORT_100T_SHIFT = 12;
private final NumberPattern[] DECIMAL_LONG_1K_OTHER = patterns("0 afe", "-0 afe");
private final NumberPattern[] DECIMAL_LONG_10K_OTHER = patterns("0 mano", "-0 mano");
private final NumberPattern[] DECIMAL_LONG_100K_OTHER = patterns("0 kilu", "-0 kilu");
private final NumberPattern[] DECIMAL_LONG_1M_OTHER = patterns("0 miliona", "-0 miliona");
private final NumberPattern[] DECIMAL_LONG_10M_OTHER = patterns("00 miliona", "-00 miliona");
private final NumberPattern[] DECIMAL_LONG_100M_OTHER = patterns("000 miliona", "-000 miliona");
private final NumberPattern[] DECIMAL_LONG_1B_OTHER = patterns("0 piliona", "-0 piliona");
private final NumberPattern[] DECIMAL_LONG_10B_OTHER = patterns("00 piliona", "-00 piliona");
private final NumberPattern[] DECIMAL_LONG_100B_OTHER = patterns("000 piliona", "-000 piliona");
private final NumberPattern[] DECIMAL_LONG_1T_OTHER = patterns("0 tiliona", "-0 tiliona");
private final NumberPattern[] DECIMAL_LONG_10T_OTHER = patterns("00 tiliona", "-00 tiliona");
private final NumberPattern[] DECIMAL_LONG_100T_OTHER = patterns("000 tiliona", "-000 tiliona");
private final int DECIMAL_LONG_1K_SHIFT = 3;
private final int DECIMAL_LONG_10K_SHIFT = 4;
private final int DECIMAL_LONG_100K_SHIFT = 5;
private final int DECIMAL_LONG_1M_SHIFT = 6;
private final int DECIMAL_LONG_10M_SHIFT = 6;
private final int DECIMAL_LONG_100M_SHIFT = 6;
private final int DECIMAL_LONG_1B_SHIFT = 9;
private final int DECIMAL_LONG_10B_SHIFT = 9;
private final int DECIMAL_LONG_100B_SHIFT = 9;
private final int DECIMAL_LONG_1T_SHIFT = 12;
private final int DECIMAL_LONG_10T_SHIFT = 12;
private final int DECIMAL_LONG_100T_SHIFT = 12;
private final NumberPattern[] CURRENCY_SHORT_1K_OTHER = patterns("¤ 0K", "-¤ 0K");
private final NumberPattern[] CURRENCY_SHORT_10K_OTHER = patterns("¤ 00K", "-¤ 00K");
private final NumberPattern[] CURRENCY_SHORT_100K_OTHER = patterns("¤ 000K", "-¤ 000K");
private final NumberPattern[] CURRENCY_SHORT_1M_OTHER = patterns("¤ 0M", "-¤ 0M");
private final NumberPattern[] CURRENCY_SHORT_10M_OTHER = patterns("¤ 00M", "-¤ 00M");
private final NumberPattern[] CURRENCY_SHORT_100M_OTHER = patterns("¤ 000M", "-¤ 000M");
private final NumberPattern[] CURRENCY_SHORT_1B_OTHER = patterns("¤ 0G", "-¤ 0G");
private final NumberPattern[] CURRENCY_SHORT_10B_OTHER = patterns("¤ 00G", "-¤ 00G");
private final NumberPattern[] CURRENCY_SHORT_100B_OTHER = patterns("¤ 000G", "-¤ 000G");
private final NumberPattern[] CURRENCY_SHORT_1T_OTHER = patterns("¤ 0T", "-¤ 0T");
private final NumberPattern[] CURRENCY_SHORT_10T_OTHER = patterns("¤ 00T", "-¤ 00T");
private final NumberPattern[] CURRENCY_SHORT_100T_OTHER = patterns("¤ 000T", "-¤ 000T");
private final int CURRENCY_SHORT_1K_SHIFT = 3;
private final int CURRENCY_SHORT_10K_SHIFT = 3;
private final int CURRENCY_SHORT_100K_SHIFT = 3;
private final int CURRENCY_SHORT_1M_SHIFT = 6;
private final int CURRENCY_SHORT_10M_SHIFT = 6;
private final int CURRENCY_SHORT_100M_SHIFT = 6;
private final int CURRENCY_SHORT_1B_SHIFT = 9;
private final int CURRENCY_SHORT_10B_SHIFT = 9;
private final int CURRENCY_SHORT_100B_SHIFT = 9;
private final int CURRENCY_SHORT_1T_SHIFT = 12;
private final int CURRENCY_SHORT_10T_SHIFT = 12;
private final int CURRENCY_SHORT_100T_SHIFT = 12;
public _NumberFormatter_to() {
super(
CLDR.Locale.to,
new _Params(),
// decimal standard
patterns("#,##0.###", "-#,##0.###"),
// percent standard
patterns("#,##0%", "-#,##0%"),
// currency standard
patterns("¤ #,##0.00", "-¤ #,##0.00"),
// currency accounting
patterns("¤ #,##0.00", "-¤ #,##0.00")
);
}
protected int getPowerOfTen_DECIMAL_SHORT(int digits) {
if (digits < 4) {
return 0;
}
switch (digits) {
case 4: return DECIMAL_SHORT_1K_SHIFT;
case 5: return DECIMAL_SHORT_10K_SHIFT;
case 6: return DECIMAL_SHORT_100K_SHIFT;
case 7: return DECIMAL_SHORT_1M_SHIFT;
case 8: return DECIMAL_SHORT_10M_SHIFT;
case 9: return DECIMAL_SHORT_100M_SHIFT;
case 10: return DECIMAL_SHORT_1B_SHIFT;
case 11: return DECIMAL_SHORT_10B_SHIFT;
case 12: return DECIMAL_SHORT_100B_SHIFT;
case 13: return DECIMAL_SHORT_1T_SHIFT;
case 14: return DECIMAL_SHORT_10T_SHIFT;
case 15:
default: return DECIMAL_SHORT_100T_SHIFT;
}
}
protected NumberPattern[] getPattern_DECIMAL_SHORT(int digits, PluralCategory category) {
if (digits < 4 || category == null) {
return DECIMAL_STANDARD_COMPACT;
}
switch (digits) {
case 4: {
switch (category) {
case OTHER:
default: return DECIMAL_SHORT_1K_OTHER;
}
}
case 5: {
switch (category) {
case OTHER:
default: return DECIMAL_SHORT_10K_OTHER;
}
}
case 6: {
switch (category) {
case OTHER:
default: return DECIMAL_SHORT_100K_OTHER;
}
}
case 7: {
switch (category) {
case OTHER:
default: return DECIMAL_SHORT_1M_OTHER;
}
}
case 8: {
switch (category) {
case OTHER:
default: return DECIMAL_SHORT_10M_OTHER;
}
}
case 9: {
switch (category) {
case OTHER:
default: return DECIMAL_SHORT_100M_OTHER;
}
}
case 10: {
switch (category) {
case OTHER:
default: return DECIMAL_SHORT_1B_OTHER;
}
}
case 11: {
switch (category) {
case OTHER:
default: return DECIMAL_SHORT_10B_OTHER;
}
}
case 12: {
switch (category) {
case OTHER:
default: return DECIMAL_SHORT_100B_OTHER;
}
}
case 13: {
switch (category) {
case OTHER:
default: return DECIMAL_SHORT_1T_OTHER;
}
}
case 14: {
switch (category) {
case OTHER:
default: return DECIMAL_SHORT_10T_OTHER;
}
}
case 15: default: {
switch (category) {
case OTHER:
default: return DECIMAL_SHORT_100T_OTHER;
}
}
}
}
protected int getPowerOfTen_DECIMAL_LONG(int digits) {
if (digits < 4) {
return 0;
}
switch (digits) {
case 4: return DECIMAL_LONG_1K_SHIFT;
case 5: return DECIMAL_LONG_10K_SHIFT;
case 6: return DECIMAL_LONG_100K_SHIFT;
case 7: return DECIMAL_LONG_1M_SHIFT;
case 8: return DECIMAL_LONG_10M_SHIFT;
case 9: return DECIMAL_LONG_100M_SHIFT;
case 10: return DECIMAL_LONG_1B_SHIFT;
case 11: return DECIMAL_LONG_10B_SHIFT;
case 12: return DECIMAL_LONG_100B_SHIFT;
case 13: return DECIMAL_LONG_1T_SHIFT;
case 14: return DECIMAL_LONG_10T_SHIFT;
case 15:
default: return DECIMAL_LONG_100T_SHIFT;
}
}
protected NumberPattern[] getPattern_DECIMAL_LONG(int digits, PluralCategory category) {
if (digits < 4 || category == null) {
return DECIMAL_STANDARD_COMPACT;
}
switch (digits) {
case 4: {
switch (category) {
case OTHER:
default: return DECIMAL_LONG_1K_OTHER;
}
}
case 5: {
switch (category) {
case OTHER:
default: return DECIMAL_LONG_10K_OTHER;
}
}
case 6: {
switch (category) {
case OTHER:
default: return DECIMAL_LONG_100K_OTHER;
}
}
case 7: {
switch (category) {
case OTHER:
default: return DECIMAL_LONG_1M_OTHER;
}
}
case 8: {
switch (category) {
case OTHER:
default: return DECIMAL_LONG_10M_OTHER;
}
}
case 9: {
switch (category) {
case OTHER:
default: return DECIMAL_LONG_100M_OTHER;
}
}
case 10: {
switch (category) {
case OTHER:
default: return DECIMAL_LONG_1B_OTHER;
}
}
case 11: {
switch (category) {
case OTHER:
default: return DECIMAL_LONG_10B_OTHER;
}
}
case 12: {
switch (category) {
case OTHER:
default: return DECIMAL_LONG_100B_OTHER;
}
}
case 13: {
switch (category) {
case OTHER:
default: return DECIMAL_LONG_1T_OTHER;
}
}
case 14: {
switch (category) {
case OTHER:
default: return DECIMAL_LONG_10T_OTHER;
}
}
case 15: default: {
switch (category) {
case OTHER:
default: return DECIMAL_LONG_100T_OTHER;
}
}
}
}
protected int getPowerOfTen_CURRENCY_SHORT(int digits) {
if (digits < 4) {
return 0;
}
switch (digits) {
case 4: return CURRENCY_SHORT_1K_SHIFT;
case 5: return CURRENCY_SHORT_10K_SHIFT;
case 6: return CURRENCY_SHORT_100K_SHIFT;
case 7: return CURRENCY_SHORT_1M_SHIFT;
case 8: return CURRENCY_SHORT_10M_SHIFT;
case 9: return CURRENCY_SHORT_100M_SHIFT;
case 10: return CURRENCY_SHORT_1B_SHIFT;
case 11: return CURRENCY_SHORT_10B_SHIFT;
case 12: return CURRENCY_SHORT_100B_SHIFT;
case 13: return CURRENCY_SHORT_1T_SHIFT;
case 14: return CURRENCY_SHORT_10T_SHIFT;
case 15:
default: return CURRENCY_SHORT_100T_SHIFT;
}
}
protected NumberPattern[] getPattern_CURRENCY_SHORT(int digits, PluralCategory category) {
if (digits < 4 || category == null) {
return CURRENCY_STANDARD_COMPACT;
}
switch (digits) {
case 4: {
switch (category) {
case OTHER:
default: return CURRENCY_SHORT_1K_OTHER;
}
}
case 5: {
switch (category) {
case OTHER:
default: return CURRENCY_SHORT_10K_OTHER;
}
}
case 6: {
switch (category) {
case OTHER:
default: return CURRENCY_SHORT_100K_OTHER;
}
}
case 7: {
switch (category) {
case OTHER:
default: return CURRENCY_SHORT_1M_OTHER;
}
}
case 8: {
switch (category) {
case OTHER:
default: return CURRENCY_SHORT_10M_OTHER;
}
}
case 9: {
switch (category) {
case OTHER:
default: return CURRENCY_SHORT_100M_OTHER;
}
}
case 10: {
switch (category) {
case OTHER:
default: return CURRENCY_SHORT_1B_OTHER;
}
}
case 11: {
switch (category) {
case OTHER:
default: return CURRENCY_SHORT_10B_OTHER;
}
}
case 12: {
switch (category) {
case OTHER:
default: return CURRENCY_SHORT_100B_OTHER;
}
}
case 13: {
switch (category) {
case OTHER:
default: return CURRENCY_SHORT_1T_OTHER;
}
}
case 14: {
switch (category) {
case OTHER:
default: return CURRENCY_SHORT_10T_OTHER;
}
}
case 15: default: {
switch (category) {
case OTHER:
default: return CURRENCY_SHORT_100T_OTHER;
}
}
}
}
public String getCurrencySymbol(String code) {
switch (code) {
case "ADP": return "ADP";
case "AED": return "AED";
case "AFA": return "AFA";
case "AFN": return "AFN";
case "ALL": return "ALL";
case "AMD": return "AMD";
case "ANG": return "ANG";
case "AOA": return "AOA";
case "AOK": return "AOK";
case "AON": return "AON";
case "AOR": return "AOR";
case "ARA": return "ARA";
case "ARL": return "ARL";
case "ARM": return "ARM";
case "ARP": return "ARP";
case "ARS": return "ARS";
case "ATS": return "ATS";
case "AUD": return "AUD$";
case "AWG": return "AWG";
case "AZM": return "AZM";
case "AZN": return "AZN";
case "BAD": return "BAD";
case "BAM": return "BAM";
case "BAN": return "BAN";
case "BBD": return "BBD";
case "BDT": return "BDT";
case "BEC": return "BEC";
case "BEF": return "BEF";
case "BEL": return "BEL";
case "BGL": return "BGL";
case "BGM": return "BGM";
case "BGN": return "BGN";
case "BGO": return "BGO";
case "BHD": return "BHD";
case "BIF": return "BIF";
case "BMD": return "BMD";
case "BND": return "BND";
case "BOB": return "BOB";
case "BOL": return "BOL";
case "BOP": return "BOP";
case "BOV": return "BOV";
case "BRB": return "BRB";
case "BRC": return "BRC";
case "BRE": return "BRE";
case "BRL": return "R$";
case "BRN": return "BRN";
case "BRR": return "BRR";
case "BRZ": return "BRZ";
case "BSD": return "BSD";
case "BTN": return "BTN";
case "BUK": return "BUK";
case "BWP": return "BWP";
case "BYB": return "BYB";
case "BYN": return "BYN";
case "BYR": return "BYR";
case "BZD": return "BZD";
case "CAD": return "CA$";
case "CDF": return "CDF";
case "CHE": return "CHE";
case "CHF": return "CHF";
case "CHW": return "CHW";
case "CLE": return "CLE";
case "CLF": return "CLF";
case "CLP": return "CLP";
case "CNY": return "CN¥";
case "COP": return "COP";
case "COU": return "COU";
case "CRC": return "CRC";
case "CSD": return "CSD";
case "CSK": return "CSK";
case "CUC": return "CUC";
case "CUP": return "CUP";
case "CVE": return "CVE";
case "CYP": return "CYP";
case "CZK": return "CZK";
case "DDM": return "DDM";
case "DEM": return "DEM";
case "DJF": return "DJF";
case "DKK": return "DKK";
case "DOP": return "DOP";
case "DZD": return "DZD";
case "ECS": return "ECS";
case "ECV": return "ECV";
case "EEK": return "EEK";
case "EGP": return "EGP";
case "ERN": return "ERN";
case "ESA": return "ESA";
case "ESB": return "ESB";
case "ESP": return "ESP";
case "ETB": return "ETB";
case "EUR": return "€";
case "FIM": return "FIM";
case "FJD": return "FJD";
case "FKP": return "FKP";
case "FRF": return "FRF";
case "GBP": return "£";
case "GEK": return "GEK";
case "GEL": return "GEL";
case "GHC": return "GHC";
case "GHS": return "GHS";
case "GIP": return "GIP";
case "GMD": return "GMD";
case "GNF": return "GNF";
case "GNS": return "GNS";
case "GQE": return "GQE";
case "GRD": return "GRD";
case "GTQ": return "GTQ";
case "GWE": return "GWE";
case "GWP": return "GWP";
case "GYD": return "GYD";
case "HKD": return "HK$";
case "HNL": return "HNL";
case "HRD": return "HRD";
case "HRK": return "HRK";
case "HTG": return "HTG";
case "HUF": return "HUF";
case "IDR": return "IDR";
case "IEP": return "IEP";
case "ILP": return "ILP";
case "ILS": return "₪";
case "INR": return "₹";
case "IQD": return "IQD";
case "IRR": return "IRR";
case "ISK": return "ISK";
case "ITL": return "ITL";
case "JMD": return "JMD";
case "JOD": return "JOD";
case "JPY": return "JP¥";
case "KES": return "KES";
case "KGS": return "KGS";
case "KHR": return "KHR";
case "KMF": return "KMF";
case "KPW": return "KPW";
case "KRH": return "KRH";
case "KRO": return "KRO";
case "KRW": return "₩";
case "KWD": return "KWD";
case "KYD": return "KYD";
case "KZT": return "KZT";
case "LAK": return "LAK";
case "LBP": return "LBP";
case "LKR": return "LKR";
case "LRD": return "LRD";
case "LSL": return "LSL";
case "LTL": return "LTL";
case "LTT": return "LTT";
case "LUC": return "LUC";
case "LUF": return "LUF";
case "LUL": return "LUL";
case "LVL": return "LVL";
case "LVR": return "LVR";
case "LYD": return "LYD";
case "MAD": return "MAD";
case "MAF": return "MAF";
case "MCF": return "MCF";
case "MDC": return "MDC";
case "MDL": return "MDL";
case "MGA": return "MGA";
case "MGF": return "MGF";
case "MKD": return "MKD";
case "MKN": return "MKN";
case "MLF": return "MLF";
case "MMK": return "MMK";
case "MNT": return "MNT";
case "MOP": return "MOP";
case "MRO": return "MRO";
case "MTL": return "MTL";
case "MTP": return "MTP";
case "MUR": return "MUR";
case "MVR": return "MVR";
case "MWK": return "MWK";
case "MXN": return "MX$";
case "MXP": return "MXP";
case "MXV": return "MXV";
case "MYR": return "MYR";
case "MZE": return "MZE";
case "MZM": return "MZM";
case "MZN": return "MZN";
case "NAD": return "NAD";
case "NGN": return "NGN";
case "NIC": return "NIC";
case "NIO": return "NIO";
case "NLG": return "NLG";
case "NOK": return "NOK";
case "NPR": return "NPR";
case "NZD": return "NZD$";
case "OMR": return "OMR";
case "PAB": return "PAB";
case "PEI": return "PEI";
case "PEN": return "PEN";
case "PES": return "PES";
case "PGK": return "PGK";
case "PHP": return "PHP";
case "PKR": return "PKR";
case "PLN": return "PLN";
case "PLZ": return "PLZ";
case "PTE": return "PTE";
case "PYG": return "PYG";
case "QAR": return "QAR";
case "RHD": return "RHD";
case "ROL": return "ROL";
case "RON": return "RON";
case "RSD": return "RSD";
case "RUB": return "RUB";
case "RUR": return "RUR";
case "RWF": return "RWF";
case "SAR": return "SAR";
case "SBD": return "SBD";
case "SCR": return "SCR";
case "SDD": return "SDD";
case "SDG": return "SDG";
case "SDP": return "SDP";
case "SEK": return "SEK";
case "SGD": return "SGD";
case "SHP": return "SHP";
case "SIT": return "SIT";
case "SKK": return "SKK";
case "SLL": return "SLL";
case "SOS": return "SOS";
case "SRD": return "SRD";
case "SRG": return "SRG";
case "SSP": return "SSP";
case "STD": return "STD";
case "SUR": return "SUR";
case "SVC": return "SVC";
case "SYP": return "SYP";
case "SZL": return "SZL";
case "THB": return "THB";
case "TJR": return "TJR";
case "TJS": return "TJS";
case "TMM": return "TMM";
case "TMT": return "TMT";
case "TND": return "TND";
case "TOP": return "T$";
case "TPE": return "TPE";
case "TRL": return "TRL";
case "TRY": return "TRY";
case "TTD": return "TTD";
case "TWD": return "NT$";
case "TZS": return "TZS";
case "UAH": return "UAH";
case "UAK": return "UAK";
case "UGS": return "UGS";
case "UGX": return "UGX";
case "USD": return "US$";
case "USN": return "USN";
case "USS": return "USS";
case "UYI": return "UYI";
case "UYP": return "UYP";
case "UYU": return "UYU";
case "UZS": return "UZS";
case "VEB": return "VEB";
case "VEF": return "VEF";
case "VND": return "₫";
case "VNN": return "VNN";
case "VUV": return "VUV";
case "WST": return "WST";
case "XAF": return "FCFA";
case "XAG": return "XAG";
case "XAU": return "XAU";
case "XBA": return "XBA";
case "XBB": return "XBB";
case "XBC": return "XBC";
case "XBD": return "XBD";
case "XCD": return "EC$";
case "XDR": return "XDR";
case "XEU": return "XEU";
case "XFO": return "XFO";
case "XFU": return "XFU";
case "XOF": return "CFA";
case "XPD": return "XPD";
case "XPF": return "CFPF";
case "XPT": return "XPT";
case "XRE": return "XRE";
case "XSU": return "XSU";
case "XTS": return "XTS";
case "XUA": return "XUA";
case "XXX": return "XXX";
case "YDD": return "YDD";
case "YER": return "YER";
case "YUD": return "YUD";
case "YUM": return "YUM";
case "YUN": return "YUN";
case "YUR": return "YUR";
case "ZAL": return "ZAL";
case "ZAR": return "ZAR";
case "ZMK": return "ZMK";
case "ZMW": return "ZMW";
case "ZRN": return "ZRN";
case "ZRZ": return "ZRZ";
case "ZWD": return "ZWD";
case "ZWL": return "ZWL";
case "ZWR": return "ZWR";
default: return "";
}
}
public String getNarrowCurrencySymbol(String code) {
switch (code) {
case "ADP": return "ADP";
case "AED": return "AED";
case "AFA": return "AFA";
case "AFN": return "AFN";
case "ALL": return "ALL";
case "AMD": return "AMD";
case "ANG": return "ANG";
case "AOA": return "Kz";
case "AOK": return "AOK";
case "AON": return "AON";
case "AOR": return "AOR";
case "ARA": return "ARA";
case "ARL": return "ARL";
case "ARM": return "ARM";
case "ARP": return "ARP";
case "ARS": return "$";
case "ATS": return "ATS";
case "AUD": return "$";
case "AWG": return "AWG";
case "AZM": return "AZM";
case "AZN": return "AZN";
case "BAD": return "BAD";
case "BAM": return "KM";
case "BAN": return "BAN";
case "BBD": return "$";
case "BDT": return "৳";
case "BEC": return "BEC";
case "BEF": return "BEF";
case "BEL": return "BEL";
case "BGL": return "BGL";
case "BGM": return "BGM";
case "BGN": return "BGN";
case "BGO": return "BGO";
case "BHD": return "BHD";
case "BIF": return "BIF";
case "BMD": return "$";
case "BND": return "$";
case "BOB": return "Bs";
case "BOL": return "BOL";
case "BOP": return "BOP";
case "BOV": return "BOV";
case "BRB": return "BRB";
case "BRC": return "BRC";
case "BRE": return "BRE";
case "BRL": return "R$";
case "BRN": return "BRN";
case "BRR": return "BRR";
case "BRZ": return "BRZ";
case "BSD": return "$";
case "BTN": return "BTN";
case "BUK": return "BUK";
case "BWP": return "P";
case "BYB": return "BYB";
case "BYN": return "р.";
case "BYR": return "BYR";
case "BZD": return "$";
case "CAD": return "$";
case "CDF": return "CDF";
case "CHE": return "CHE";
case "CHF": return "CHF";
case "CHW": return "CHW";
case "CLE": return "CLE";
case "CLF": return "CLF";
case "CLP": return "$";
case "CNY": return "¥";
case "COP": return "$";
case "COU": return "COU";
case "CRC": return "₡";
case "CSD": return "CSD";
case "CSK": return "CSK";
case "CUC": return "$";
case "CUP": return "$";
case "CVE": return "CVE";
case "CYP": return "CYP";
case "CZK": return "Kč";
case "DDM": return "DDM";
case "DEM": return "DEM";
case "DJF": return "DJF";
case "DKK": return "kr";
case "DOP": return "$";
case "DZD": return "DZD";
case "ECS": return "ECS";
case "ECV": return "ECV";
case "EEK": return "EEK";
case "EGP": return "E£";
case "ERN": return "ERN";
case "ESA": return "ESA";
case "ESB": return "ESB";
case "ESP": return "₧";
case "ETB": return "ETB";
case "EUR": return "€";
case "FIM": return "FIM";
case "FJD": return "$";
case "FKP": return "£";
case "FRF": return "FRF";
case "GBP": return "£";
case "GEK": return "GEK";
case "GEL": return "₾";
case "GHC": return "GHC";
case "GHS": return "GHS";
case "GIP": return "£";
case "GMD": return "GMD";
case "GNF": return "FG";
case "GNS": return "GNS";
case "GQE": return "GQE";
case "GRD": return "GRD";
case "GTQ": return "Q";
case "GWE": return "GWE";
case "GWP": return "GWP";
case "GYD": return "$";
case "HKD": return "$";
case "HNL": return "L";
case "HRD": return "HRD";
case "HRK": return "kn";
case "HTG": return "HTG";
case "HUF": return "Ft";
case "IDR": return "Rp";
case "IEP": return "IEP";
case "ILP": return "ILP";
case "ILS": return "₪";
case "INR": return "₹";
case "IQD": return "IQD";
case "IRR": return "IRR";
case "ISK": return "kr";
case "ITL": return "ITL";
case "JMD": return "$";
case "JOD": return "JOD";
case "JPY": return "¥";
case "KES": return "KES";
case "KGS": return "KGS";
case "KHR": return "៛";
case "KMF": return "CF";
case "KPW": return "₩";
case "KRH": return "KRH";
case "KRO": return "KRO";
case "KRW": return "₩";
case "KWD": return "KWD";
case "KYD": return "$";
case "KZT": return "₸";
case "LAK": return "₭";
case "LBP": return "L£";
case "LKR": return "Rs";
case "LRD": return "$";
case "LSL": return "LSL";
case "LTL": return "Lt";
case "LTT": return "LTT";
case "LUC": return "LUC";
case "LUF": return "LUF";
case "LUL": return "LUL";
case "LVL": return "Ls";
case "LVR": return "LVR";
case "LYD": return "LYD";
case "MAD": return "MAD";
case "MAF": return "MAF";
case "MCF": return "MCF";
case "MDC": return "MDC";
case "MDL": return "MDL";
case "MGA": return "Ar";
case "MGF": return "MGF";
case "MKD": return "MKD";
case "MKN": return "MKN";
case "MLF": return "MLF";
case "MMK": return "K";
case "MNT": return "₮";
case "MOP": return "MOP";
case "MRO": return "MRO";
case "MTL": return "MTL";
case "MTP": return "MTP";
case "MUR": return "Rs";
case "MVR": return "MVR";
case "MWK": return "MWK";
case "MXN": return "$";
case "MXP": return "MXP";
case "MXV": return "MXV";
case "MYR": return "RM";
case "MZE": return "MZE";
case "MZM": return "MZM";
case "MZN": return "MZN";
case "NAD": return "$";
case "NGN": return "₦";
case "NIC": return "NIC";
case "NIO": return "C$";
case "NLG": return "NLG";
case "NOK": return "kr";
case "NPR": return "Rs";
case "NZD": return "$";
case "OMR": return "OMR";
case "PAB": return "PAB";
case "PEI": return "PEI";
case "PEN": return "PEN";
case "PES": return "PES";
case "PGK": return "PGK";
case "PHP": return "₱";
case "PKR": return "Rs";
case "PLN": return "zł";
case "PLZ": return "PLZ";
case "PTE": return "PTE";
case "PYG": return "₲";
case "QAR": return "QAR";
case "RHD": return "RHD";
case "ROL": return "ROL";
case "RON": return "lei";
case "RSD": return "RSD";
case "RUB": return "₽";
case "RUR": return "р.";
case "RWF": return "RF";
case "SAR": return "SAR";
case "SBD": return "$";
case "SCR": return "SCR";
case "SDD": return "SDD";
case "SDG": return "SDG";
case "SDP": return "SDP";
case "SEK": return "kr";
case "SGD": return "$";
case "SHP": return "£";
case "SIT": return "SIT";
case "SKK": return "SKK";
case "SLL": return "SLL";
case "SOS": return "SOS";
case "SRD": return "$";
case "SRG": return "SRG";
case "SSP": return "£";
case "STD": return "Db";
case "SUR": return "SUR";
case "SVC": return "SVC";
case "SYP": return "£";
case "SZL": return "SZL";
case "THB": return "฿";
case "TJR": return "TJR";
case "TJS": return "TJS";
case "TMM": return "TMM";
case "TMT": return "TMT";
case "TND": return "TND";
case "TOP": return "T$";
case "TPE": return "TPE";
case "TRL": return "TRL";
case "TRY": return "₺";
case "TTD": return "$";
case "TWD": return "$";
case "TZS": return "TZS";
case "UAH": return "₴";
case "UAK": return "UAK";
case "UGS": return "UGS";
case "UGX": return "UGX";
case "USD": return "$";
case "USN": return "USN";
case "USS": return "USS";
case "UYI": return "UYI";
case "UYP": return "UYP";
case "UYU": return "$";
case "UZS": return "UZS";
case "VEB": return "VEB";
case "VEF": return "Bs";
case "VND": return "₫";
case "VNN": return "VNN";
case "VUV": return "VUV";
case "WST": return "WST";
case "XAF": return "FCFA";
case "XAG": return "XAG";
case "XAU": return "XAU";
case "XBA": return "XBA";
case "XBB": return "XBB";
case "XBC": return "XBC";
case "XBD": return "XBD";
case "XCD": return "$";
case "XDR": return "XDR";
case "XEU": return "XEU";
case "XFO": return "XFO";
case "XFU": return "XFU";
case "XOF": return "CFA";
case "XPD": return "XPD";
case "XPF": return "CFPF";
case "XPT": return "XPT";
case "XRE": return "XRE";
case "XSU": return "XSU";
case "XTS": return "XTS";
case "XUA": return "XUA";
case "XXX": return "XXX";
case "YDD": return "YDD";
case "YER": return "YER";
case "YUD": return "YUD";
case "YUM": return "YUM";
case "YUN": return "YUN";
case "YUR": return "YUR";
case "ZAL": return "ZAL";
case "ZAR": return "R";
case "ZMK": return "ZMK";
case "ZMW": return "ZK";
case "ZRN": return "ZRN";
case "ZRZ": return "ZRZ";
case "ZWD": return "ZWD";
case "ZWL": return "ZWL";
case "ZWR": return "ZWR";
default: return "";
}
}
public String getCurrencyDisplayName(String code) {
switch (code) {
case "ADP": return "ADP";
case "AED": return "AED";
case "AFA": return "AFA";
case "AFN": return "AFN";
case "ALL": return "ALL";
case "AMD": return "AMD";
case "ANG": return "ANG";
case "AOA": return "AOA";
case "AOK": return "AOK";
case "AON": return "AON";
case "AOR": return "AOR";
case "ARA": return "ARA";
case "ARL": return "ARL";
case "ARM": return "ARM";
case "ARP": return "ARP";
case "ARS": return "ARS";
case "ATS": return "ATS";
case "AUD": return "AUD";
case "AWG": return "AWG";
case "AZM": return "AZM";
case "AZN": return "AZN";
case "BAD": return "BAD";
case "BAM": return "BAM";
case "BAN": return "BAN";
case "BBD": return "BBD";
case "BDT": return "BDT";
case "BEC": return "BEC";
case "BEF": return "BEF";
case "BEL": return "BEL";
case "BGL": return "BGL";
case "BGM": return "BGM";
case "BGN": return "BGN";
case "BGO": return "BGO";
case "BHD": return "BHD";
case "BIF": return "BIF";
case "BMD": return "BMD";
case "BND": return "BND";
case "BOB": return "BOB";
case "BOL": return "BOL";
case "BOP": return "BOP";
case "BOV": return "BOV";
case "BRB": return "BRB";
case "BRC": return "BRC";
case "BRE": return "BRE";
case "BRL": return "BRL";
case "BRN": return "BRN";
case "BRR": return "BRR";
case "BRZ": return "BRZ";
case "BSD": return "BSD";
case "BTN": return "BTN";
case "BUK": return "BUK";
case "BWP": return "BWP";
case "BYB": return "BYB";
case "BYN": return "BYN";
case "BYR": return "BYR";
case "BZD": return "BZD";
case "CAD": return "CAD";
case "CDF": return "CDF";
case "CHE": return "CHE";
case "CHF": return "CHF";
case "CHW": return "CHW";
case "CLE": return "CLE";
case "CLF": return "CLF";
case "CLP": return "CLP";
case "CNY": return "CNY";
case "COP": return "COP";
case "COU": return "COU";
case "CRC": return "CRC";
case "CSD": return "CSD";
case "CSK": return "CSK";
case "CUC": return "CUC";
case "CUP": return "CUP";
case "CVE": return "CVE";
case "CYP": return "CYP";
case "CZK": return "CZK";
case "DDM": return "DDM";
case "DEM": return "DEM";
case "DJF": return "DJF";
case "DKK": return "DKK";
case "DOP": return "DOP";
case "DZD": return "DZD";
case "ECS": return "ECS";
case "ECV": return "ECV";
case "EEK": return "EEK";
case "EGP": return "EGP";
case "ERN": return "ERN";
case "ESA": return "ESA";
case "ESB": return "ESB";
case "ESP": return "ESP";
case "ETB": return "ETB";
case "EUR": return "EUR";
case "FIM": return "FIM";
case "FJD": return "FJD";
case "FKP": return "FKP";
case "FRF": return "FRF";
case "GBP": return "GBP";
case "GEK": return "GEK";
case "GEL": return "GEL";
case "GHC": return "GHC";
case "GHS": return "GHS";
case "GIP": return "GIP";
case "GMD": return "GMD";
case "GNF": return "GNF";
case "GNS": return "GNS";
case "GQE": return "GQE";
case "GRD": return "GRD";
case "GTQ": return "GTQ";
case "GWE": return "GWE";
case "GWP": return "GWP";
case "GYD": return "GYD";
case "HKD": return "HKD";
case "HNL": return "HNL";
case "HRD": return "HRD";
case "HRK": return "HRK";
case "HTG": return "HTG";
case "HUF": return "HUF";
case "IDR": return "IDR";
case "IEP": return "IEP";
case "ILP": return "ILP";
case "ILS": return "ILS";
case "INR": return "INR";
case "IQD": return "IQD";
case "IRR": return "IRR";
case "ISK": return "ISK";
case "ITL": return "ITL";
case "JMD": return "JMD";
case "JOD": return "JOD";
case "JPY": return "JPY";
case "KES": return "KES";
case "KGS": return "KGS";
case "KHR": return "KHR";
case "KMF": return "KMF";
case "KPW": return "KPW";
case "KRH": return "KRH";
case "KRO": return "KRO";
case "KRW": return "KRW";
case "KWD": return "KWD";
case "KYD": return "KYD";
case "KZT": return "KZT";
case "LAK": return "LAK";
case "LBP": return "LBP";
case "LKR": return "LKR";
case "LRD": return "LRD";
case "LSL": return "LSL";
case "LTL": return "LTL";
case "LTT": return "LTT";
case "LUC": return "LUC";
case "LUF": return "LUF";
case "LUL": return "LUL";
case "LVL": return "LVL";
case "LVR": return "LVR";
case "LYD": return "LYD";
case "MAD": return "MAD";
case "MAF": return "MAF";
case "MCF": return "MCF";
case "MDC": return "MDC";
case "MDL": return "MDL";
case "MGA": return "MGA";
case "MGF": return "MGF";
case "MKD": return "MKD";
case "MKN": return "MKN";
case "MLF": return "MLF";
case "MMK": return "MMK";
case "MNT": return "MNT";
case "MOP": return "MOP";
case "MRO": return "MRO";
case "MTL": return "MTL";
case "MTP": return "MTP";
case "MUR": return "MUR";
case "MVR": return "MVR";
case "MWK": return "MWK";
case "MXN": return "MXN";
case "MXP": return "MXP";
case "MXV": return "MXV";
case "MYR": return "MYR";
case "MZE": return "MZE";
case "MZM": return "MZM";
case "MZN": return "MZN";
case "NAD": return "NAD";
case "NGN": return "NGN";
case "NIC": return "NIC";
case "NIO": return "NIO";
case "NLG": return "NLG";
case "NOK": return "NOK";
case "NPR": return "NPR";
case "NZD": return "NZD";
case "OMR": return "OMR";
case "PAB": return "PAB";
case "PEI": return "PEI";
case "PEN": return "PEN";
case "PES": return "PES";
case "PGK": return "PGK";
case "PHP": return "PHP";
case "PKR": return "PKR";
case "PLN": return "PLN";
case "PLZ": return "PLZ";
case "PTE": return "PTE";
case "PYG": return "PYG";
case "QAR": return "QAR";
case "RHD": return "RHD";
case "ROL": return "ROL";
case "RON": return "RON";
case "RSD": return "RSD";
case "RUB": return "RUB";
case "RUR": return "RUR";
case "RWF": return "RWF";
case "SAR": return "SAR";
case "SBD": return "SBD";
case "SCR": return "SCR";
case "SDD": return "SDD";
case "SDG": return "SDG";
case "SDP": return "SDP";
case "SEK": return "SEK";
case "SGD": return "SGD";
case "SHP": return "SHP";
case "SIT": return "SIT";
case "SKK": return "SKK";
case "SLL": return "SLL";
case "SOS": return "SOS";
case "SRD": return "SRD";
case "SRG": return "SRG";
case "SSP": return "SSP";
case "STD": return "STD";
case "SUR": return "SUR";
case "SVC": return "SVC";
case "SYP": return "SYP";
case "SZL": return "SZL";
case "THB": return "THB";
case "TJR": return "TJR";
case "TJS": return "TJS";
case "TMM": return "TMM";
case "TMT": return "TMT";
case "TND": return "TND";
case "TOP": return "Paʻanga fakatonga";
case "TPE": return "TPE";
case "TRL": return "TRL";
case "TRY": return "TRY";
case "TTD": return "TTD";
case "TWD": return "TWD";
case "TZS": return "TZS";
case "UAH": return "UAH";
case "UAK": return "UAK";
case "UGS": return "UGS";
case "UGX": return "UGX";
case "USD": return "USD";
case "USN": return "USN";
case "USS": return "USS";
case "UYI": return "UYI";
case "UYP": return "UYP";
case "UYU": return "UYU";
case "UZS": return "UZS";
case "VEB": return "VEB";
case "VEF": return "VEF";
case "VND": return "VND";
case "VNN": return "VNN";
case "VUV": return "VUV";
case "WST": return "Tala fakahaʻamoa";
case "XAF": return "XAF";
case "XAG": return "XAG";
case "XAU": return "XAU";
case "XBA": return "XBA";
case "XBB": return "XBB";
case "XBC": return "XBC";
case "XBD": return "XBD";
case "XCD": return "XCD";
case "XDR": return "XDR";
case "XEU": return "XEU";
case "XFO": return "XFO";
case "XFU": return "XFU";
case "XOF": return "XOF";
case "XPD": return "XPD";
case "XPF": return "XPF";
case "XPT": return "XPT";
case "XRE": return "XRE";
case "XSU": return "XSU";
case "XTS": return "XTS";
case "XUA": return "XUA";
case "XXX": return "Pa’anga Ta’e’ilo";
case "YDD": return "YDD";
case "YER": return "YER";
case "YUD": return "YUD";
case "YUM": return "YUM";
case "YUN": return "YUN";
case "YUR": return "YUR";
case "ZAL": return "ZAL";
case "ZAR": return "ZAR";
case "ZMK": return "ZMK";
case "ZMW": return "ZMW";
case "ZRN": return "ZRN";
case "ZRZ": return "ZRZ";
case "ZWD": return "ZWD";
case "ZWL": return "ZWL";
case "ZWR": return "ZWR";
default: return "";
}
}
protected String getCurrencyPluralName(String code, PluralCategory category) {
switch (code) {
case "TOP": {
switch (category) {
case OTHER:
default: return "Paʻanga fakatonga";
}
}
case "WST": {
switch (category) {
case OTHER:
default: return "Tala fakahaʻamoa";
}
}
case "XXX": {
switch (category) {
case OTHER:
default: return "Pa’anga Ta’e’ilo";
}
}
default: return "";
}
}
public int getCurrencyDigits(String code) {
return _CurrencyUtil.getCurrencyDigits(code);
}
protected void wrapUnits(PluralCategory category, DigitBuffer dbuf, String unit,
StringBuilder dest) {
switch (category) {
case OTHER:
default: {
dest.append(unit);
dest.append(" ");
dbuf.appendTo(dest);
break;
}
}
}
private static class _Params extends NumberFormatterParams {
_Params() {
this.decimal = ".";
this.group = ",";
this.percent = "%";
this.minus = "-";
this.plus = "+";
this.exponential = "E";
this.superscriptingExponent = "×";
this.perMille = "‰";
this.infinity = "∞";
this.nan = "TF";
this.currencyDecimal = ".";
this.currencyGroup = ",";
}
}
}