pub(super) struct Currency {
pub(super) code: &'static str,
pub(super) digits: u8,
pub(super) symbol: &'static str,
pub(super) symbol_spaced: bool,
pub(super) narrow: &'static str,
pub(super) narrow_spaced: bool,
pub(super) one: &'static str,
pub(super) other: &'static str,
}
pub(super) struct Unit {
pub(super) id: &'static str,
pub(super) patterns: [[&'static str; 2]; 3],
pub(super) per: [&'static str; 3],
}
pub(super) struct CompoundUnit {
pub(super) id: &'static str,
pub(super) patterns: [[&'static str; 2]; 3],
}
pub(super) const COMPACT_SHORT: [&str; 4] = ["K", "M", "B", "T"];
pub(super) const COMPACT_LONG: [&str; 4] = [" thousand", " million", " billion", " trillion"];
pub(super) static CURRENCIES: &[Currency] = &[
Currency { code: "ADP", digits: 0, symbol: "ADP", symbol_spaced: true, narrow: "ADP", narrow_spaced: true, one: "Andorran peseta", other: "Andorran pesetas" },
Currency { code: "AED", digits: 2, symbol: "AED", symbol_spaced: true, narrow: "AED", narrow_spaced: true, one: "UAE dirham", other: "UAE dirhams" },
Currency { code: "AFA", digits: 2, symbol: "AFA", symbol_spaced: true, narrow: "AFA", narrow_spaced: true, one: "Afghan afghani (1927–2002)", other: "Afghan afghanis (1927–2002)" },
Currency { code: "AFN", digits: 0, symbol: "AFN", symbol_spaced: true, narrow: "؋", narrow_spaced: false, one: "Afghan Afghani", other: "Afghan Afghanis" },
Currency { code: "ALK", digits: 2, symbol: "ALK", symbol_spaced: true, narrow: "ALK", narrow_spaced: true, one: "Albanian lek (1946–1965)", other: "Albanian lekë (1946–1965)" },
Currency { code: "ALL", digits: 0, symbol: "ALL", symbol_spaced: true, narrow: "ALL", narrow_spaced: true, one: "Albanian lek", other: "Albanian lekë" },
Currency { code: "AMD", digits: 2, symbol: "AMD", symbol_spaced: true, narrow: "֏", narrow_spaced: false, one: "Armenian dram", other: "Armenian drams" },
Currency { code: "ANG", digits: 2, symbol: "ANG", symbol_spaced: true, narrow: "ANG", narrow_spaced: true, one: "Netherlands Antillean guilder", other: "Netherlands Antillean guilders" },
Currency { code: "AOA", digits: 2, symbol: "AOA", symbol_spaced: true, narrow: "Kz", narrow_spaced: true, one: "Angolan kwanza", other: "Angolan kwanzas" },
Currency { code: "AOK", digits: 2, symbol: "AOK", symbol_spaced: true, narrow: "AOK", narrow_spaced: true, one: "Angolan kwanza (1977–1991)", other: "Angolan kwanzas (1977–1991)" },
Currency { code: "AON", digits: 2, symbol: "AON", symbol_spaced: true, narrow: "AON", narrow_spaced: true, one: "Angolan new kwanza (1990–2000)", other: "Angolan new kwanzas (1990–2000)" },
Currency { code: "AOR", digits: 2, symbol: "AOR", symbol_spaced: true, narrow: "AOR", narrow_spaced: true, one: "Angolan readjusted kwanza (1995–1999)", other: "Angolan readjusted kwanzas (1995–1999)" },
Currency { code: "ARA", digits: 2, symbol: "ARA", symbol_spaced: true, narrow: "ARA", narrow_spaced: true, one: "Argentine austral", other: "Argentine australs" },
Currency { code: "ARL", digits: 2, symbol: "ARL", symbol_spaced: true, narrow: "ARL", narrow_spaced: true, one: "Argentine peso ley (1970–1983)", other: "Argentine pesos ley (1970–1983)" },
Currency { code: "ARM", digits: 2, symbol: "ARM", symbol_spaced: true, narrow: "ARM", narrow_spaced: true, one: "Argentine peso (1881–1970)", other: "Argentine pesos (1881–1970)" },
Currency { code: "ARP", digits: 2, symbol: "ARP", symbol_spaced: true, narrow: "ARP", narrow_spaced: true, one: "Argentine peso (1983–1985)", other: "Argentine pesos (1983–1985)" },
Currency { code: "ARS", digits: 2, symbol: "ARS", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Argentine peso", other: "Argentine pesos" },
Currency { code: "ATS", digits: 2, symbol: "ATS", symbol_spaced: true, narrow: "ATS", narrow_spaced: true, one: "Austrian schilling", other: "Austrian schillings" },
Currency { code: "AUD", digits: 2, symbol: "A$", symbol_spaced: false, narrow: "$", narrow_spaced: false, one: "Australian dollar", other: "Australian dollars" },
Currency { code: "AWG", digits: 2, symbol: "AWG", symbol_spaced: true, narrow: "AWG", narrow_spaced: true, one: "Aruban florin", other: "Aruban florin" },
Currency { code: "AZM", digits: 2, symbol: "AZM", symbol_spaced: true, narrow: "AZM", narrow_spaced: true, one: "Azerbaijani manat (1993–2006)", other: "Azerbaijani manats (1993–2006)" },
Currency { code: "AZN", digits: 2, symbol: "AZN", symbol_spaced: true, narrow: "₼", narrow_spaced: false, one: "Azerbaijani manat", other: "Azerbaijani manats" },
Currency { code: "BAD", digits: 2, symbol: "BAD", symbol_spaced: true, narrow: "BAD", narrow_spaced: true, one: "Bosnia-Herzegovina dinar (1992–1994)", other: "Bosnia-Herzegovina dinars (1992–1994)" },
Currency { code: "BAM", digits: 2, symbol: "BAM", symbol_spaced: true, narrow: "KM", narrow_spaced: true, one: "Bosnia-Herzegovina convertible mark", other: "Bosnia-Herzegovina convertible marks" },
Currency { code: "BAN", digits: 2, symbol: "BAN", symbol_spaced: true, narrow: "BAN", narrow_spaced: true, one: "Bosnia-Herzegovina new dinar (1994–1997)", other: "Bosnia-Herzegovina new dinars (1994–1997)" },
Currency { code: "BBD", digits: 2, symbol: "BBD", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Barbadian dollar", other: "Barbadian dollars" },
Currency { code: "BDT", digits: 2, symbol: "BDT", symbol_spaced: true, narrow: "৳", narrow_spaced: false, one: "Bangladeshi taka", other: "Bangladeshi takas" },
Currency { code: "BEC", digits: 2, symbol: "BEC", symbol_spaced: true, narrow: "BEC", narrow_spaced: true, one: "Belgian franc (convertible)", other: "Belgian francs (convertible)" },
Currency { code: "BEF", digits: 2, symbol: "BEF", symbol_spaced: true, narrow: "BEF", narrow_spaced: true, one: "Belgian franc", other: "Belgian francs" },
Currency { code: "BEL", digits: 2, symbol: "BEL", symbol_spaced: true, narrow: "BEL", narrow_spaced: true, one: "Belgian franc (financial)", other: "Belgian francs (financial)" },
Currency { code: "BGL", digits: 2, symbol: "BGL", symbol_spaced: true, narrow: "BGL", narrow_spaced: true, one: "Bulgarian hard lev", other: "Bulgarian hard leva" },
Currency { code: "BGM", digits: 2, symbol: "BGM", symbol_spaced: true, narrow: "BGM", narrow_spaced: true, one: "Bulgarian socialist lev", other: "Bulgarian socialist leva" },
Currency { code: "BGN", digits: 2, symbol: "BGN", symbol_spaced: true, narrow: "BGN", narrow_spaced: true, one: "Bulgarian lev", other: "Bulgarian leva" },
Currency { code: "BGO", digits: 2, symbol: "BGO", symbol_spaced: true, narrow: "BGO", narrow_spaced: true, one: "Bulgarian lev (1879–1952)", other: "Bulgarian leva (1879–1952)" },
Currency { code: "BHD", digits: 3, symbol: "BHD", symbol_spaced: true, narrow: "BHD", narrow_spaced: true, one: "Bahraini dinar", other: "Bahraini dinars" },
Currency { code: "BIF", digits: 0, symbol: "BIF", symbol_spaced: true, narrow: "BIF", narrow_spaced: true, one: "Burundian franc", other: "Burundian francs" },
Currency { code: "BMD", digits: 2, symbol: "BMD", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Bermudan dollar", other: "Bermudan dollars" },
Currency { code: "BND", digits: 2, symbol: "BND", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Brunei dollar", other: "Brunei dollars" },
Currency { code: "BOB", digits: 2, symbol: "BOB", symbol_spaced: true, narrow: "Bs", narrow_spaced: true, one: "Bolivian boliviano", other: "Bolivian bolivianos" },
Currency { code: "BOL", digits: 2, symbol: "BOL", symbol_spaced: true, narrow: "BOL", narrow_spaced: true, one: "Bolivian boliviano (1863–1963)", other: "Bolivian bolivianos (1863–1963)" },
Currency { code: "BOP", digits: 2, symbol: "BOP", symbol_spaced: true, narrow: "BOP", narrow_spaced: true, one: "Bolivian peso", other: "Bolivian pesos" },
Currency { code: "BOV", digits: 2, symbol: "BOV", symbol_spaced: true, narrow: "BOV", narrow_spaced: true, one: "Bolivian mvdol", other: "Bolivian mvdols" },
Currency { code: "BRB", digits: 2, symbol: "BRB", symbol_spaced: true, narrow: "BRB", narrow_spaced: true, one: "Brazilian new cruzeiro (1967–1986)", other: "Brazilian new cruzeiros (1967–1986)" },
Currency { code: "BRC", digits: 2, symbol: "BRC", symbol_spaced: true, narrow: "BRC", narrow_spaced: true, one: "Brazilian cruzado (1986–1989)", other: "Brazilian cruzados (1986–1989)" },
Currency { code: "BRE", digits: 2, symbol: "BRE", symbol_spaced: true, narrow: "BRE", narrow_spaced: true, one: "Brazilian cruzeiro (1990–1993)", other: "Brazilian cruzeiros (1990–1993)" },
Currency { code: "BRL", digits: 2, symbol: "R$", symbol_spaced: false, narrow: "R$", narrow_spaced: false, one: "Brazilian real", other: "Brazilian reals" },
Currency { code: "BRN", digits: 2, symbol: "BRN", symbol_spaced: true, narrow: "BRN", narrow_spaced: true, one: "Brazilian new cruzado (1989–1990)", other: "Brazilian new cruzados (1989–1990)" },
Currency { code: "BRR", digits: 2, symbol: "BRR", symbol_spaced: true, narrow: "BRR", narrow_spaced: true, one: "Brazilian cruzeiro (1993–1994)", other: "Brazilian cruzeiros (1993–1994)" },
Currency { code: "BRZ", digits: 2, symbol: "BRZ", symbol_spaced: true, narrow: "BRZ", narrow_spaced: true, one: "Brazilian cruzeiro (1942–1967)", other: "Brazilian cruzeiros (1942–1967)" },
Currency { code: "BSD", digits: 2, symbol: "BSD", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Bahamian dollar", other: "Bahamian dollars" },
Currency { code: "BTN", digits: 2, symbol: "BTN", symbol_spaced: true, narrow: "BTN", narrow_spaced: true, one: "Bhutanese ngultrum", other: "Bhutanese ngultrums" },
Currency { code: "BUK", digits: 2, symbol: "BUK", symbol_spaced: true, narrow: "BUK", narrow_spaced: true, one: "Burmese kyat", other: "Burmese kyats" },
Currency { code: "BWP", digits: 2, symbol: "BWP", symbol_spaced: true, narrow: "P", narrow_spaced: true, one: "Botswanan pula", other: "Botswanan pulas" },
Currency { code: "BYB", digits: 2, symbol: "BYB", symbol_spaced: true, narrow: "BYB", narrow_spaced: true, one: "Belarusian ruble (1994–1999)", other: "Belarusian rubles (1994–1999)" },
Currency { code: "BYN", digits: 2, symbol: "BYN", symbol_spaced: true, narrow: "BYN", narrow_spaced: true, one: "Belarusian ruble", other: "Belarusian rubles" },
Currency { code: "BYR", digits: 0, symbol: "BYR", symbol_spaced: true, narrow: "BYR", narrow_spaced: true, one: "Belarusian ruble (2000–2016)", other: "Belarusian rubles (2000–2016)" },
Currency { code: "BZD", digits: 2, symbol: "BZD", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Belize dollar", other: "Belize dollars" },
Currency { code: "CAD", digits: 2, symbol: "CA$", symbol_spaced: false, narrow: "$", narrow_spaced: false, one: "Canadian dollar", other: "Canadian dollars" },
Currency { code: "CDF", digits: 2, symbol: "CDF", symbol_spaced: true, narrow: "CDF", narrow_spaced: true, one: "Congolese franc", other: "Congolese francs" },
Currency { code: "CHE", digits: 2, symbol: "CHE", symbol_spaced: true, narrow: "CHE", narrow_spaced: true, one: "WIR euro", other: "WIR euros" },
Currency { code: "CHF", digits: 2, symbol: "CHF", symbol_spaced: true, narrow: "CHF", narrow_spaced: true, one: "Swiss franc", other: "Swiss francs" },
Currency { code: "CHW", digits: 2, symbol: "CHW", symbol_spaced: true, narrow: "CHW", narrow_spaced: true, one: "WIR franc", other: "WIR francs" },
Currency { code: "CLE", digits: 2, symbol: "CLE", symbol_spaced: true, narrow: "CLE", narrow_spaced: true, one: "Chilean escudo", other: "Chilean escudos" },
Currency { code: "CLF", digits: 4, symbol: "CLF", symbol_spaced: true, narrow: "CLF", narrow_spaced: true, one: "Chilean unit of account (UF)", other: "Chilean units of account (UF)" },
Currency { code: "CLP", digits: 0, symbol: "CLP", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Chilean peso", other: "Chilean pesos" },
Currency { code: "CNH", digits: 2, symbol: "CNH", symbol_spaced: true, narrow: "CNH", narrow_spaced: true, one: "Chinese yuan (offshore)", other: "Chinese yuan (offshore)" },
Currency { code: "CNX", digits: 2, symbol: "CNX", symbol_spaced: true, narrow: "CNX", narrow_spaced: true, one: "Chinese People’s Bank dollar", other: "Chinese People’s Bank dollars" },
Currency { code: "CNY", digits: 2, symbol: "CN¥", symbol_spaced: false, narrow: "¥", narrow_spaced: false, one: "Chinese yuan", other: "Chinese yuan" },
Currency { code: "COP", digits: 0, symbol: "COP", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Colombian peso", other: "Colombian pesos" },
Currency { code: "COU", digits: 2, symbol: "COU", symbol_spaced: true, narrow: "COU", narrow_spaced: true, one: "Colombian real value unit", other: "Colombian real value units" },
Currency { code: "CRC", digits: 2, symbol: "CRC", symbol_spaced: true, narrow: "₡", narrow_spaced: false, one: "Costa Rican colón", other: "Costa Rican colóns" },
Currency { code: "CSD", digits: 2, symbol: "CSD", symbol_spaced: true, narrow: "CSD", narrow_spaced: true, one: "Serbian dinar (2002–2006)", other: "Serbian dinars (2002–2006)" },
Currency { code: "CSK", digits: 2, symbol: "CSK", symbol_spaced: true, narrow: "CSK", narrow_spaced: true, one: "Czechoslovak hard koruna", other: "Czechoslovak hard korunas" },
Currency { code: "CUC", digits: 2, symbol: "CUC", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Cuban convertible peso", other: "Cuban convertible pesos" },
Currency { code: "CUP", digits: 2, symbol: "CUP", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Cuban peso", other: "Cuban pesos" },
Currency { code: "CVE", digits: 2, symbol: "CVE", symbol_spaced: true, narrow: "CVE", narrow_spaced: true, one: "Cape Verdean escudo", other: "Cape Verdean escudos" },
Currency { code: "CYP", digits: 2, symbol: "CYP", symbol_spaced: true, narrow: "CYP", narrow_spaced: true, one: "Cypriot pound", other: "Cypriot pounds" },
Currency { code: "CZK", digits: 2, symbol: "CZK", symbol_spaced: true, narrow: "Kč", narrow_spaced: true, one: "Czech koruna", other: "Czech korunas" },
Currency { code: "DDM", digits: 2, symbol: "DDM", symbol_spaced: true, narrow: "DDM", narrow_spaced: true, one: "East German mark", other: "East German marks" },
Currency { code: "DEM", digits: 2, symbol: "DEM", symbol_spaced: true, narrow: "DEM", narrow_spaced: true, one: "German mark", other: "German marks" },
Currency { code: "DJF", digits: 0, symbol: "DJF", symbol_spaced: true, narrow: "DJF", narrow_spaced: true, one: "Djiboutian franc", other: "Djiboutian francs" },
Currency { code: "DKK", digits: 2, symbol: "DKK", symbol_spaced: true, narrow: "kr", narrow_spaced: true, one: "Danish krone", other: "Danish kroner" },
Currency { code: "DOP", digits: 2, symbol: "DOP", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Dominican peso", other: "Dominican pesos" },
Currency { code: "DZD", digits: 2, symbol: "DZD", symbol_spaced: true, narrow: "DZD", narrow_spaced: true, one: "Algerian dinar", other: "Algerian dinars" },
Currency { code: "ECS", digits: 2, symbol: "ECS", symbol_spaced: true, narrow: "ECS", narrow_spaced: true, one: "Ecuadorian sucre", other: "Ecuadorian sucres" },
Currency { code: "ECV", digits: 2, symbol: "ECV", symbol_spaced: true, narrow: "ECV", narrow_spaced: true, one: "Ecuadorian unit of constant value", other: "Ecuadorian units of constant value" },
Currency { code: "EEK", digits: 2, symbol: "EEK", symbol_spaced: true, narrow: "EEK", narrow_spaced: true, one: "Estonian kroon", other: "Estonian kroons" },
Currency { code: "EGP", digits: 2, symbol: "EGP", symbol_spaced: true, narrow: "E£", narrow_spaced: false, one: "Egyptian pound", other: "Egyptian pounds" },
Currency { code: "ERN", digits: 2, symbol: "ERN", symbol_spaced: true, narrow: "ERN", narrow_spaced: true, one: "Eritrean nakfa", other: "Eritrean nakfas" },
Currency { code: "ESA", digits: 2, symbol: "ESA", symbol_spaced: true, narrow: "ESA", narrow_spaced: true, one: "Spanish peseta (A account)", other: "Spanish pesetas (A account)" },
Currency { code: "ESB", digits: 2, symbol: "ESB", symbol_spaced: true, narrow: "ESB", narrow_spaced: true, one: "Spanish peseta (convertible account)", other: "Spanish pesetas (convertible account)" },
Currency { code: "ESP", digits: 0, symbol: "ESP", symbol_spaced: true, narrow: "₧", narrow_spaced: false, one: "Spanish peseta", other: "Spanish pesetas" },
Currency { code: "ETB", digits: 2, symbol: "ETB", symbol_spaced: true, narrow: "ETB", narrow_spaced: true, one: "Ethiopian birr", other: "Ethiopian birrs" },
Currency { code: "EUR", digits: 2, symbol: "€", symbol_spaced: false, narrow: "€", narrow_spaced: false, one: "euro", other: "euros" },
Currency { code: "FIM", digits: 2, symbol: "FIM", symbol_spaced: true, narrow: "FIM", narrow_spaced: true, one: "Finnish markka", other: "Finnish markkas" },
Currency { code: "FJD", digits: 2, symbol: "FJD", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Fijian dollar", other: "Fijian dollars" },
Currency { code: "FKP", digits: 2, symbol: "FKP", symbol_spaced: true, narrow: "£", narrow_spaced: false, one: "Falkland Islands pound", other: "Falkland Islands pounds" },
Currency { code: "FRF", digits: 2, symbol: "FRF", symbol_spaced: true, narrow: "FRF", narrow_spaced: true, one: "French franc", other: "French francs" },
Currency { code: "GBP", digits: 2, symbol: "£", symbol_spaced: false, narrow: "£", narrow_spaced: false, one: "British pound", other: "British pounds" },
Currency { code: "GEK", digits: 2, symbol: "GEK", symbol_spaced: true, narrow: "GEK", narrow_spaced: true, one: "Georgian kupon larit", other: "Georgian kupon larits" },
Currency { code: "GEL", digits: 2, symbol: "GEL", symbol_spaced: true, narrow: "₾", narrow_spaced: false, one: "Georgian lari", other: "Georgian laris" },
Currency { code: "GHC", digits: 2, symbol: "GHC", symbol_spaced: true, narrow: "GHC", narrow_spaced: true, one: "Ghanaian cedi (1979–2007)", other: "Ghanaian cedis (1979–2007)" },
Currency { code: "GHS", digits: 2, symbol: "GHS", symbol_spaced: true, narrow: "GH₵", narrow_spaced: false, one: "Ghanaian cedi", other: "Ghanaian cedis" },
Currency { code: "GIP", digits: 2, symbol: "GIP", symbol_spaced: true, narrow: "£", narrow_spaced: false, one: "Gibraltar pound", other: "Gibraltar pounds" },
Currency { code: "GMD", digits: 2, symbol: "GMD", symbol_spaced: true, narrow: "GMD", narrow_spaced: true, one: "Gambian dalasi", other: "Gambian dalasis" },
Currency { code: "GNF", digits: 0, symbol: "GNF", symbol_spaced: true, narrow: "FG", narrow_spaced: true, one: "Guinean franc", other: "Guinean francs" },
Currency { code: "GNS", digits: 2, symbol: "GNS", symbol_spaced: true, narrow: "GNS", narrow_spaced: true, one: "Guinean syli", other: "Guinean sylis" },
Currency { code: "GQE", digits: 2, symbol: "GQE", symbol_spaced: true, narrow: "GQE", narrow_spaced: true, one: "Equatorial Guinean ekwele", other: "Equatorial Guinean ekwele" },
Currency { code: "GRD", digits: 2, symbol: "GRD", symbol_spaced: true, narrow: "GRD", narrow_spaced: true, one: "Greek drachma", other: "Greek drachmas" },
Currency { code: "GTQ", digits: 2, symbol: "GTQ", symbol_spaced: true, narrow: "Q", narrow_spaced: true, one: "Guatemalan quetzal", other: "Guatemalan quetzals" },
Currency { code: "GWE", digits: 2, symbol: "GWE", symbol_spaced: true, narrow: "GWE", narrow_spaced: true, one: "Portuguese Guinea escudo", other: "Portuguese Guinea escudos" },
Currency { code: "GWP", digits: 2, symbol: "GWP", symbol_spaced: true, narrow: "GWP", narrow_spaced: true, one: "Guinea-Bissau peso", other: "Guinea-Bissau pesos" },
Currency { code: "GYD", digits: 2, symbol: "GYD", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Guyanaese dollar", other: "Guyanaese dollars" },
Currency { code: "HKD", digits: 2, symbol: "HK$", symbol_spaced: false, narrow: "$", narrow_spaced: false, one: "Hong Kong dollar", other: "Hong Kong dollars" },
Currency { code: "HNL", digits: 2, symbol: "HNL", symbol_spaced: true, narrow: "L", narrow_spaced: true, one: "Honduran lempira", other: "Honduran lempiras" },
Currency { code: "HRD", digits: 2, symbol: "HRD", symbol_spaced: true, narrow: "HRD", narrow_spaced: true, one: "Croatian dinar", other: "Croatian dinars" },
Currency { code: "HRK", digits: 2, symbol: "HRK", symbol_spaced: true, narrow: "kn", narrow_spaced: true, one: "Croatian kuna", other: "Croatian kunas" },
Currency { code: "HTG", digits: 2, symbol: "HTG", symbol_spaced: true, narrow: "HTG", narrow_spaced: true, one: "Haitian gourde", other: "Haitian gourdes" },
Currency { code: "HUF", digits: 0, symbol: "HUF", symbol_spaced: true, narrow: "Ft", narrow_spaced: true, one: "Hungarian forint", other: "Hungarian forints" },
Currency { code: "IDR", digits: 0, symbol: "IDR", symbol_spaced: true, narrow: "Rp", narrow_spaced: true, one: "Indonesian rupiah", other: "Indonesian rupiahs" },
Currency { code: "IEP", digits: 2, symbol: "IEP", symbol_spaced: true, narrow: "IEP", narrow_spaced: true, one: "Irish pound", other: "Irish pounds" },
Currency { code: "ILP", digits: 2, symbol: "ILP", symbol_spaced: true, narrow: "ILP", narrow_spaced: true, one: "Israeli pound", other: "Israeli pounds" },
Currency { code: "ILR", digits: 2, symbol: "ILR", symbol_spaced: true, narrow: "ILR", narrow_spaced: true, one: "Israeli shekel (1980–1985)", other: "Israeli shekels (1980–1985)" },
Currency { code: "ILS", digits: 2, symbol: "₪", symbol_spaced: false, narrow: "₪", narrow_spaced: false, one: "Israeli new shekel", other: "Israeli new shekels" },
Currency { code: "INR", digits: 2, symbol: "₹", symbol_spaced: false, narrow: "₹", narrow_spaced: false, one: "Indian rupee", other: "Indian rupees" },
Currency { code: "IQD", digits: 0, symbol: "IQD", symbol_spaced: true, narrow: "IQD", narrow_spaced: true, one: "Iraqi dinar", other: "Iraqi dinars" },
Currency { code: "IRR", digits: 0, symbol: "IRR", symbol_spaced: true, narrow: "IRR", narrow_spaced: true, one: "Iranian rial", other: "Iranian rials" },
Currency { code: "ISJ", digits: 2, symbol: "ISJ", symbol_spaced: true, narrow: "ISJ", narrow_spaced: true, one: "Icelandic króna (1918–1981)", other: "Icelandic krónur (1918–1981)" },
Currency { code: "ISK", digits: 0, symbol: "ISK", symbol_spaced: true, narrow: "kr", narrow_spaced: true, one: "Icelandic króna", other: "Icelandic krónur" },
Currency { code: "ITL", digits: 0, symbol: "ITL", symbol_spaced: true, narrow: "ITL", narrow_spaced: true, one: "Italian lira", other: "Italian liras" },
Currency { code: "JMD", digits: 2, symbol: "JMD", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Jamaican dollar", other: "Jamaican dollars" },
Currency { code: "JOD", digits: 3, symbol: "JOD", symbol_spaced: true, narrow: "JOD", narrow_spaced: true, one: "Jordanian dinar", other: "Jordanian dinars" },
Currency { code: "JPY", digits: 0, symbol: "¥", symbol_spaced: false, narrow: "¥", narrow_spaced: false, one: "Japanese yen", other: "Japanese yen" },
Currency { code: "KES", digits: 2, symbol: "KES", symbol_spaced: true, narrow: "KES", narrow_spaced: true, one: "Kenyan shilling", other: "Kenyan shillings" },
Currency { code: "KGS", digits: 2, symbol: "KGS", symbol_spaced: true, narrow: "⃀", narrow_spaced: false, one: "Kyrgyz som", other: "Kyrgyz soms" },
Currency { code: "KHR", digits: 2, symbol: "KHR", symbol_spaced: true, narrow: "៛", narrow_spaced: false, one: "Cambodian riel", other: "Cambodian riels" },
Currency { code: "KMF", digits: 0, symbol: "KMF", symbol_spaced: true, narrow: "CF", narrow_spaced: true, one: "Comorian franc", other: "Comorian francs" },
Currency { code: "KPW", digits: 0, symbol: "KPW", symbol_spaced: true, narrow: "₩", narrow_spaced: false, one: "North Korean won", other: "North Korean won" },
Currency { code: "KRH", digits: 2, symbol: "KRH", symbol_spaced: true, narrow: "KRH", narrow_spaced: true, one: "South Korean hwan (1953–1962)", other: "South Korean hwan (1953–1962)" },
Currency { code: "KRO", digits: 2, symbol: "KRO", symbol_spaced: true, narrow: "KRO", narrow_spaced: true, one: "South Korean won (1945–1953)", other: "South Korean won (1945–1953)" },
Currency { code: "KRW", digits: 0, symbol: "₩", symbol_spaced: false, narrow: "₩", narrow_spaced: false, one: "South Korean won", other: "South Korean won" },
Currency { code: "KWD", digits: 3, symbol: "KWD", symbol_spaced: true, narrow: "KWD", narrow_spaced: true, one: "Kuwaiti dinar", other: "Kuwaiti dinars" },
Currency { code: "KYD", digits: 2, symbol: "KYD", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Cayman Islands dollar", other: "Cayman Islands dollars" },
Currency { code: "KZT", digits: 2, symbol: "KZT", symbol_spaced: true, narrow: "₸", narrow_spaced: false, one: "Kazakhstani tenge", other: "Kazakhstani tenges" },
Currency { code: "LAK", digits: 0, symbol: "LAK", symbol_spaced: true, narrow: "₭", narrow_spaced: false, one: "Laotian kip", other: "Laotian kips" },
Currency { code: "LBP", digits: 0, symbol: "LBP", symbol_spaced: true, narrow: "L£", narrow_spaced: false, one: "Lebanese pound", other: "Lebanese pounds" },
Currency { code: "LKR", digits: 2, symbol: "LKR", symbol_spaced: true, narrow: "Rs", narrow_spaced: true, one: "Sri Lankan rupee", other: "Sri Lankan rupees" },
Currency { code: "LRD", digits: 2, symbol: "LRD", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Liberian dollar", other: "Liberian dollars" },
Currency { code: "LSL", digits: 2, symbol: "LSL", symbol_spaced: true, narrow: "LSL", narrow_spaced: true, one: "Lesotho loti", other: "Lesotho lotis" },
Currency { code: "LTL", digits: 2, symbol: "LTL", symbol_spaced: true, narrow: "Lt", narrow_spaced: true, one: "Lithuanian litas", other: "Lithuanian litai" },
Currency { code: "LTT", digits: 2, symbol: "LTT", symbol_spaced: true, narrow: "LTT", narrow_spaced: true, one: "Lithuanian talonas", other: "Lithuanian talonases" },
Currency { code: "LUC", digits: 2, symbol: "LUC", symbol_spaced: true, narrow: "LUC", narrow_spaced: true, one: "Luxembourgian convertible franc", other: "Luxembourgian convertible francs" },
Currency { code: "LUF", digits: 0, symbol: "LUF", symbol_spaced: true, narrow: "LUF", narrow_spaced: true, one: "Luxembourgian franc", other: "Luxembourgian francs" },
Currency { code: "LUL", digits: 2, symbol: "LUL", symbol_spaced: true, narrow: "LUL", narrow_spaced: true, one: "Luxembourg financial franc", other: "Luxembourg financial francs" },
Currency { code: "LVL", digits: 2, symbol: "LVL", symbol_spaced: true, narrow: "Ls", narrow_spaced: true, one: "Latvian lats", other: "Latvian lati" },
Currency { code: "LVR", digits: 2, symbol: "LVR", symbol_spaced: true, narrow: "LVR", narrow_spaced: true, one: "Latvian ruble", other: "Latvian rubles" },
Currency { code: "LYD", digits: 3, symbol: "LYD", symbol_spaced: true, narrow: "LYD", narrow_spaced: true, one: "Libyan dinar", other: "Libyan dinars" },
Currency { code: "MAD", digits: 2, symbol: "MAD", symbol_spaced: true, narrow: "MAD", narrow_spaced: true, one: "Moroccan dirham", other: "Moroccan dirhams" },
Currency { code: "MAF", digits: 2, symbol: "MAF", symbol_spaced: true, narrow: "MAF", narrow_spaced: true, one: "Moroccan franc", other: "Moroccan francs" },
Currency { code: "MCF", digits: 2, symbol: "MCF", symbol_spaced: true, narrow: "MCF", narrow_spaced: true, one: "Monegasque franc", other: "Monegasque francs" },
Currency { code: "MDC", digits: 2, symbol: "MDC", symbol_spaced: true, narrow: "MDC", narrow_spaced: true, one: "Moldovan cupon", other: "Moldovan cupon" },
Currency { code: "MDL", digits: 2, symbol: "MDL", symbol_spaced: true, narrow: "MDL", narrow_spaced: true, one: "Moldovan leu", other: "Moldovan lei" },
Currency { code: "MGA", digits: 0, symbol: "MGA", symbol_spaced: true, narrow: "Ar", narrow_spaced: true, one: "Malagasy ariary", other: "Malagasy ariaries" },
Currency { code: "MGF", digits: 0, symbol: "MGF", symbol_spaced: true, narrow: "MGF", narrow_spaced: true, one: "Malagasy franc", other: "Malagasy francs" },
Currency { code: "MKD", digits: 2, symbol: "MKD", symbol_spaced: true, narrow: "MKD", narrow_spaced: true, one: "Macedonian denar", other: "Macedonian denari" },
Currency { code: "MKN", digits: 2, symbol: "MKN", symbol_spaced: true, narrow: "MKN", narrow_spaced: true, one: "Macedonian denar (1992–1993)", other: "Macedonian denari (1992–1993)" },
Currency { code: "MLF", digits: 2, symbol: "MLF", symbol_spaced: true, narrow: "MLF", narrow_spaced: true, one: "Malian franc", other: "Malian francs" },
Currency { code: "MMK", digits: 0, symbol: "MMK", symbol_spaced: true, narrow: "K", narrow_spaced: true, one: "Myanmar kyat", other: "Myanmar kyats" },
Currency { code: "MNT", digits: 2, symbol: "MNT", symbol_spaced: true, narrow: "₮", narrow_spaced: false, one: "Mongolian tugrik", other: "Mongolian tugriks" },
Currency { code: "MOP", digits: 2, symbol: "MOP", symbol_spaced: true, narrow: "MOP", narrow_spaced: true, one: "Macanese pataca", other: "Macanese patacas" },
Currency { code: "MRO", digits: 0, symbol: "MRO", symbol_spaced: true, narrow: "MRO", narrow_spaced: true, one: "Mauritanian ouguiya (1973–2017)", other: "Mauritanian ouguiyas (1973–2017)" },
Currency { code: "MRU", digits: 2, symbol: "MRU", symbol_spaced: true, narrow: "MRU", narrow_spaced: true, one: "Mauritanian ouguiya", other: "Mauritanian ouguiyas" },
Currency { code: "MTL", digits: 2, symbol: "MTL", symbol_spaced: true, narrow: "MTL", narrow_spaced: true, one: "Maltese lira", other: "Maltese lira" },
Currency { code: "MTP", digits: 2, symbol: "MTP", symbol_spaced: true, narrow: "MTP", narrow_spaced: true, one: "Maltese pound", other: "Maltese pounds" },
Currency { code: "MUR", digits: 2, symbol: "MUR", symbol_spaced: true, narrow: "Rs", narrow_spaced: true, one: "Mauritian rupee", other: "Mauritian rupees" },
Currency { code: "MVP", digits: 2, symbol: "MVP", symbol_spaced: true, narrow: "MVP", narrow_spaced: true, one: "Maldivian rupee (1947–1981)", other: "Maldivian rupees (1947–1981)" },
Currency { code: "MVR", digits: 2, symbol: "MVR", symbol_spaced: true, narrow: "MVR", narrow_spaced: true, one: "Maldivian rufiyaa", other: "Maldivian rufiyaas" },
Currency { code: "MWK", digits: 2, symbol: "MWK", symbol_spaced: true, narrow: "MWK", narrow_spaced: true, one: "Malawian kwacha", other: "Malawian kwachas" },
Currency { code: "MXN", digits: 2, symbol: "MX$", symbol_spaced: false, narrow: "$", narrow_spaced: false, one: "Mexican peso", other: "Mexican pesos" },
Currency { code: "MXP", digits: 2, symbol: "MXP", symbol_spaced: true, narrow: "MXP", narrow_spaced: true, one: "Mexican silver peso (1861–1992)", other: "Mexican silver pesos (1861–1992)" },
Currency { code: "MXV", digits: 2, symbol: "MXV", symbol_spaced: true, narrow: "MXV", narrow_spaced: true, one: "Mexican investment unit", other: "Mexican investment units" },
Currency { code: "MYR", digits: 2, symbol: "MYR", symbol_spaced: true, narrow: "RM", narrow_spaced: true, one: "Malaysian ringgit", other: "Malaysian ringgits" },
Currency { code: "MZE", digits: 2, symbol: "MZE", symbol_spaced: true, narrow: "MZE", narrow_spaced: true, one: "Mozambican escudo", other: "Mozambican escudos" },
Currency { code: "MZM", digits: 2, symbol: "MZM", symbol_spaced: true, narrow: "MZM", narrow_spaced: true, one: "Mozambican metical (1980–2006)", other: "Mozambican meticals (1980–2006)" },
Currency { code: "MZN", digits: 2, symbol: "MZN", symbol_spaced: true, narrow: "MZN", narrow_spaced: true, one: "Mozambican metical", other: "Mozambican meticals" },
Currency { code: "NAD", digits: 2, symbol: "NAD", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Namibian dollar", other: "Namibian dollars" },
Currency { code: "NGN", digits: 2, symbol: "NGN", symbol_spaced: true, narrow: "₦", narrow_spaced: false, one: "Nigerian naira", other: "Nigerian nairas" },
Currency { code: "NIC", digits: 2, symbol: "NIC", symbol_spaced: true, narrow: "NIC", narrow_spaced: true, one: "Nicaraguan córdoba (1988–1991)", other: "Nicaraguan córdobas (1988–1991)" },
Currency { code: "NIO", digits: 2, symbol: "NIO", symbol_spaced: true, narrow: "C$", narrow_spaced: false, one: "Nicaraguan córdoba", other: "Nicaraguan córdobas" },
Currency { code: "NLG", digits: 2, symbol: "NLG", symbol_spaced: true, narrow: "NLG", narrow_spaced: true, one: "Dutch guilder", other: "Dutch guilders" },
Currency { code: "NOK", digits: 2, symbol: "NOK", symbol_spaced: true, narrow: "kr", narrow_spaced: true, one: "Norwegian krone", other: "Norwegian kroner" },
Currency { code: "NPR", digits: 2, symbol: "NPR", symbol_spaced: true, narrow: "Rs", narrow_spaced: true, one: "Nepalese rupee", other: "Nepalese rupees" },
Currency { code: "NZD", digits: 2, symbol: "NZ$", symbol_spaced: false, narrow: "$", narrow_spaced: false, one: "New Zealand dollar", other: "New Zealand dollars" },
Currency { code: "OMR", digits: 3, symbol: "OMR", symbol_spaced: true, narrow: "OMR", narrow_spaced: true, one: "Omani rial", other: "Omani rials" },
Currency { code: "PAB", digits: 2, symbol: "PAB", symbol_spaced: true, narrow: "PAB", narrow_spaced: true, one: "Panamanian balboa", other: "Panamanian balboas" },
Currency { code: "PEI", digits: 2, symbol: "PEI", symbol_spaced: true, narrow: "PEI", narrow_spaced: true, one: "Peruvian inti", other: "Peruvian intis" },
Currency { code: "PEN", digits: 2, symbol: "PEN", symbol_spaced: true, narrow: "PEN", narrow_spaced: true, one: "Peruvian sol", other: "Peruvian soles" },
Currency { code: "PES", digits: 2, symbol: "PES", symbol_spaced: true, narrow: "PES", narrow_spaced: true, one: "Peruvian sol (1863–1965)", other: "Peruvian soles (1863–1965)" },
Currency { code: "PGK", digits: 2, symbol: "PGK", symbol_spaced: true, narrow: "PGK", narrow_spaced: true, one: "Papua New Guinean kina", other: "Papua New Guinean kina" },
Currency { code: "PHP", digits: 2, symbol: "₱", symbol_spaced: false, narrow: "₱", narrow_spaced: false, one: "Philippine peso", other: "Philippine pesos" },
Currency { code: "PKR", digits: 0, symbol: "PKR", symbol_spaced: true, narrow: "Rs", narrow_spaced: true, one: "Pakistani rupee", other: "Pakistani rupees" },
Currency { code: "PLN", digits: 2, symbol: "PLN", symbol_spaced: true, narrow: "zł", narrow_spaced: true, one: "Polish zloty", other: "Polish zlotys" },
Currency { code: "PLZ", digits: 2, symbol: "PLZ", symbol_spaced: true, narrow: "PLZ", narrow_spaced: true, one: "Polish zloty (PLZ)", other: "Polish zlotys (PLZ)" },
Currency { code: "PTE", digits: 2, symbol: "PTE", symbol_spaced: true, narrow: "PTE", narrow_spaced: true, one: "Portuguese escudo", other: "Portuguese escudos" },
Currency { code: "PYG", digits: 0, symbol: "PYG", symbol_spaced: true, narrow: "₲", narrow_spaced: false, one: "Paraguayan guarani", other: "Paraguayan guaranis" },
Currency { code: "QAR", digits: 2, symbol: "QAR", symbol_spaced: true, narrow: "QAR", narrow_spaced: true, one: "Qatari riyal", other: "Qatari riyals" },
Currency { code: "RHD", digits: 2, symbol: "RHD", symbol_spaced: true, narrow: "RHD", narrow_spaced: true, one: "Rhodesian dollar", other: "Rhodesian dollars" },
Currency { code: "ROL", digits: 2, symbol: "ROL", symbol_spaced: true, narrow: "ROL", narrow_spaced: true, one: "Romanian leu (1952–2006)", other: "Romanian Lei (1952–2006)" },
Currency { code: "RON", digits: 2, symbol: "RON", symbol_spaced: true, narrow: "lei", narrow_spaced: true, one: "Romanian leu", other: "Romanian lei" },
Currency { code: "RSD", digits: 2, symbol: "RSD", symbol_spaced: true, narrow: "RSD", narrow_spaced: true, one: "Serbian dinar", other: "Serbian dinars" },
Currency { code: "RUB", digits: 2, symbol: "RUB", symbol_spaced: true, narrow: "₽", narrow_spaced: false, one: "Russian ruble", other: "Russian rubles" },
Currency { code: "RUR", digits: 2, symbol: "RUR", symbol_spaced: true, narrow: "RUR", narrow_spaced: true, one: "Russian ruble (1991–1998)", other: "Russian rubles (1991–1998)" },
Currency { code: "RWF", digits: 0, symbol: "RWF", symbol_spaced: true, narrow: "RF", narrow_spaced: true, one: "Rwandan franc", other: "Rwandan francs" },
Currency { code: "SAR", digits: 2, symbol: "SAR", symbol_spaced: true, narrow: "SAR", narrow_spaced: true, one: "Saudi riyal", other: "Saudi riyals" },
Currency { code: "SBD", digits: 2, symbol: "SBD", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Solomon Islands dollar", other: "Solomon Islands dollars" },
Currency { code: "SCR", digits: 2, symbol: "SCR", symbol_spaced: true, narrow: "SCR", narrow_spaced: true, one: "Seychellois rupee", other: "Seychellois rupees" },
Currency { code: "SDD", digits: 2, symbol: "SDD", symbol_spaced: true, narrow: "SDD", narrow_spaced: true, one: "Sudanese dinar (1992–2007)", other: "Sudanese dinars (1992–2007)" },
Currency { code: "SDG", digits: 2, symbol: "SDG", symbol_spaced: true, narrow: "SDG", narrow_spaced: true, one: "Sudanese pound", other: "Sudanese pounds" },
Currency { code: "SDP", digits: 2, symbol: "SDP", symbol_spaced: true, narrow: "SDP", narrow_spaced: true, one: "Sudanese pound (1957–1998)", other: "Sudanese pounds (1957–1998)" },
Currency { code: "SEK", digits: 2, symbol: "SEK", symbol_spaced: true, narrow: "kr", narrow_spaced: true, one: "Swedish krona", other: "Swedish kronor" },
Currency { code: "SGD", digits: 2, symbol: "SGD", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Singapore dollar", other: "Singapore dollars" },
Currency { code: "SHP", digits: 2, symbol: "SHP", symbol_spaced: true, narrow: "£", narrow_spaced: false, one: "St. Helena pound", other: "St. Helena pounds" },
Currency { code: "SIT", digits: 2, symbol: "SIT", symbol_spaced: true, narrow: "SIT", narrow_spaced: true, one: "Slovenian tolar", other: "Slovenian tolars" },
Currency { code: "SKK", digits: 2, symbol: "SKK", symbol_spaced: true, narrow: "SKK", narrow_spaced: true, one: "Slovak koruna", other: "Slovak korunas" },
Currency { code: "SLE", digits: 2, symbol: "SLE", symbol_spaced: true, narrow: "SLE", narrow_spaced: true, one: "Sierra Leonean leone", other: "Sierra Leonean leones" },
Currency { code: "SLL", digits: 0, symbol: "SLL", symbol_spaced: true, narrow: "SLL", narrow_spaced: true, one: "Sierra Leonean leone (1964—2022)", other: "Sierra Leonean leones (1964—2022)" },
Currency { code: "SOS", digits: 0, symbol: "SOS", symbol_spaced: true, narrow: "SOS", narrow_spaced: true, one: "Somali shilling", other: "Somali shillings" },
Currency { code: "SRD", digits: 2, symbol: "SRD", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Surinamese dollar", other: "Surinamese dollars" },
Currency { code: "SRG", digits: 2, symbol: "SRG", symbol_spaced: true, narrow: "SRG", narrow_spaced: true, one: "Surinamese guilder", other: "Surinamese guilders" },
Currency { code: "SSP", digits: 2, symbol: "SSP", symbol_spaced: true, narrow: "£", narrow_spaced: false, one: "South Sudanese pound", other: "South Sudanese pounds" },
Currency { code: "STD", digits: 0, symbol: "STD", symbol_spaced: true, narrow: "STD", narrow_spaced: true, one: "São Tomé & Príncipe dobra (1977–2017)", other: "São Tomé & Príncipe dobras (1977–2017)" },
Currency { code: "STN", digits: 2, symbol: "STN", symbol_spaced: true, narrow: "Db", narrow_spaced: true, one: "São Tomé & Príncipe dobra", other: "São Tomé & Príncipe dobras" },
Currency { code: "SUR", digits: 2, symbol: "SUR", symbol_spaced: true, narrow: "SUR", narrow_spaced: true, one: "Soviet rouble", other: "Soviet roubles" },
Currency { code: "SVC", digits: 2, symbol: "SVC", symbol_spaced: true, narrow: "SVC", narrow_spaced: true, one: "Salvadoran colón", other: "Salvadoran colones" },
Currency { code: "SYP", digits: 0, symbol: "SYP", symbol_spaced: true, narrow: "£", narrow_spaced: false, one: "Syrian pound", other: "Syrian pounds" },
Currency { code: "SZL", digits: 2, symbol: "SZL", symbol_spaced: true, narrow: "SZL", narrow_spaced: true, one: "Swazi lilangeni", other: "Swazi emalangeni" },
Currency { code: "THB", digits: 2, symbol: "THB", symbol_spaced: true, narrow: "฿", narrow_spaced: false, one: "Thai baht", other: "Thai baht" },
Currency { code: "TJR", digits: 2, symbol: "TJR", symbol_spaced: true, narrow: "TJR", narrow_spaced: true, one: "Tajikistani ruble", other: "Tajikistani rubles" },
Currency { code: "TJS", digits: 2, symbol: "TJS", symbol_spaced: true, narrow: "TJS", narrow_spaced: true, one: "Tajikistani somoni", other: "Tajikistani somonis" },
Currency { code: "TMM", digits: 0, symbol: "TMM", symbol_spaced: true, narrow: "TMM", narrow_spaced: true, one: "Turkmenistani manat (1993–2009)", other: "Turkmenistani manat (1993–2009)" },
Currency { code: "TMT", digits: 2, symbol: "TMT", symbol_spaced: true, narrow: "TMT", narrow_spaced: true, one: "Turkmenistani manat", other: "Turkmenistani manat" },
Currency { code: "TND", digits: 3, symbol: "TND", symbol_spaced: true, narrow: "TND", narrow_spaced: true, one: "Tunisian dinar", other: "Tunisian dinars" },
Currency { code: "TOP", digits: 2, symbol: "TOP", symbol_spaced: true, narrow: "T$", narrow_spaced: false, one: "Tongan paʻanga", other: "Tongan paʻanga" },
Currency { code: "TPE", digits: 2, symbol: "TPE", symbol_spaced: true, narrow: "TPE", narrow_spaced: true, one: "Timorese escudo", other: "Timorese escudos" },
Currency { code: "TRL", digits: 0, symbol: "TRL", symbol_spaced: true, narrow: "TRL", narrow_spaced: true, one: "Turkish lira (1922–2005)", other: "Turkish Lira (1922–2005)" },
Currency { code: "TRY", digits: 2, symbol: "TRY", symbol_spaced: true, narrow: "₺", narrow_spaced: false, one: "Turkish lira", other: "Turkish Lira" },
Currency { code: "TTD", digits: 2, symbol: "TTD", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Trinidad & Tobago dollar", other: "Trinidad & Tobago dollars" },
Currency { code: "TWD", digits: 2, symbol: "NT$", symbol_spaced: false, narrow: "$", narrow_spaced: false, one: "New Taiwan dollar", other: "New Taiwan dollars" },
Currency { code: "TZS", digits: 2, symbol: "TZS", symbol_spaced: true, narrow: "TZS", narrow_spaced: true, one: "Tanzanian shilling", other: "Tanzanian shillings" },
Currency { code: "UAH", digits: 2, symbol: "UAH", symbol_spaced: true, narrow: "₴", narrow_spaced: false, one: "Ukrainian hryvnia", other: "Ukrainian hryvnias" },
Currency { code: "UAK", digits: 2, symbol: "UAK", symbol_spaced: true, narrow: "UAK", narrow_spaced: true, one: "Ukrainian karbovanets", other: "Ukrainian karbovantsiv" },
Currency { code: "UGS", digits: 2, symbol: "UGS", symbol_spaced: true, narrow: "UGS", narrow_spaced: true, one: "Ugandan shilling (1966–1987)", other: "Ugandan shillings (1966–1987)" },
Currency { code: "UGX", digits: 0, symbol: "UGX", symbol_spaced: true, narrow: "UGX", narrow_spaced: true, one: "Ugandan shilling", other: "Ugandan shillings" },
Currency { code: "USD", digits: 2, symbol: "$", symbol_spaced: false, narrow: "$", narrow_spaced: false, one: "US dollar", other: "US dollars" },
Currency { code: "USN", digits: 2, symbol: "USN", symbol_spaced: true, narrow: "USN", narrow_spaced: true, one: "US dollar (next day)", other: "US dollars (next day)" },
Currency { code: "USS", digits: 2, symbol: "USS", symbol_spaced: true, narrow: "USS", narrow_spaced: true, one: "US dollar (same day)", other: "US dollars (same day)" },
Currency { code: "UYI", digits: 0, symbol: "UYI", symbol_spaced: true, narrow: "UYI", narrow_spaced: true, one: "Uruguayan peso (indexed units)", other: "Uruguayan pesos (indexed units)" },
Currency { code: "UYP", digits: 2, symbol: "UYP", symbol_spaced: true, narrow: "UYP", narrow_spaced: true, one: "Uruguayan peso (1975–1993)", other: "Uruguayan pesos (1975–1993)" },
Currency { code: "UYU", digits: 2, symbol: "UYU", symbol_spaced: true, narrow: "$", narrow_spaced: false, one: "Uruguayan peso", other: "Uruguayan pesos" },
Currency { code: "UYW", digits: 4, symbol: "UYW", symbol_spaced: true, narrow: "UYW", narrow_spaced: true, one: "Uruguayan nominal wage index unit", other: "Uruguayan nominal wage index units" },
Currency { code: "UZS", digits: 2, symbol: "UZS", symbol_spaced: true, narrow: "UZS", narrow_spaced: true, one: "Uzbekistani som", other: "Uzbekistani som" },
Currency { code: "VEB", digits: 2, symbol: "VEB", symbol_spaced: true, narrow: "VEB", narrow_spaced: true, one: "Venezuelan bolívar (1871–2008)", other: "Venezuelan bolívars (1871–2008)" },
Currency { code: "VED", digits: 2, symbol: "VED", symbol_spaced: true, narrow: "VED", narrow_spaced: true, one: "Bolívar Soberano", other: "Bolívar Soberanos" },
Currency { code: "VEF", digits: 2, symbol: "VEF", symbol_spaced: true, narrow: "Bs", narrow_spaced: true, one: "Venezuelan bolívar (2008–2018)", other: "Venezuelan bolívars (2008–2018)" },
Currency { code: "VES", digits: 2, symbol: "VES", symbol_spaced: true, narrow: "VES", narrow_spaced: true, one: "Venezuelan bolívar", other: "Venezuelan bolívars" },
Currency { code: "VND", digits: 0, symbol: "₫", symbol_spaced: false, narrow: "₫", narrow_spaced: false, one: "Vietnamese dong", other: "Vietnamese dong" },
Currency { code: "VNN", digits: 2, symbol: "VNN", symbol_spaced: true, narrow: "VNN", narrow_spaced: true, one: "Vietnamese dong (1978–1985)", other: "Vietnamese dong (1978–1985)" },
Currency { code: "VUV", digits: 0, symbol: "VUV", symbol_spaced: true, narrow: "VUV", narrow_spaced: true, one: "Vanuatu vatu", other: "Vanuatu vatus" },
Currency { code: "WST", digits: 2, symbol: "WST", symbol_spaced: true, narrow: "WST", narrow_spaced: true, one: "Samoan tala", other: "Samoan tala" },
Currency { code: "XAF", digits: 0, symbol: "FCFA", symbol_spaced: true, narrow: "FCFA", narrow_spaced: true, one: "Central African CFA franc", other: "Central African CFA francs" },
Currency { code: "XAG", digits: 2, symbol: "XAG", symbol_spaced: true, narrow: "XAG", narrow_spaced: true, one: "troy ounce of silver", other: "troy ounces of silver" },
Currency { code: "XAU", digits: 2, symbol: "XAU", symbol_spaced: true, narrow: "XAU", narrow_spaced: true, one: "troy ounce of gold", other: "troy ounces of gold" },
Currency { code: "XBA", digits: 2, symbol: "XBA", symbol_spaced: true, narrow: "XBA", narrow_spaced: true, one: "European composite unit", other: "European composite units" },
Currency { code: "XBB", digits: 2, symbol: "XBB", symbol_spaced: true, narrow: "XBB", narrow_spaced: true, one: "European monetary unit", other: "European monetary units" },
Currency { code: "XBC", digits: 2, symbol: "XBC", symbol_spaced: true, narrow: "XBC", narrow_spaced: true, one: "European unit of account (XBC)", other: "European units of account (XBC)" },
Currency { code: "XBD", digits: 2, symbol: "XBD", symbol_spaced: true, narrow: "XBD", narrow_spaced: true, one: "European unit of account (XBD)", other: "European units of account (XBD)" },
Currency { code: "XCD", digits: 2, symbol: "EC$", symbol_spaced: false, narrow: "$", narrow_spaced: false, one: "East Caribbean dollar", other: "East Caribbean dollars" },
Currency { code: "XCG", digits: 2, symbol: "Cg.", symbol_spaced: true, narrow: "Cg.", narrow_spaced: true, one: "Caribbean guilder", other: "Caribbean guilders" },
Currency { code: "XDR", digits: 2, symbol: "XDR", symbol_spaced: true, narrow: "XDR", narrow_spaced: true, one: "special drawing rights", other: "special drawing rights" },
Currency { code: "XEU", digits: 2, symbol: "XEU", symbol_spaced: true, narrow: "XEU", narrow_spaced: true, one: "European currency unit", other: "European currency units" },
Currency { code: "XFO", digits: 2, symbol: "XFO", symbol_spaced: true, narrow: "XFO", narrow_spaced: true, one: "French gold franc", other: "French gold francs" },
Currency { code: "XFU", digits: 2, symbol: "XFU", symbol_spaced: true, narrow: "XFU", narrow_spaced: true, one: "French UIC-franc", other: "French UIC-francs" },
Currency { code: "XOF", digits: 0, symbol: "F\u{202f}CFA", symbol_spaced: true, narrow: "F\u{202f}CFA", narrow_spaced: true, one: "West African CFA franc", other: "West African CFA francs" },
Currency { code: "XPD", digits: 2, symbol: "XPD", symbol_spaced: true, narrow: "XPD", narrow_spaced: true, one: "troy ounce of palladium", other: "troy ounces of palladium" },
Currency { code: "XPF", digits: 0, symbol: "CFPF", symbol_spaced: true, narrow: "CFPF", narrow_spaced: true, one: "CFP franc", other: "CFP francs" },
Currency { code: "XPT", digits: 2, symbol: "XPT", symbol_spaced: true, narrow: "XPT", narrow_spaced: true, one: "troy ounce of platinum", other: "troy ounces of platinum" },
Currency { code: "XRE", digits: 2, symbol: "XRE", symbol_spaced: true, narrow: "XRE", narrow_spaced: true, one: "RINET Funds unit", other: "RINET Funds units" },
Currency { code: "XSU", digits: 2, symbol: "XSU", symbol_spaced: true, narrow: "XSU", narrow_spaced: true, one: "Sucre", other: "Sucres" },
Currency { code: "XTS", digits: 2, symbol: "XTS", symbol_spaced: true, narrow: "XTS", narrow_spaced: true, one: "Testing Currency unit", other: "Testing Currency units" },
Currency { code: "XUA", digits: 2, symbol: "XUA", symbol_spaced: true, narrow: "XUA", narrow_spaced: true, one: "ADB unit of account", other: "ADB units of account" },
Currency { code: "XXX", digits: 2, symbol: "¤", symbol_spaced: false, narrow: "¤", narrow_spaced: false, one: "(unknown unit of currency)", other: "(unknown currency)" },
Currency { code: "YDD", digits: 2, symbol: "YDD", symbol_spaced: true, narrow: "YDD", narrow_spaced: true, one: "Yemeni dinar", other: "Yemeni dinars" },
Currency { code: "YER", digits: 0, symbol: "YER", symbol_spaced: true, narrow: "YER", narrow_spaced: true, one: "Yemeni rial", other: "Yemeni rials" },
Currency { code: "YUD", digits: 2, symbol: "YUD", symbol_spaced: true, narrow: "YUD", narrow_spaced: true, one: "Yugoslavian hard dinar (1966–1990)", other: "Yugoslavian hard dinars (1966–1990)" },
Currency { code: "YUM", digits: 2, symbol: "YUM", symbol_spaced: true, narrow: "YUM", narrow_spaced: true, one: "Yugoslavian new dinar (1994–2002)", other: "Yugoslavian new dinars (1994–2002)" },
Currency { code: "YUN", digits: 2, symbol: "YUN", symbol_spaced: true, narrow: "YUN", narrow_spaced: true, one: "Yugoslavian convertible dinar (1990–1992)", other: "Yugoslavian convertible dinars (1990–1992)" },
Currency { code: "YUR", digits: 2, symbol: "YUR", symbol_spaced: true, narrow: "YUR", narrow_spaced: true, one: "Yugoslavian reformed dinar (1992–1993)", other: "Yugoslavian reformed dinars (1992–1993)" },
Currency { code: "ZAL", digits: 2, symbol: "ZAL", symbol_spaced: true, narrow: "ZAL", narrow_spaced: true, one: "South African rand (financial)", other: "South African rands (financial)" },
Currency { code: "ZAR", digits: 2, symbol: "ZAR", symbol_spaced: true, narrow: "R", narrow_spaced: true, one: "South African rand", other: "South African rand" },
Currency { code: "ZMK", digits: 0, symbol: "ZMK", symbol_spaced: true, narrow: "ZMK", narrow_spaced: true, one: "Zambian kwacha (1968–2012)", other: "Zambian kwachas (1968–2012)" },
Currency { code: "ZMW", digits: 2, symbol: "ZMW", symbol_spaced: true, narrow: "ZK", narrow_spaced: true, one: "Zambian kwacha", other: "Zambian kwachas" },
Currency { code: "ZRN", digits: 2, symbol: "ZRN", symbol_spaced: true, narrow: "ZRN", narrow_spaced: true, one: "Zairean new zaire (1993–1998)", other: "Zairean new zaires (1993–1998)" },
Currency { code: "ZRZ", digits: 2, symbol: "ZRZ", symbol_spaced: true, narrow: "ZRZ", narrow_spaced: true, one: "Zairean zaire (1971–1993)", other: "Zairean zaires (1971–1993)" },
Currency { code: "ZWD", digits: 0, symbol: "ZWD", symbol_spaced: true, narrow: "ZWD", narrow_spaced: true, one: "Zimbabwean dollar (1980–2008)", other: "Zimbabwean dollars (1980–2008)" },
Currency { code: "ZWG", digits: 2, symbol: "ZWG", symbol_spaced: true, narrow: "ZWG", narrow_spaced: true, one: "Zimbabwean gold", other: "Zimbabwean gold" },
Currency { code: "ZWL", digits: 2, symbol: "ZWL", symbol_spaced: true, narrow: "ZWL", narrow_spaced: true, one: "Zimbabwean dollar (2009–2024)", other: "Zimbabwean dollars (2009–2024)" },
Currency { code: "ZWR", digits: 2, symbol: "ZWR", symbol_spaced: true, narrow: "ZWR", narrow_spaced: true, one: "Zimbabwean dollar (2008)", other: "Zimbabwean dollars (2008)" },
];
pub(super) static UNITS: &[Unit] = &[
Unit { id: "acre", patterns: [["{0} ac", "{0} ac"], ["{0}ac", "{0}ac"], ["{0} acre", "{0} acres"]], per: ["{0}/ac", "{0}/ac", "{0} per acre"] },
Unit { id: "bit", patterns: [["{0} bit", "{0} bit"], ["{0}bit", "{0}bit"], ["{0} bit", "{0} bits"]], per: ["{0}/bit", "{0}/bit", "{0} per bit"] },
Unit { id: "byte", patterns: [["{0} byte", "{0} byte"], ["{0}B", "{0}B"], ["{0} byte", "{0} bytes"]], per: ["{0}/byte", "{0}/B", "{0} per byte"] },
Unit { id: "celsius", patterns: [["{0}°C", "{0}°C"], ["{0}°C", "{0}°C"], ["{0} degree Celsius", "{0} degrees Celsius"]], per: ["{0}/°C", "{0}/°C", "{0} per degree Celsius"] },
Unit { id: "centimeter", patterns: [["{0} cm", "{0} cm"], ["{0}cm", "{0}cm"], ["{0} centimeter", "{0} centimeters"]], per: ["{0}/cm", "{0}/cm", "{0} per centimeter"] },
Unit { id: "day", patterns: [["{0} day", "{0} days"], ["{0}d", "{0}d"], ["{0} day", "{0} days"]], per: ["{0}/d", "{0}/d", "{0} per day"] },
Unit { id: "degree", patterns: [["{0} deg", "{0} deg"], ["{0}°", "{0}°"], ["{0} degree", "{0} degrees"]], per: ["{0}/deg", "{0}/°", "{0} per degree"] },
Unit { id: "fahrenheit", patterns: [["{0}°F", "{0}°F"], ["{0}°", "{0}°"], ["{0} degree Fahrenheit", "{0} degrees Fahrenheit"]], per: ["{0}/°F", "{0}/°", "{0} per degree Fahrenheit"] },
Unit { id: "fluid-ounce", patterns: [["{0} fl oz", "{0} fl oz"], ["{0}fl oz", "{0}fl oz"], ["{0} fluid ounce", "{0} fluid ounces"]], per: ["{0}/fl oz", "{0}/fl oz", "{0} per fluid ounce"] },
Unit { id: "foot", patterns: [["{0} ft", "{0} ft"], ["{0}′", "{0}′"], ["{0} foot", "{0} feet"]], per: ["{0}/ft", "{0}/ft", "{0} per foot"] },
Unit { id: "gallon", patterns: [["{0} gal", "{0} gal"], ["{0}gal", "{0}gal"], ["{0} gallon", "{0} gallons"]], per: ["{0}/gal US", "{0}/gal", "{0} per gallon"] },
Unit { id: "gigabit", patterns: [["{0} Gb", "{0} Gb"], ["{0}Gb", "{0}Gb"], ["{0} gigabit", "{0} gigabits"]], per: ["{0}/Gb", "{0}/Gb", "{0} per gigabit"] },
Unit { id: "gigabyte", patterns: [["{0} GB", "{0} GB"], ["{0}GB", "{0}GB"], ["{0} gigabyte", "{0} gigabytes"]], per: ["{0}/GB", "{0}/GB", "{0} per gigabyte"] },
Unit { id: "gram", patterns: [["{0} g", "{0} g"], ["{0}g", "{0}g"], ["{0} gram", "{0} grams"]], per: ["{0}/g", "{0}/g", "{0} per gram"] },
Unit { id: "hectare", patterns: [["{0} ha", "{0} ha"], ["{0}ha", "{0}ha"], ["{0} hectare", "{0} hectares"]], per: ["{0}/ha", "{0}/ha", "{0} per hectare"] },
Unit { id: "hour", patterns: [["{0} hr", "{0} hr"], ["{0}h", "{0}h"], ["{0} hour", "{0} hours"]], per: ["{0}/h", "{0}/h", "{0} per hour"] },
Unit { id: "inch", patterns: [["{0} in", "{0} in"], ["{0}″", "{0}″"], ["{0} inch", "{0} inches"]], per: ["{0}/in", "{0}/in", "{0} per inch"] },
Unit { id: "kilobit", patterns: [["{0} kb", "{0} kb"], ["{0}kb", "{0}kb"], ["{0} kilobit", "{0} kilobits"]], per: ["{0}/kb", "{0}/kb", "{0} per kilobit"] },
Unit { id: "kilobyte", patterns: [["{0} kB", "{0} kB"], ["{0}kB", "{0}kB"], ["{0} kilobyte", "{0} kilobytes"]], per: ["{0}/kB", "{0}/kB", "{0} per kilobyte"] },
Unit { id: "kilogram", patterns: [["{0} kg", "{0} kg"], ["{0}kg", "{0}kg"], ["{0} kilogram", "{0} kilograms"]], per: ["{0}/kg", "{0}/kg", "{0} per kilogram"] },
Unit { id: "kilometer", patterns: [["{0} km", "{0} km"], ["{0}km", "{0}km"], ["{0} kilometer", "{0} kilometers"]], per: ["{0}/km", "{0}/km", "{0} per kilometer"] },
Unit { id: "liter", patterns: [["{0} L", "{0} L"], ["{0}L", "{0}L"], ["{0} liter", "{0} liters"]], per: ["{0}/L", "{0}/L", "{0} per liter"] },
Unit { id: "megabit", patterns: [["{0} Mb", "{0} Mb"], ["{0}Mb", "{0}Mb"], ["{0} megabit", "{0} megabits"]], per: ["{0}/Mb", "{0}/Mb", "{0} per megabit"] },
Unit { id: "megabyte", patterns: [["{0} MB", "{0} MB"], ["{0}MB", "{0}MB"], ["{0} megabyte", "{0} megabytes"]], per: ["{0}/MB", "{0}/MB", "{0} per megabyte"] },
Unit { id: "meter", patterns: [["{0} m", "{0} m"], ["{0}m", "{0}m"], ["{0} meter", "{0} meters"]], per: ["{0}/m", "{0}/m", "{0} per meter"] },
Unit { id: "microsecond", patterns: [["{0} μs", "{0} μs"], ["{0}μs", "{0}μs"], ["{0} microsecond", "{0} microseconds"]], per: ["{0}/μs", "{0}/μs", "{0} per microsecond"] },
Unit { id: "mile", patterns: [["{0} mi", "{0} mi"], ["{0}mi", "{0}mi"], ["{0} mile", "{0} miles"]], per: ["{0}/mi", "{0}/mi", "{0} per mile"] },
Unit { id: "mile-scandinavian", patterns: [["{0} smi", "{0} smi"], ["{0}smi", "{0}smi"], ["{0} mile-scandinavian", "{0} miles-scandinavian"]], per: ["{0}/smi", "{0}/smi", "{0} per mile-scandinavian"] },
Unit { id: "milliliter", patterns: [["{0} mL", "{0} mL"], ["{0}mL", "{0}mL"], ["{0} milliliter", "{0} milliliters"]], per: ["{0}/mL", "{0}/mL", "{0} per milliliter"] },
Unit { id: "millimeter", patterns: [["{0} mm", "{0} mm"], ["{0}mm", "{0}mm"], ["{0} millimeter", "{0} millimeters"]], per: ["{0}/mm", "{0}/mm", "{0} per millimeter"] },
Unit { id: "millisecond", patterns: [["{0} ms", "{0} ms"], ["{0}ms", "{0}ms"], ["{0} millisecond", "{0} milliseconds"]], per: ["{0}/ms", "{0}/ms", "{0} per millisecond"] },
Unit { id: "minute", patterns: [["{0} min", "{0} min"], ["{0}m", "{0}m"], ["{0} minute", "{0} minutes"]], per: ["{0}/min", "{0}/min", "{0} per minute"] },
Unit { id: "month", patterns: [["{0} mth", "{0} mths"], ["{0}m", "{0}m"], ["{0} month", "{0} months"]], per: ["{0}/m", "{0}/m", "{0} per month"] },
Unit { id: "nanosecond", patterns: [["{0} ns", "{0} ns"], ["{0}ns", "{0}ns"], ["{0} nanosecond", "{0} nanoseconds"]], per: ["{0}/ns", "{0}/ns", "{0} per nanosecond"] },
Unit { id: "ounce", patterns: [["{0} oz", "{0} oz"], ["{0}oz", "{0}oz"], ["{0} ounce", "{0} ounces"]], per: ["{0}/oz", "{0}/oz", "{0} per ounce"] },
Unit { id: "percent", patterns: [["{0}%", "{0}%"], ["{0}%", "{0}%"], ["{0} percent", "{0} percent"]], per: ["{0}/%", "{0}/%", "{0} per percent"] },
Unit { id: "petabyte", patterns: [["{0} PB", "{0} PB"], ["{0}PB", "{0}PB"], ["{0} petabyte", "{0} petabytes"]], per: ["{0}/PB", "{0}/PB", "{0} per petabyte"] },
Unit { id: "pound", patterns: [["{0} lb", "{0} lb"], ["{0}#", "{0}#"], ["{0} pound", "{0} pounds"]], per: ["{0}/lb", "{0}/lb", "{0} per pound"] },
Unit { id: "second", patterns: [["{0} sec", "{0} sec"], ["{0}s", "{0}s"], ["{0} second", "{0} seconds"]], per: ["{0}/s", "{0}/s", "{0} per second"] },
Unit { id: "stone", patterns: [["{0} st", "{0} st"], ["{0}st", "{0}st"], ["{0} stone", "{0} stones"]], per: ["{0}/st", "{0}/st", "{0} per stone"] },
Unit { id: "terabit", patterns: [["{0} Tb", "{0} Tb"], ["{0}Tb", "{0}Tb"], ["{0} terabit", "{0} terabits"]], per: ["{0}/Tb", "{0}/Tb", "{0} per terabit"] },
Unit { id: "terabyte", patterns: [["{0} TB", "{0} TB"], ["{0}TB", "{0}TB"], ["{0} terabyte", "{0} terabytes"]], per: ["{0}/TB", "{0}/TB", "{0} per terabyte"] },
Unit { id: "week", patterns: [["{0} wk", "{0} wks"], ["{0}w", "{0}w"], ["{0} week", "{0} weeks"]], per: ["{0}/w", "{0}/w", "{0} per week"] },
Unit { id: "yard", patterns: [["{0} yd", "{0} yd"], ["{0}yd", "{0}yd"], ["{0} yard", "{0} yards"]], per: ["{0}/yd", "{0}/yd", "{0} per yard"] },
Unit { id: "year", patterns: [["{0} yr", "{0} yrs"], ["{0}y", "{0}y"], ["{0} year", "{0} years"]], per: ["{0}/y", "{0}/y", "{0} per year"] },
];
pub(super) static COMPOUND_UNITS: &[CompoundUnit] = &[
CompoundUnit { id: "mile-per-gallon", patterns: [["{0} mpg", "{0} mpg"], ["{0}mpg", "{0}mpg"], ["{0} mile per gallon", "{0} miles per gallon"]] },
CompoundUnit { id: "mile-per-hour", patterns: [["{0} mph", "{0} mph"], ["{0}mph", "{0}mph"], ["{0} mile per hour", "{0} miles per hour"]] },
];