-module(dime). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). -define(FILEPATH, "src/dime.gleam"). -export([alpha_code/1, numeric_code/1, display_name/1, symbol/1, minor_units/1, from_alpha_code/1, from_numeric_code/1, known_currencies/0]). -export_type([currency/0, currency_code_error/0]). -if(?OTP_RELEASE >= 27). -define(MODULEDOC(Str), -moduledoc(Str)). -define(DOC(Str), -doc(Str)). -else. -define(MODULEDOC(Str), -compile([])). -define(DOC(Str), -compile([])). -endif. -opaque currency() :: {currency, binary(), binary(), binary(), binary(), integer()}. -type currency_code_error() :: invalid_format | unrecognized_code. -file("src/dime.gleam", 517). ?DOC(" Get the 3 character alphabetic code for the currency.\n"). -spec alpha_code(currency()) -> binary(). alpha_code(Currency) -> {currency, Alpha_code, _, _, _, _} = Currency, Alpha_code. -file("src/dime.gleam", 524). ?DOC(" Get the 3 character numeric code for the currency.\n"). -spec numeric_code(currency()) -> binary(). numeric_code(Currency) -> {currency, _, Numeric_code, _, _, _} = Currency, Numeric_code. -file("src/dime.gleam", 531). ?DOC(" Get the display name of the currency in English.\n"). -spec display_name(currency()) -> binary(). display_name(Currency) -> {currency, _, _, Display_name, _, _} = Currency, Display_name. -file("src/dime.gleam", 539). ?DOC( " Get the graphical symbol used as a shorthand\n" " representation of the specific currency unit.\n" ). -spec symbol(currency()) -> binary(). symbol(Currency) -> {currency, _, _, _, Symbol, _} = Currency, Symbol. -file("src/dime.gleam", 550). ?DOC( " The decimal relationship between the currency and\n" " it's minor unit, e.g. euro and euro cent.\n" "\n" " 1, 2 and 3 signify a ratio of 10:1, 100:1 and 1000:1\n" " respectively.\n" ). -spec minor_units(currency()) -> integer(). minor_units(Currency) -> {currency, _, _, _, _, Minor_units} = Currency, Minor_units. -file("src/dime.gleam", 914). -spec validate_length(binary()) -> {ok, binary()} | {error, currency_code_error()}. validate_length(Input) -> case string:length(Input) of 3 -> {ok, Input}; _ -> {error, invalid_format} end. -file("src/dime.gleam", 570). -spec parse_alpha_code(binary()) -> {ok, currency()} | {error, currency_code_error()}. parse_alpha_code(Currency_code) -> case string:uppercase(Currency_code) of <<"AED"/utf8>> -> {ok, {currency, <<"AED"/utf8>>, <<"784"/utf8>>, <<"United Arab Emirates Dirham"/utf8>>, <<"د.إ"/utf8>>, 2}}; <<"AFN"/utf8>> -> {ok, {currency, <<"AFN"/utf8>>, <<"971"/utf8>>, <<"Afghan Afghani"/utf8>>, <<"؋"/utf8>>, 2}}; <<"ALL"/utf8>> -> {ok, {currency, <<"ALL"/utf8>>, <<"008"/utf8>>, <<"Albanian Lek"/utf8>>, <<"L"/utf8>>, 2}}; <<"AMD"/utf8>> -> {ok, {currency, <<"AMD"/utf8>>, <<"051"/utf8>>, <<"Armenian Dram"/utf8>>, <<"֏"/utf8>>, 2}}; <<"AOA"/utf8>> -> {ok, {currency, <<"AOA"/utf8>>, <<"973"/utf8>>, <<"Angolan Kwanza"/utf8>>, <<"Kz"/utf8>>, 2}}; <<"ARS"/utf8>> -> {ok, {currency, <<"ARS"/utf8>>, <<"032"/utf8>>, <<"Argentine Peso"/utf8>>, <<"$"/utf8>>, 2}}; <<"AUD"/utf8>> -> {ok, {currency, <<"AUD"/utf8>>, <<"036"/utf8>>, <<"Australian Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"AWG"/utf8>> -> {ok, {currency, <<"AWG"/utf8>>, <<"533"/utf8>>, <<"Aruban Florin"/utf8>>, <<"ƒ"/utf8>>, 2}}; <<"AZN"/utf8>> -> {ok, {currency, <<"AZN"/utf8>>, <<"944"/utf8>>, <<"Azerbaijani Manat"/utf8>>, <<"₼"/utf8>>, 2}}; <<"BAM"/utf8>> -> {ok, {currency, <<"BAM"/utf8>>, <<"977"/utf8>>, <<"Bosnia and Herzegovina Convertible Mark"/utf8>>, <<"KM"/utf8>>, 2}}; <<"BBD"/utf8>> -> {ok, {currency, <<"BBD"/utf8>>, <<"052"/utf8>>, <<"Barbadian Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"BDT"/utf8>> -> {ok, {currency, <<"BDT"/utf8>>, <<"050"/utf8>>, <<"Bangladeshi Taka"/utf8>>, <<"৳"/utf8>>, 2}}; <<"BGN"/utf8>> -> {ok, {currency, <<"BGN"/utf8>>, <<"975"/utf8>>, <<"Bulgarian Lev"/utf8>>, <<"лв"/utf8>>, 2}}; <<"BHD"/utf8>> -> {ok, {currency, <<"BHD"/utf8>>, <<"048"/utf8>>, <<"Bahraini Dinar"/utf8>>, <<".د.ب"/utf8>>, 3}}; <<"BIF"/utf8>> -> {ok, {currency, <<"BIF"/utf8>>, <<"108"/utf8>>, <<"Burundian Franc"/utf8>>, <<"FBu"/utf8>>, 0}}; <<"BMD"/utf8>> -> {ok, {currency, <<"BMD"/utf8>>, <<"060"/utf8>>, <<"Bermudian Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"BND"/utf8>> -> {ok, {currency, <<"BND"/utf8>>, <<"096"/utf8>>, <<"Brunei Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"BOB"/utf8>> -> {ok, {currency, <<"BOB"/utf8>>, <<"068"/utf8>>, <<"Bolivian Boliviano"/utf8>>, <<"Bs"/utf8>>, 2}}; <<"BRL"/utf8>> -> {ok, {currency, <<"BRL"/utf8>>, <<"986"/utf8>>, <<"Brazilian Real"/utf8>>, <<"R$"/utf8>>, 2}}; <<"BSD"/utf8>> -> {ok, {currency, <<"BSD"/utf8>>, <<"044"/utf8>>, <<"Bahamian Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"BTN"/utf8>> -> {ok, {currency, <<"BTN"/utf8>>, <<"064"/utf8>>, <<"Bhutanese Ngultrum"/utf8>>, <<"Nu."/utf8>>, 2}}; <<"BWP"/utf8>> -> {ok, {currency, <<"BWP"/utf8>>, <<"072"/utf8>>, <<"Botswana Pula"/utf8>>, <<"P"/utf8>>, 2}}; <<"BYN"/utf8>> -> {ok, {currency, <<"BYN"/utf8>>, <<"933"/utf8>>, <<"Belarusian Ruble"/utf8>>, <<"Br"/utf8>>, 2}}; <<"BZD"/utf8>> -> {ok, {currency, <<"BZD"/utf8>>, <<"084"/utf8>>, <<"Belize Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"CAD"/utf8>> -> {ok, {currency, <<"CAD"/utf8>>, <<"124"/utf8>>, <<"Canadian Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"CDF"/utf8>> -> {ok, {currency, <<"CDF"/utf8>>, <<"976"/utf8>>, <<"Congolese Franc"/utf8>>, <<"FC"/utf8>>, 2}}; <<"CHF"/utf8>> -> {ok, {currency, <<"CHF"/utf8>>, <<"756"/utf8>>, <<"Swiss Franc"/utf8>>, <<"CHF"/utf8>>, 2}}; <<"CLP"/utf8>> -> {ok, {currency, <<"CLP"/utf8>>, <<"152"/utf8>>, <<"Chilean Peso"/utf8>>, <<"$"/utf8>>, 0}}; <<"CNY"/utf8>> -> {ok, {currency, <<"CNY"/utf8>>, <<"156"/utf8>>, <<"Chinese Yuan Renminbi"/utf8>>, <<"¥"/utf8>>, 2}}; <<"COP"/utf8>> -> {ok, {currency, <<"COP"/utf8>>, <<"170"/utf8>>, <<"Colombian Peso"/utf8>>, <<"$"/utf8>>, 2}}; <<"CRC"/utf8>> -> {ok, {currency, <<"CRC"/utf8>>, <<"188"/utf8>>, <<"Costa Rican Colon"/utf8>>, <<"₡"/utf8>>, 2}}; <<"CUP"/utf8>> -> {ok, {currency, <<"CUP"/utf8>>, <<"192"/utf8>>, <<"Cuban Peso"/utf8>>, <<"$"/utf8>>, 2}}; <<"CVE"/utf8>> -> {ok, {currency, <<"CVE"/utf8>>, <<"132"/utf8>>, <<"Cabo Verde Escudo"/utf8>>, <<"$"/utf8>>, 2}}; <<"CZK"/utf8>> -> {ok, {currency, <<"CZK"/utf8>>, <<"203"/utf8>>, <<"Czech Koruna"/utf8>>, <<"Kč"/utf8>>, 2}}; <<"DJF"/utf8>> -> {ok, {currency, <<"DJF"/utf8>>, <<"262"/utf8>>, <<"Djibouti Franc"/utf8>>, <<"Fdj"/utf8>>, 0}}; <<"DKK"/utf8>> -> {ok, {currency, <<"DKK"/utf8>>, <<"208"/utf8>>, <<"Danish Krone"/utf8>>, <<"kr"/utf8>>, 2}}; <<"DOP"/utf8>> -> {ok, {currency, <<"DOP"/utf8>>, <<"214"/utf8>>, <<"Dominican Peso"/utf8>>, <<"$"/utf8>>, 2}}; <<"DZD"/utf8>> -> {ok, {currency, <<"DZD"/utf8>>, <<"012"/utf8>>, <<"Algerian Dinar"/utf8>>, <<"دج"/utf8>>, 2}}; <<"EGP"/utf8>> -> {ok, {currency, <<"EGP"/utf8>>, <<"818"/utf8>>, <<"Egyptian Pound"/utf8>>, <<"£"/utf8>>, 2}}; <<"ERN"/utf8>> -> {ok, {currency, <<"ERN"/utf8>>, <<"232"/utf8>>, <<"Eritrean Nakfa"/utf8>>, <<"Nfk"/utf8>>, 2}}; <<"ETB"/utf8>> -> {ok, {currency, <<"ETB"/utf8>>, <<"230"/utf8>>, <<"Ethiopian Birr"/utf8>>, <<"Br"/utf8>>, 2}}; <<"EUR"/utf8>> -> {ok, {currency, <<"EUR"/utf8>>, <<"978"/utf8>>, <<"Euro"/utf8>>, <<"€"/utf8>>, 2}}; <<"FJD"/utf8>> -> {ok, {currency, <<"FJD"/utf8>>, <<"242"/utf8>>, <<"Fiji Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"FKP"/utf8>> -> {ok, {currency, <<"FKP"/utf8>>, <<"238"/utf8>>, <<"Falkland Islands Pound"/utf8>>, <<"£"/utf8>>, 2}}; <<"GBP"/utf8>> -> {ok, {currency, <<"GBP"/utf8>>, <<"826"/utf8>>, <<"Pound Sterling"/utf8>>, <<"£"/utf8>>, 2}}; <<"GEL"/utf8>> -> {ok, {currency, <<"GEL"/utf8>>, <<"981"/utf8>>, <<"Georgian Lari"/utf8>>, <<"₾"/utf8>>, 2}}; <<"GHS"/utf8>> -> {ok, {currency, <<"GHS"/utf8>>, <<"936"/utf8>>, <<"Ghana Cedi"/utf8>>, <<"₵"/utf8>>, 2}}; <<"GIP"/utf8>> -> {ok, {currency, <<"GIP"/utf8>>, <<"292"/utf8>>, <<"Gibraltar Pound"/utf8>>, <<"£"/utf8>>, 2}}; <<"GMD"/utf8>> -> {ok, {currency, <<"GMD"/utf8>>, <<"270"/utf8>>, <<"Gambian Dalasi"/utf8>>, <<"D"/utf8>>, 2}}; <<"GNF"/utf8>> -> {ok, {currency, <<"GNF"/utf8>>, <<"324"/utf8>>, <<"Guinean Franc"/utf8>>, <<"FG"/utf8>>, 0}}; <<"GTQ"/utf8>> -> {ok, {currency, <<"GTQ"/utf8>>, <<"320"/utf8>>, <<"Guatemalan Quetzal"/utf8>>, <<"Q"/utf8>>, 2}}; <<"GYD"/utf8>> -> {ok, {currency, <<"GYD"/utf8>>, <<"328"/utf8>>, <<"Guyana Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"HKD"/utf8>> -> {ok, {currency, <<"HKD"/utf8>>, <<"344"/utf8>>, <<"Hong Kong Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"HNL"/utf8>> -> {ok, {currency, <<"HNL"/utf8>>, <<"340"/utf8>>, <<"Hondurasi Lempira"/utf8>>, <<"L"/utf8>>, 2}}; <<"HRK"/utf8>> -> {ok, {currency, <<"HRK"/utf8>>, <<"191"/utf8>>, <<"Croatian Kuna"/utf8>>, <<"kn"/utf8>>, 2}}; <<"HTG"/utf8>> -> {ok, {currency, <<"HTG"/utf8>>, <<"332"/utf8>>, <<"Haitian Gourde"/utf8>>, <<"G"/utf8>>, 2}}; <<"HUF"/utf8>> -> {ok, {currency, <<"HUF"/utf8>>, <<"348"/utf8>>, <<"Hungarian Forint"/utf8>>, <<"Ft"/utf8>>, 2}}; <<"IDR"/utf8>> -> {ok, {currency, <<"IDR"/utf8>>, <<"360"/utf8>>, <<"Indian Rupiah"/utf8>>, <<"Rp"/utf8>>, 2}}; <<"ILS"/utf8>> -> {ok, {currency, <<"ILS"/utf8>>, <<"376"/utf8>>, <<"Israeli New Sheqel"/utf8>>, <<"₪"/utf8>>, 2}}; <<"INR"/utf8>> -> {ok, {currency, <<"INR"/utf8>>, <<"356"/utf8>>, <<"Indian Rupee"/utf8>>, <<"₹"/utf8>>, 2}}; <<"IQD"/utf8>> -> {ok, {currency, <<"IQD"/utf8>>, <<"368"/utf8>>, <<"Iraqi Dinar"/utf8>>, <<"ع.د"/utf8>>, 3}}; <<"IRR"/utf8>> -> {ok, {currency, <<"IRR"/utf8>>, <<"364"/utf8>>, <<"Iranian Rial"/utf8>>, <<"﷼"/utf8>>, 2}}; <<"ISK"/utf8>> -> {ok, {currency, <<"ISK"/utf8>>, <<"352"/utf8>>, <<"Icelandic Króna"/utf8>>, <<"kr"/utf8>>, 0}}; <<"JMD"/utf8>> -> {ok, {currency, <<"JMD"/utf8>>, <<"388"/utf8>>, <<"Jamaican Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"JPY"/utf8>> -> {ok, {currency, <<"JPY"/utf8>>, <<"392"/utf8>>, <<"Japanese Yen"/utf8>>, <<"¥"/utf8>>, 0}}; <<"JOD"/utf8>> -> {ok, {currency, <<"JOD"/utf8>>, <<"400"/utf8>>, <<"Jordanian Dinar"/utf8>>, <<"د.ا"/utf8>>, 3}}; <<"KES"/utf8>> -> {ok, {currency, <<"KES"/utf8>>, <<"404"/utf8>>, <<"Kenyan Shilling"/utf8>>, <<"Sh"/utf8>>, 2}}; <<"KGS"/utf8>> -> {ok, {currency, <<"KGS"/utf8>>, <<"417"/utf8>>, <<"Kyrgyzstani Som"/utf8>>, <<"лв"/utf8>>, 2}}; <<"KHR"/utf8>> -> {ok, {currency, <<"KHR"/utf8>>, <<"116"/utf8>>, <<"Cambodian Riel"/utf8>>, <<"៛"/utf8>>, 2}}; <<"KMF"/utf8>> -> {ok, {currency, <<"KMF"/utf8>>, <<"174"/utf8>>, <<"Comorian Franc"/utf8>>, <<"CF"/utf8>>, 0}}; <<"KPW"/utf8>> -> {ok, {currency, <<"KPW"/utf8>>, <<"408"/utf8>>, <<"North Korean Won"/utf8>>, <<"₩"/utf8>>, 2}}; <<"KRW"/utf8>> -> {ok, {currency, <<"KRW"/utf8>>, <<"410"/utf8>>, <<"South Korean Won"/utf8>>, <<"₩"/utf8>>, 0}}; <<"KWD"/utf8>> -> {ok, {currency, <<"KWD"/utf8>>, <<"414"/utf8>>, <<"Kuwaiti Dinar"/utf8>>, <<"د.ك"/utf8>>, 3}}; <<"KYD"/utf8>> -> {ok, {currency, <<"KYD"/utf8>>, <<"136"/utf8>>, <<"Cayman Islands Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"KZT"/utf8>> -> {ok, {currency, <<"KZT"/utf8>>, <<"398"/utf8>>, <<"Kazakhstani Tenge"/utf8>>, <<"₸"/utf8>>, 2}}; <<"LAK"/utf8>> -> {ok, {currency, <<"LAK"/utf8>>, <<"418"/utf8>>, <<"Lao Kip"/utf8>>, <<"₭"/utf8>>, 2}}; <<"LBP"/utf8>> -> {ok, {currency, <<"LBP"/utf8>>, <<"422"/utf8>>, <<"Lebanese Pound"/utf8>>, <<"ل.ل"/utf8>>, 2}}; <<"LKR"/utf8>> -> {ok, {currency, <<"LKR"/utf8>>, <<"144"/utf8>>, <<"Sri Lankan Rupee"/utf8>>, <<"Rs"/utf8>>, 2}}; <<"LRD"/utf8>> -> {ok, {currency, <<"LRD"/utf8>>, <<"430"/utf8>>, <<"Liberian Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"LSL"/utf8>> -> {ok, {currency, <<"LSL"/utf8>>, <<"426"/utf8>>, <<"Loti"/utf8>>, <<"L"/utf8>>, 2}}; <<"LYD"/utf8>> -> {ok, {currency, <<"LYD"/utf8>>, <<"434"/utf8>>, <<"Libyan Dinar"/utf8>>, <<"ل.د"/utf8>>, 3}}; <<"MAD"/utf8>> -> {ok, {currency, <<"MAD"/utf8>>, <<"504"/utf8>>, <<"Moroccan Dirham"/utf8>>, <<"د.م."/utf8>>, 2}}; <<"MDL"/utf8>> -> {ok, {currency, <<"MDL"/utf8>>, <<"498"/utf8>>, <<"Moldovan Leu"/utf8>>, <<"L"/utf8>>, 2}}; <<"MGA"/utf8>> -> {ok, {currency, <<"MGA"/utf8>>, <<"969"/utf8>>, <<"Malagasy Ariary"/utf8>>, <<"Ar"/utf8>>, 2}}; <<"MKD"/utf8>> -> {ok, {currency, <<"MKD"/utf8>>, <<"807"/utf8>>, <<"Macedonian Denar"/utf8>>, <<"ден"/utf8>>, 2}}; <<"MMK"/utf8>> -> {ok, {currency, <<"MMK"/utf8>>, <<"104"/utf8>>, <<"Myanmar Kyat"/utf8>>, <<"K"/utf8>>, 2}}; <<"MNT"/utf8>> -> {ok, {currency, <<"MNT"/utf8>>, <<"496"/utf8>>, <<"Mongolian Tögrög"/utf8>>, <<"₮"/utf8>>, 2}}; <<"MOP"/utf8>> -> {ok, {currency, <<"MOP"/utf8>>, <<"446"/utf8>>, <<"Macanese Pataca"/utf8>>, <<"P"/utf8>>, 2}}; <<"MRU"/utf8>> -> {ok, {currency, <<"MRU"/utf8>>, <<"929"/utf8>>, <<"Mauritanian Ouguiya"/utf8>>, <<"UM"/utf8>>, 2}}; <<"MUR"/utf8>> -> {ok, {currency, <<"MUR"/utf8>>, <<"480"/utf8>>, <<"Mauritian Rupee"/utf8>>, <<"₨"/utf8>>, 2}}; <<"MVR"/utf8>> -> {ok, {currency, <<"MVR"/utf8>>, <<"462"/utf8>>, <<"Maldivian Rufiyaa"/utf8>>, <<".ރ"/utf8>>, 2}}; <<"MWK"/utf8>> -> {ok, {currency, <<"MWK"/utf8>>, <<"454"/utf8>>, <<"Malawian Kwacha"/utf8>>, <<"MK"/utf8>>, 2}}; <<"MXN"/utf8>> -> {ok, {currency, <<"MXN"/utf8>>, <<"484"/utf8>>, <<"Mexican Peso"/utf8>>, <<"$"/utf8>>, 2}}; <<"MYR"/utf8>> -> {ok, {currency, <<"MYR"/utf8>>, <<"458"/utf8>>, <<"Malaysian Ringgit"/utf8>>, <<"RM"/utf8>>, 2}}; <<"MZN"/utf8>> -> {ok, {currency, <<"MZN"/utf8>>, <<"943"/utf8>>, <<"Mozambican Metical"/utf8>>, <<"MT"/utf8>>, 2}}; <<"NAD"/utf8>> -> {ok, {currency, <<"NAD"/utf8>>, <<"516"/utf8>>, <<"Namibian Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"NPR"/utf8>> -> {ok, {currency, <<"NPR"/utf8>>, <<"524"/utf8>>, <<"Nepalese Rupee"/utf8>>, <<"₨"/utf8>>, 2}}; <<"NGN"/utf8>> -> {ok, {currency, <<"NGN"/utf8>>, <<"566"/utf8>>, <<"Nigerian Naira"/utf8>>, <<"₦"/utf8>>, 2}}; <<"NIO"/utf8>> -> {ok, {currency, <<"NIO"/utf8>>, <<"558"/utf8>>, <<"Nicaraguan Córdoba"/utf8>>, <<"C$"/utf8>>, 2}}; <<"NOK"/utf8>> -> {ok, {currency, <<"NOK"/utf8>>, <<"578"/utf8>>, <<"Norwegian Krone"/utf8>>, <<"kr"/utf8>>, 2}}; <<"NZD"/utf8>> -> {ok, {currency, <<"NZD"/utf8>>, <<"554"/utf8>>, <<"New Zealand Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"OMR"/utf8>> -> {ok, {currency, <<"OMR"/utf8>>, <<"512"/utf8>>, <<"Omani Rial"/utf8>>, <<"ر.ع."/utf8>>, 3}}; <<"PKR"/utf8>> -> {ok, {currency, <<"PKR"/utf8>>, <<"586"/utf8>>, <<"Pakistani Rupee"/utf8>>, <<"₨"/utf8>>, 2}}; <<"PAB"/utf8>> -> {ok, {currency, <<"PAB"/utf8>>, <<"590"/utf8>>, <<"Panamanian Balboa"/utf8>>, <<"B/."/utf8>>, 2}}; <<"PGK"/utf8>> -> {ok, {currency, <<"PGK"/utf8>>, <<"598"/utf8>>, <<"Papua New Guinean Kina"/utf8>>, <<"K"/utf8>>, 2}}; <<"PYG"/utf8>> -> {ok, {currency, <<"PYG"/utf8>>, <<"600"/utf8>>, <<"Paraguayan Guaraní"/utf8>>, <<"₲"/utf8>>, 0}}; <<"PEN"/utf8>> -> {ok, {currency, <<"PEN"/utf8>>, <<"604"/utf8>>, <<"Peruvian Sol"/utf8>>, <<"S/"/utf8>>, 2}}; <<"PHP"/utf8>> -> {ok, {currency, <<"PHP"/utf8>>, <<"608"/utf8>>, <<"Philippine Peso"/utf8>>, <<"₱"/utf8>>, 2}}; <<"PLN"/utf8>> -> {ok, {currency, <<"PLN"/utf8>>, <<"985"/utf8>>, <<"Polish Złoty"/utf8>>, <<"zł"/utf8>>, 2}}; <<"QAR"/utf8>> -> {ok, {currency, <<"QAR"/utf8>>, <<"634"/utf8>>, <<"Qatari Riyal"/utf8>>, <<"ر.ق"/utf8>>, 2}}; <<"RON"/utf8>> -> {ok, {currency, <<"RON"/utf8>>, <<"946"/utf8>>, <<"Romanian Leu"/utf8>>, <<"lei"/utf8>>, 2}}; <<"RSD"/utf8>> -> {ok, {currency, <<"RSD"/utf8>>, <<"941"/utf8>>, <<"Serbian Dinar"/utf8>>, <<"дин"/utf8>>, 2}}; <<"RUB"/utf8>> -> {ok, {currency, <<"RUB"/utf8>>, <<"643"/utf8>>, <<"Russian Ruble"/utf8>>, <<"₽"/utf8>>, 2}}; <<"RWF"/utf8>> -> {ok, {currency, <<"RWF"/utf8>>, <<"646"/utf8>>, <<"Rwandan Franc"/utf8>>, <<"FRw"/utf8>>, 0}}; <<"SHP"/utf8>> -> {ok, {currency, <<"SHP"/utf8>>, <<"654"/utf8>>, <<"Saint Helena Pound"/utf8>>, <<"£"/utf8>>, 2}}; <<"SAR"/utf8>> -> {ok, {currency, <<"SAR"/utf8>>, <<"682"/utf8>>, <<"Saudi Riyal"/utf8>>, <<"ر.س"/utf8>>, 2}}; <<"SBD"/utf8>> -> {ok, {currency, <<"SBD"/utf8>>, <<"090"/utf8>>, <<"Solomon Islands Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"SCR"/utf8>> -> {ok, {currency, <<"SCR"/utf8>>, <<"690"/utf8>>, <<"Seychellois Rupee"/utf8>>, <<"₨"/utf8>>, 2}}; <<"SLE"/utf8>> -> {ok, {currency, <<"SLE"/utf8>>, <<"925"/utf8>>, <<"Sierra Leonean Leone"/utf8>>, <<"Le"/utf8>>, 2}}; <<"SOS"/utf8>> -> {ok, {currency, <<"SOS"/utf8>>, <<"706"/utf8>>, <<"Somali Shilling"/utf8>>, <<"Sh"/utf8>>, 2}}; <<"SSP"/utf8>> -> {ok, {currency, <<"SSP"/utf8>>, <<"728"/utf8>>, <<"South Sudanese Pound"/utf8>>, <<"£"/utf8>>, 2}}; <<"SDG"/utf8>> -> {ok, {currency, <<"SDG"/utf8>>, <<"938"/utf8>>, <<"Sudanese Pound"/utf8>>, <<"ج.س."/utf8>>, 2}}; <<"SRD"/utf8>> -> {ok, {currency, <<"SRD"/utf8>>, <<"968"/utf8>>, <<"Surinamese Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"SEK"/utf8>> -> {ok, {currency, <<"SEK"/utf8>>, <<"752"/utf8>>, <<"Swedish Krona"/utf8>>, <<"kr"/utf8>>, 2}}; <<"SGD"/utf8>> -> {ok, {currency, <<"SGD"/utf8>>, <<"702"/utf8>>, <<"Singapore Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"STN"/utf8>> -> {ok, {currency, <<"STN"/utf8>>, <<"930"/utf8>>, <<"São Tomé and Príncipe Dobra"/utf8>>, <<"Db"/utf8>>, 2}}; <<"SVC"/utf8>> -> {ok, {currency, <<"SVC"/utf8>>, <<"222"/utf8>>, <<"El Salvador Colon"/utf8>>, <<"₡"/utf8>>, 2}}; <<"SYP"/utf8>> -> {ok, {currency, <<"SYP"/utf8>>, <<"760"/utf8>>, <<"Syrian Pound"/utf8>>, <<"£"/utf8>>, 2}}; <<"SZL"/utf8>> -> {ok, {currency, <<"SZL"/utf8>>, <<"748"/utf8>>, <<"Swazi Lilangeni"/utf8>>, <<"L"/utf8>>, 2}}; <<"THB"/utf8>> -> {ok, {currency, <<"THB"/utf8>>, <<"764"/utf8>>, <<"Thai Baht"/utf8>>, <<"฿"/utf8>>, 2}}; <<"TJS"/utf8>> -> {ok, {currency, <<"TJS"/utf8>>, <<"972"/utf8>>, <<"Tajikistani Somoni"/utf8>>, <<"ЅМ"/utf8>>, 2}}; <<"TMT"/utf8>> -> {ok, {currency, <<"TMT"/utf8>>, <<"934"/utf8>>, <<"Turkmenistani New Manat"/utf8>>, <<"m"/utf8>>, 2}}; <<"TZS"/utf8>> -> {ok, {currency, <<"TZS"/utf8>>, <<"834"/utf8>>, <<"Tanzanian Shilling"/utf8>>, <<"Sh"/utf8>>, 2}}; <<"TOP"/utf8>> -> {ok, {currency, <<"TOP"/utf8>>, <<"776"/utf8>>, <<"Tongan Paʻanga"/utf8>>, <<"T$"/utf8>>, 2}}; <<"TRY"/utf8>> -> {ok, {currency, <<"TRY"/utf8>>, <<"949"/utf8>>, <<"Turkish Lira"/utf8>>, <<"₺"/utf8>>, 2}}; <<"TTD"/utf8>> -> {ok, {currency, <<"TTD"/utf8>>, <<"780"/utf8>>, <<"Trinidad and Tobago Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"TND"/utf8>> -> {ok, {currency, <<"TND"/utf8>>, <<"788"/utf8>>, <<"Tunisian Dinar"/utf8>>, <<"د.ت"/utf8>>, 3}}; <<"TWD"/utf8>> -> {ok, {currency, <<"TWD"/utf8>>, <<"901"/utf8>>, <<"New Taiwan Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"UAH"/utf8>> -> {ok, {currency, <<"UAH"/utf8>>, <<"980"/utf8>>, <<"Ukrainian Hryvnia"/utf8>>, <<"₴"/utf8>>, 2}}; <<"UGX"/utf8>> -> {ok, {currency, <<"UGX"/utf8>>, <<"800"/utf8>>, <<"Ugandan Shilling"/utf8>>, <<"Sh"/utf8>>, 0}}; <<"USD"/utf8>> -> {ok, {currency, <<"USD"/utf8>>, <<"840"/utf8>>, <<"United States Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"UYU"/utf8>> -> {ok, {currency, <<"UYU"/utf8>>, <<"858"/utf8>>, <<"Uruguayan Peso"/utf8>>, <<"$U"/utf8>>, 2}}; <<"UYW"/utf8>> -> {ok, {currency, <<"UYW"/utf8>>, <<"927"/utf8>>, <<"Unidad Previsional"/utf8>>, <<"UP"/utf8>>, 4}}; <<"UZS"/utf8>> -> {ok, {currency, <<"UZS"/utf8>>, <<"860"/utf8>>, <<"Uzbekistani So'm"/utf8>>, <<"лв"/utf8>>, 2}}; <<"VUV"/utf8>> -> {ok, {currency, <<"VUV"/utf8>>, <<"548"/utf8>>, <<"Vanuatu Vatu"/utf8>>, <<"VT"/utf8>>, 0}}; <<"VED"/utf8>> -> {ok, {currency, <<"VED"/utf8>>, <<"926"/utf8>>, <<"Venezuelan Bolívar"/utf8>>, <<"Bs."/utf8>>, 2}}; <<"VES"/utf8>> -> {ok, {currency, <<"VES"/utf8>>, <<"928"/utf8>>, <<"Venezuelan Bolívar"/utf8>>, <<"Bs."/utf8>>, 2}}; <<"VND"/utf8>> -> {ok, {currency, <<"VND"/utf8>>, <<"704"/utf8>>, <<"Vietnamese Đồng"/utf8>>, <<"₫"/utf8>>, 0}}; <<"WST"/utf8>> -> {ok, {currency, <<"WST"/utf8>>, <<"882"/utf8>>, <<"Samoan Tālā"/utf8>>, <<"T"/utf8>>, 2}}; <<"XAF"/utf8>> -> {ok, {currency, <<"XAF"/utf8>>, <<"950"/utf8>>, <<"Central African CFA Franc"/utf8>>, <<"F.CFA"/utf8>>, 0}}; <<"XAD"/utf8>> -> {ok, {currency, <<"XAD"/utf8>>, <<"396"/utf8>>, <<"Arab Accounting Dinar"/utf8>>, <<"AAD"/utf8>>, 2}}; <<"XCD"/utf8>> -> {ok, {currency, <<"XCD"/utf8>>, <<"951"/utf8>>, <<"East Caribbean Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"XCG"/utf8>> -> {ok, {currency, <<"XCG"/utf8>>, <<"532"/utf8>>, <<"Caribbean Guilder"/utf8>>, <<"Cg"/utf8>>, 2}}; <<"XOF"/utf8>> -> {ok, {currency, <<"XOF"/utf8>>, <<"952"/utf8>>, <<"West African CFA Franc"/utf8>>, <<"F.CFA"/utf8>>, 0}}; <<"XPF"/utf8>> -> {ok, {currency, <<"XPF"/utf8>>, <<"953"/utf8>>, <<"CFP Franc"/utf8>>, <<"₣"/utf8>>, 0}}; <<"YER"/utf8>> -> {ok, {currency, <<"YER"/utf8>>, <<"886"/utf8>>, <<"Yemeni Rial"/utf8>>, <<"﷼"/utf8>>, 2}}; <<"ZAR"/utf8>> -> {ok, {currency, <<"ZAR"/utf8>>, <<"710"/utf8>>, <<"South African Rand"/utf8>>, <<"R"/utf8>>, 2}}; <<"ZMW"/utf8>> -> {ok, {currency, <<"ZMW"/utf8>>, <<"967"/utf8>>, <<"Zambian Kwacha"/utf8>>, <<"ZK"/utf8>>, 2}}; <<"ZWG"/utf8>> -> {ok, {currency, <<"ZWG"/utf8>>, <<"924"/utf8>>, <<"Zimbabwean Gold"/utf8>>, <<"ZiG"/utf8>>, 2}}; _ -> {error, unrecognized_code} end. -file("src/dime.gleam", 563). ?DOC(" Try and retrieve a currency by it's 3 character alphabetic code.\n"). -spec from_alpha_code(binary()) -> {ok, currency()} | {error, currency_code_error()}. from_alpha_code(Currency_code) -> _pipe = validate_length(Currency_code), gleam@result:'try'(_pipe, fun parse_alpha_code/1). -file("src/dime.gleam", 746). -spec parse_numeric_code(binary()) -> {ok, currency()} | {error, currency_code_error()}. parse_numeric_code(Currency_code) -> case Currency_code of <<"784"/utf8>> -> {ok, {currency, <<"AED"/utf8>>, <<"784"/utf8>>, <<"United Arab Emirates Dirham"/utf8>>, <<"د.إ"/utf8>>, 2}}; <<"971"/utf8>> -> {ok, {currency, <<"AFN"/utf8>>, <<"971"/utf8>>, <<"Afghan Afghani"/utf8>>, <<"؋"/utf8>>, 2}}; <<"008"/utf8>> -> {ok, {currency, <<"ALL"/utf8>>, <<"008"/utf8>>, <<"Albanian Lek"/utf8>>, <<"L"/utf8>>, 2}}; <<"051"/utf8>> -> {ok, {currency, <<"AMD"/utf8>>, <<"051"/utf8>>, <<"Armenian Dram"/utf8>>, <<"֏"/utf8>>, 2}}; <<"973"/utf8>> -> {ok, {currency, <<"AOA"/utf8>>, <<"973"/utf8>>, <<"Angolan Kwanza"/utf8>>, <<"Kz"/utf8>>, 2}}; <<"032"/utf8>> -> {ok, {currency, <<"ARS"/utf8>>, <<"032"/utf8>>, <<"Argentine Peso"/utf8>>, <<"$"/utf8>>, 2}}; <<"036"/utf8>> -> {ok, {currency, <<"AUD"/utf8>>, <<"036"/utf8>>, <<"Australian Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"533"/utf8>> -> {ok, {currency, <<"AWG"/utf8>>, <<"533"/utf8>>, <<"Aruban Florin"/utf8>>, <<"ƒ"/utf8>>, 2}}; <<"944"/utf8>> -> {ok, {currency, <<"AZN"/utf8>>, <<"944"/utf8>>, <<"Azerbaijani Manat"/utf8>>, <<"₼"/utf8>>, 2}}; <<"977"/utf8>> -> {ok, {currency, <<"BAM"/utf8>>, <<"977"/utf8>>, <<"Bosnia and Herzegovina Convertible Mark"/utf8>>, <<"KM"/utf8>>, 2}}; <<"052"/utf8>> -> {ok, {currency, <<"BBD"/utf8>>, <<"052"/utf8>>, <<"Barbadian Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"050"/utf8>> -> {ok, {currency, <<"BDT"/utf8>>, <<"050"/utf8>>, <<"Bangladeshi Taka"/utf8>>, <<"৳"/utf8>>, 2}}; <<"975"/utf8>> -> {ok, {currency, <<"BGN"/utf8>>, <<"975"/utf8>>, <<"Bulgarian Lev"/utf8>>, <<"лв"/utf8>>, 2}}; <<"048"/utf8>> -> {ok, {currency, <<"BHD"/utf8>>, <<"048"/utf8>>, <<"Bahraini Dinar"/utf8>>, <<".د.ب"/utf8>>, 3}}; <<"108"/utf8>> -> {ok, {currency, <<"BIF"/utf8>>, <<"108"/utf8>>, <<"Burundian Franc"/utf8>>, <<"FBu"/utf8>>, 0}}; <<"060"/utf8>> -> {ok, {currency, <<"BMD"/utf8>>, <<"060"/utf8>>, <<"Bermudian Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"096"/utf8>> -> {ok, {currency, <<"BND"/utf8>>, <<"096"/utf8>>, <<"Brunei Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"068"/utf8>> -> {ok, {currency, <<"BOB"/utf8>>, <<"068"/utf8>>, <<"Bolivian Boliviano"/utf8>>, <<"Bs"/utf8>>, 2}}; <<"986"/utf8>> -> {ok, {currency, <<"BRL"/utf8>>, <<"986"/utf8>>, <<"Brazilian Real"/utf8>>, <<"R$"/utf8>>, 2}}; <<"044"/utf8>> -> {ok, {currency, <<"BSD"/utf8>>, <<"044"/utf8>>, <<"Bahamian Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"064"/utf8>> -> {ok, {currency, <<"BTN"/utf8>>, <<"064"/utf8>>, <<"Bhutanese Ngultrum"/utf8>>, <<"Nu."/utf8>>, 2}}; <<"072"/utf8>> -> {ok, {currency, <<"BWP"/utf8>>, <<"072"/utf8>>, <<"Botswana Pula"/utf8>>, <<"P"/utf8>>, 2}}; <<"933"/utf8>> -> {ok, {currency, <<"BYN"/utf8>>, <<"933"/utf8>>, <<"Belarusian Ruble"/utf8>>, <<"Br"/utf8>>, 2}}; <<"084"/utf8>> -> {ok, {currency, <<"BZD"/utf8>>, <<"084"/utf8>>, <<"Belize Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"124"/utf8>> -> {ok, {currency, <<"CAD"/utf8>>, <<"124"/utf8>>, <<"Canadian Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"976"/utf8>> -> {ok, {currency, <<"CDF"/utf8>>, <<"976"/utf8>>, <<"Congolese Franc"/utf8>>, <<"FC"/utf8>>, 2}}; <<"756"/utf8>> -> {ok, {currency, <<"CHF"/utf8>>, <<"756"/utf8>>, <<"Swiss Franc"/utf8>>, <<"CHF"/utf8>>, 2}}; <<"152"/utf8>> -> {ok, {currency, <<"CLP"/utf8>>, <<"152"/utf8>>, <<"Chilean Peso"/utf8>>, <<"$"/utf8>>, 0}}; <<"156"/utf8>> -> {ok, {currency, <<"CNY"/utf8>>, <<"156"/utf8>>, <<"Chinese Yuan Renminbi"/utf8>>, <<"¥"/utf8>>, 2}}; <<"170"/utf8>> -> {ok, {currency, <<"COP"/utf8>>, <<"170"/utf8>>, <<"Colombian Peso"/utf8>>, <<"$"/utf8>>, 2}}; <<"188"/utf8>> -> {ok, {currency, <<"CRC"/utf8>>, <<"188"/utf8>>, <<"Costa Rican Colon"/utf8>>, <<"₡"/utf8>>, 2}}; <<"192"/utf8>> -> {ok, {currency, <<"CUP"/utf8>>, <<"192"/utf8>>, <<"Cuban Peso"/utf8>>, <<"$"/utf8>>, 2}}; <<"132"/utf8>> -> {ok, {currency, <<"CVE"/utf8>>, <<"132"/utf8>>, <<"Cabo Verde Escudo"/utf8>>, <<"$"/utf8>>, 2}}; <<"203"/utf8>> -> {ok, {currency, <<"CZK"/utf8>>, <<"203"/utf8>>, <<"Czech Koruna"/utf8>>, <<"Kč"/utf8>>, 2}}; <<"262"/utf8>> -> {ok, {currency, <<"DJF"/utf8>>, <<"262"/utf8>>, <<"Djibouti Franc"/utf8>>, <<"Fdj"/utf8>>, 0}}; <<"208"/utf8>> -> {ok, {currency, <<"DKK"/utf8>>, <<"208"/utf8>>, <<"Danish Krone"/utf8>>, <<"kr"/utf8>>, 2}}; <<"214"/utf8>> -> {ok, {currency, <<"DOP"/utf8>>, <<"214"/utf8>>, <<"Dominican Peso"/utf8>>, <<"$"/utf8>>, 2}}; <<"012"/utf8>> -> {ok, {currency, <<"DZD"/utf8>>, <<"012"/utf8>>, <<"Algerian Dinar"/utf8>>, <<"دج"/utf8>>, 2}}; <<"818"/utf8>> -> {ok, {currency, <<"EGP"/utf8>>, <<"818"/utf8>>, <<"Egyptian Pound"/utf8>>, <<"£"/utf8>>, 2}}; <<"232"/utf8>> -> {ok, {currency, <<"ERN"/utf8>>, <<"232"/utf8>>, <<"Eritrean Nakfa"/utf8>>, <<"Nfk"/utf8>>, 2}}; <<"230"/utf8>> -> {ok, {currency, <<"ETB"/utf8>>, <<"230"/utf8>>, <<"Ethiopian Birr"/utf8>>, <<"Br"/utf8>>, 2}}; <<"978"/utf8>> -> {ok, {currency, <<"EUR"/utf8>>, <<"978"/utf8>>, <<"Euro"/utf8>>, <<"€"/utf8>>, 2}}; <<"242"/utf8>> -> {ok, {currency, <<"FJD"/utf8>>, <<"242"/utf8>>, <<"Fiji Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"238"/utf8>> -> {ok, {currency, <<"FKP"/utf8>>, <<"238"/utf8>>, <<"Falkland Islands Pound"/utf8>>, <<"£"/utf8>>, 2}}; <<"826"/utf8>> -> {ok, {currency, <<"GBP"/utf8>>, <<"826"/utf8>>, <<"Pound Sterling"/utf8>>, <<"£"/utf8>>, 2}}; <<"981"/utf8>> -> {ok, {currency, <<"GEL"/utf8>>, <<"981"/utf8>>, <<"Georgian Lari"/utf8>>, <<"₾"/utf8>>, 2}}; <<"936"/utf8>> -> {ok, {currency, <<"GHS"/utf8>>, <<"936"/utf8>>, <<"Ghana Cedi"/utf8>>, <<"₵"/utf8>>, 2}}; <<"292"/utf8>> -> {ok, {currency, <<"GIP"/utf8>>, <<"292"/utf8>>, <<"Gibraltar Pound"/utf8>>, <<"£"/utf8>>, 2}}; <<"270"/utf8>> -> {ok, {currency, <<"GMD"/utf8>>, <<"270"/utf8>>, <<"Gambian Dalasi"/utf8>>, <<"D"/utf8>>, 2}}; <<"324"/utf8>> -> {ok, {currency, <<"GNF"/utf8>>, <<"324"/utf8>>, <<"Guinean Franc"/utf8>>, <<"FG"/utf8>>, 0}}; <<"320"/utf8>> -> {ok, {currency, <<"GTQ"/utf8>>, <<"320"/utf8>>, <<"Guatemalan Quetzal"/utf8>>, <<"Q"/utf8>>, 2}}; <<"328"/utf8>> -> {ok, {currency, <<"GYD"/utf8>>, <<"328"/utf8>>, <<"Guyana Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"344"/utf8>> -> {ok, {currency, <<"HKD"/utf8>>, <<"344"/utf8>>, <<"Hong Kong Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"340"/utf8>> -> {ok, {currency, <<"HNL"/utf8>>, <<"340"/utf8>>, <<"Hondurasi Lempira"/utf8>>, <<"L"/utf8>>, 2}}; <<"191"/utf8>> -> {ok, {currency, <<"HRK"/utf8>>, <<"191"/utf8>>, <<"Croatian Kuna"/utf8>>, <<"kn"/utf8>>, 2}}; <<"332"/utf8>> -> {ok, {currency, <<"HTG"/utf8>>, <<"332"/utf8>>, <<"Haitian Gourde"/utf8>>, <<"G"/utf8>>, 2}}; <<"348"/utf8>> -> {ok, {currency, <<"HUF"/utf8>>, <<"348"/utf8>>, <<"Hungarian Forint"/utf8>>, <<"Ft"/utf8>>, 2}}; <<"360"/utf8>> -> {ok, {currency, <<"IDR"/utf8>>, <<"360"/utf8>>, <<"Indian Rupiah"/utf8>>, <<"Rp"/utf8>>, 2}}; <<"376"/utf8>> -> {ok, {currency, <<"ILS"/utf8>>, <<"376"/utf8>>, <<"Israeli New Sheqel"/utf8>>, <<"₪"/utf8>>, 2}}; <<"356"/utf8>> -> {ok, {currency, <<"INR"/utf8>>, <<"356"/utf8>>, <<"Indian Rupee"/utf8>>, <<"₹"/utf8>>, 2}}; <<"368"/utf8>> -> {ok, {currency, <<"IQD"/utf8>>, <<"368"/utf8>>, <<"Iraqi Dinar"/utf8>>, <<"ع.د"/utf8>>, 3}}; <<"364"/utf8>> -> {ok, {currency, <<"IRR"/utf8>>, <<"364"/utf8>>, <<"Iranian Rial"/utf8>>, <<"﷼"/utf8>>, 2}}; <<"352"/utf8>> -> {ok, {currency, <<"ISK"/utf8>>, <<"352"/utf8>>, <<"Icelandic Króna"/utf8>>, <<"kr"/utf8>>, 0}}; <<"388"/utf8>> -> {ok, {currency, <<"JMD"/utf8>>, <<"388"/utf8>>, <<"Jamaican Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"392"/utf8>> -> {ok, {currency, <<"JPY"/utf8>>, <<"392"/utf8>>, <<"Japanese Yen"/utf8>>, <<"¥"/utf8>>, 0}}; <<"400"/utf8>> -> {ok, {currency, <<"JOD"/utf8>>, <<"400"/utf8>>, <<"Jordanian Dinar"/utf8>>, <<"د.ا"/utf8>>, 3}}; <<"404"/utf8>> -> {ok, {currency, <<"KES"/utf8>>, <<"404"/utf8>>, <<"Kenyan Shilling"/utf8>>, <<"Sh"/utf8>>, 2}}; <<"417"/utf8>> -> {ok, {currency, <<"KGS"/utf8>>, <<"417"/utf8>>, <<"Kyrgyzstani Som"/utf8>>, <<"лв"/utf8>>, 2}}; <<"116"/utf8>> -> {ok, {currency, <<"KHR"/utf8>>, <<"116"/utf8>>, <<"Cambodian Riel"/utf8>>, <<"៛"/utf8>>, 2}}; <<"174"/utf8>> -> {ok, {currency, <<"KMF"/utf8>>, <<"174"/utf8>>, <<"Comorian Franc"/utf8>>, <<"CF"/utf8>>, 0}}; <<"408"/utf8>> -> {ok, {currency, <<"KPW"/utf8>>, <<"408"/utf8>>, <<"North Korean Won"/utf8>>, <<"₩"/utf8>>, 2}}; <<"410"/utf8>> -> {ok, {currency, <<"KRW"/utf8>>, <<"410"/utf8>>, <<"South Korean Won"/utf8>>, <<"₩"/utf8>>, 0}}; <<"414"/utf8>> -> {ok, {currency, <<"KWD"/utf8>>, <<"414"/utf8>>, <<"Kuwaiti Dinar"/utf8>>, <<"د.ك"/utf8>>, 3}}; <<"136"/utf8>> -> {ok, {currency, <<"KYD"/utf8>>, <<"136"/utf8>>, <<"Cayman Islands Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"398"/utf8>> -> {ok, {currency, <<"KZT"/utf8>>, <<"398"/utf8>>, <<"Kazakhstani Tenge"/utf8>>, <<"₸"/utf8>>, 2}}; <<"418"/utf8>> -> {ok, {currency, <<"LAK"/utf8>>, <<"418"/utf8>>, <<"Lao Kip"/utf8>>, <<"₭"/utf8>>, 2}}; <<"422"/utf8>> -> {ok, {currency, <<"LBP"/utf8>>, <<"422"/utf8>>, <<"Lebanese Pound"/utf8>>, <<"ل.ل"/utf8>>, 2}}; <<"144"/utf8>> -> {ok, {currency, <<"LKR"/utf8>>, <<"144"/utf8>>, <<"Sri Lankan Rupee"/utf8>>, <<"Rs"/utf8>>, 2}}; <<"430"/utf8>> -> {ok, {currency, <<"LRD"/utf8>>, <<"430"/utf8>>, <<"Liberian Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"426"/utf8>> -> {ok, {currency, <<"LSL"/utf8>>, <<"426"/utf8>>, <<"Loti"/utf8>>, <<"L"/utf8>>, 2}}; <<"434"/utf8>> -> {ok, {currency, <<"LYD"/utf8>>, <<"434"/utf8>>, <<"Libyan Dinar"/utf8>>, <<"ل.د"/utf8>>, 3}}; <<"504"/utf8>> -> {ok, {currency, <<"MAD"/utf8>>, <<"504"/utf8>>, <<"Moroccan Dirham"/utf8>>, <<"د.م."/utf8>>, 2}}; <<"498"/utf8>> -> {ok, {currency, <<"MDL"/utf8>>, <<"498"/utf8>>, <<"Moldovan Leu"/utf8>>, <<"L"/utf8>>, 2}}; <<"969"/utf8>> -> {ok, {currency, <<"MGA"/utf8>>, <<"969"/utf8>>, <<"Malagasy Ariary"/utf8>>, <<"Ar"/utf8>>, 2}}; <<"807"/utf8>> -> {ok, {currency, <<"MKD"/utf8>>, <<"807"/utf8>>, <<"Macedonian Denar"/utf8>>, <<"ден"/utf8>>, 2}}; <<"104"/utf8>> -> {ok, {currency, <<"MMK"/utf8>>, <<"104"/utf8>>, <<"Myanmar Kyat"/utf8>>, <<"K"/utf8>>, 2}}; <<"496"/utf8>> -> {ok, {currency, <<"MNT"/utf8>>, <<"496"/utf8>>, <<"Mongolian Tögrög"/utf8>>, <<"₮"/utf8>>, 2}}; <<"446"/utf8>> -> {ok, {currency, <<"MOP"/utf8>>, <<"446"/utf8>>, <<"Macanese Pataca"/utf8>>, <<"P"/utf8>>, 2}}; <<"929"/utf8>> -> {ok, {currency, <<"MRU"/utf8>>, <<"929"/utf8>>, <<"Mauritanian Ouguiya"/utf8>>, <<"UM"/utf8>>, 2}}; <<"480"/utf8>> -> {ok, {currency, <<"MUR"/utf8>>, <<"480"/utf8>>, <<"Mauritian Rupee"/utf8>>, <<"₨"/utf8>>, 2}}; <<"462"/utf8>> -> {ok, {currency, <<"MVR"/utf8>>, <<"462"/utf8>>, <<"Maldivian Rufiyaa"/utf8>>, <<".ރ"/utf8>>, 2}}; <<"454"/utf8>> -> {ok, {currency, <<"MWK"/utf8>>, <<"454"/utf8>>, <<"Malawian Kwacha"/utf8>>, <<"MK"/utf8>>, 2}}; <<"484"/utf8>> -> {ok, {currency, <<"MXN"/utf8>>, <<"484"/utf8>>, <<"Mexican Peso"/utf8>>, <<"$"/utf8>>, 2}}; <<"979"/utf8>> -> {ok, {currency, <<"MXN"/utf8>>, <<"484"/utf8>>, <<"Mexican Peso"/utf8>>, <<"$"/utf8>>, 2}}; <<"458"/utf8>> -> {ok, {currency, <<"MYR"/utf8>>, <<"458"/utf8>>, <<"Malaysian Ringgit"/utf8>>, <<"RM"/utf8>>, 2}}; <<"943"/utf8>> -> {ok, {currency, <<"MZN"/utf8>>, <<"943"/utf8>>, <<"Mozambican Metical"/utf8>>, <<"MT"/utf8>>, 2}}; <<"516"/utf8>> -> {ok, {currency, <<"NAD"/utf8>>, <<"516"/utf8>>, <<"Namibian Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"524"/utf8>> -> {ok, {currency, <<"NPR"/utf8>>, <<"524"/utf8>>, <<"Nepalese Rupee"/utf8>>, <<"₨"/utf8>>, 2}}; <<"566"/utf8>> -> {ok, {currency, <<"NGN"/utf8>>, <<"566"/utf8>>, <<"Nigerian Naira"/utf8>>, <<"₦"/utf8>>, 2}}; <<"558"/utf8>> -> {ok, {currency, <<"NIO"/utf8>>, <<"558"/utf8>>, <<"Nicaraguan Córdoba"/utf8>>, <<"C$"/utf8>>, 2}}; <<"578"/utf8>> -> {ok, {currency, <<"NOK"/utf8>>, <<"578"/utf8>>, <<"Norwegian Krone"/utf8>>, <<"kr"/utf8>>, 2}}; <<"554"/utf8>> -> {ok, {currency, <<"NZD"/utf8>>, <<"554"/utf8>>, <<"New Zealand Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"512"/utf8>> -> {ok, {currency, <<"OMR"/utf8>>, <<"512"/utf8>>, <<"Omani Rial"/utf8>>, <<"ر.ع."/utf8>>, 3}}; <<"586"/utf8>> -> {ok, {currency, <<"PKR"/utf8>>, <<"586"/utf8>>, <<"Pakistani Rupee"/utf8>>, <<"₨"/utf8>>, 2}}; <<"590"/utf8>> -> {ok, {currency, <<"PAB"/utf8>>, <<"590"/utf8>>, <<"Panamanian Balboa"/utf8>>, <<"B/."/utf8>>, 2}}; <<"598"/utf8>> -> {ok, {currency, <<"PGK"/utf8>>, <<"598"/utf8>>, <<"Papua New Guinean Kina"/utf8>>, <<"K"/utf8>>, 2}}; <<"600"/utf8>> -> {ok, {currency, <<"PYG"/utf8>>, <<"600"/utf8>>, <<"Paraguayan Guaraní"/utf8>>, <<"₲"/utf8>>, 0}}; <<"604"/utf8>> -> {ok, {currency, <<"PEN"/utf8>>, <<"604"/utf8>>, <<"Peruvian Sol"/utf8>>, <<"S/"/utf8>>, 2}}; <<"608"/utf8>> -> {ok, {currency, <<"PHP"/utf8>>, <<"608"/utf8>>, <<"Philippine Peso"/utf8>>, <<"₱"/utf8>>, 2}}; <<"985"/utf8>> -> {ok, {currency, <<"PLN"/utf8>>, <<"985"/utf8>>, <<"Polish Złoty"/utf8>>, <<"zł"/utf8>>, 2}}; <<"634"/utf8>> -> {ok, {currency, <<"QAR"/utf8>>, <<"634"/utf8>>, <<"Qatari Riyal"/utf8>>, <<"ر.ق"/utf8>>, 2}}; <<"946"/utf8>> -> {ok, {currency, <<"RON"/utf8>>, <<"946"/utf8>>, <<"Romanian Leu"/utf8>>, <<"lei"/utf8>>, 2}}; <<"941"/utf8>> -> {ok, {currency, <<"RSD"/utf8>>, <<"941"/utf8>>, <<"Serbian Dinar"/utf8>>, <<"дин"/utf8>>, 2}}; <<"643"/utf8>> -> {ok, {currency, <<"RUB"/utf8>>, <<"643"/utf8>>, <<"Russian Ruble"/utf8>>, <<"₽"/utf8>>, 2}}; <<"646"/utf8>> -> {ok, {currency, <<"RWF"/utf8>>, <<"646"/utf8>>, <<"Rwandan Franc"/utf8>>, <<"FRw"/utf8>>, 0}}; <<"654"/utf8>> -> {ok, {currency, <<"SHP"/utf8>>, <<"654"/utf8>>, <<"Saint Helena Pound"/utf8>>, <<"£"/utf8>>, 2}}; <<"682"/utf8>> -> {ok, {currency, <<"SAR"/utf8>>, <<"682"/utf8>>, <<"Saudi Riyal"/utf8>>, <<"ر.س"/utf8>>, 2}}; <<"090"/utf8>> -> {ok, {currency, <<"SBD"/utf8>>, <<"090"/utf8>>, <<"Solomon Islands Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"690"/utf8>> -> {ok, {currency, <<"SCR"/utf8>>, <<"690"/utf8>>, <<"Seychellois Rupee"/utf8>>, <<"₨"/utf8>>, 2}}; <<"925"/utf8>> -> {ok, {currency, <<"SLE"/utf8>>, <<"925"/utf8>>, <<"Sierra Leonean Leone"/utf8>>, <<"Le"/utf8>>, 2}}; <<"706"/utf8>> -> {ok, {currency, <<"SOS"/utf8>>, <<"706"/utf8>>, <<"Somali Shilling"/utf8>>, <<"Sh"/utf8>>, 2}}; <<"728"/utf8>> -> {ok, {currency, <<"SSP"/utf8>>, <<"728"/utf8>>, <<"South Sudanese Pound"/utf8>>, <<"£"/utf8>>, 2}}; <<"938"/utf8>> -> {ok, {currency, <<"SDG"/utf8>>, <<"938"/utf8>>, <<"Sudanese Pound"/utf8>>, <<"ج.س."/utf8>>, 2}}; <<"968"/utf8>> -> {ok, {currency, <<"SRD"/utf8>>, <<"968"/utf8>>, <<"Surinamese Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"752"/utf8>> -> {ok, {currency, <<"SEK"/utf8>>, <<"752"/utf8>>, <<"Swedish Krona"/utf8>>, <<"kr"/utf8>>, 2}}; <<"702"/utf8>> -> {ok, {currency, <<"SGD"/utf8>>, <<"702"/utf8>>, <<"Singapore Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"930"/utf8>> -> {ok, {currency, <<"STN"/utf8>>, <<"930"/utf8>>, <<"São Tomé and Príncipe Dobra"/utf8>>, <<"Db"/utf8>>, 2}}; <<"222"/utf8>> -> {ok, {currency, <<"SVC"/utf8>>, <<"222"/utf8>>, <<"El Salvador Colon"/utf8>>, <<"₡"/utf8>>, 2}}; <<"760"/utf8>> -> {ok, {currency, <<"SYP"/utf8>>, <<"760"/utf8>>, <<"Syrian Pound"/utf8>>, <<"£"/utf8>>, 2}}; <<"748"/utf8>> -> {ok, {currency, <<"SZL"/utf8>>, <<"748"/utf8>>, <<"Swazi Lilangeni"/utf8>>, <<"L"/utf8>>, 2}}; <<"764"/utf8>> -> {ok, {currency, <<"THB"/utf8>>, <<"764"/utf8>>, <<"Thai Baht"/utf8>>, <<"฿"/utf8>>, 2}}; <<"972"/utf8>> -> {ok, {currency, <<"TJS"/utf8>>, <<"972"/utf8>>, <<"Tajikistani Somoni"/utf8>>, <<"ЅМ"/utf8>>, 2}}; <<"934"/utf8>> -> {ok, {currency, <<"TMT"/utf8>>, <<"934"/utf8>>, <<"Turkmenistani New Manat"/utf8>>, <<"m"/utf8>>, 2}}; <<"776"/utf8>> -> {ok, {currency, <<"TOP"/utf8>>, <<"776"/utf8>>, <<"Tongan Paʻanga"/utf8>>, <<"T$"/utf8>>, 2}}; <<"949"/utf8>> -> {ok, {currency, <<"TRY"/utf8>>, <<"949"/utf8>>, <<"Turkish Lira"/utf8>>, <<"₺"/utf8>>, 2}}; <<"780"/utf8>> -> {ok, {currency, <<"TTD"/utf8>>, <<"780"/utf8>>, <<"Trinidad and Tobago Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"788"/utf8>> -> {ok, {currency, <<"TND"/utf8>>, <<"788"/utf8>>, <<"Tunisian Dinar"/utf8>>, <<"د.ت"/utf8>>, 3}}; <<"901"/utf8>> -> {ok, {currency, <<"TWD"/utf8>>, <<"901"/utf8>>, <<"New Taiwan Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"834"/utf8>> -> {ok, {currency, <<"TZS"/utf8>>, <<"834"/utf8>>, <<"Tanzanian Shilling"/utf8>>, <<"Sh"/utf8>>, 2}}; <<"980"/utf8>> -> {ok, {currency, <<"UAH"/utf8>>, <<"980"/utf8>>, <<"Ukrainian Hryvnia"/utf8>>, <<"₴"/utf8>>, 2}}; <<"800"/utf8>> -> {ok, {currency, <<"UGX"/utf8>>, <<"800"/utf8>>, <<"Ugandan Shilling"/utf8>>, <<"Sh"/utf8>>, 0}}; <<"840"/utf8>> -> {ok, {currency, <<"USD"/utf8>>, <<"840"/utf8>>, <<"United States Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"858"/utf8>> -> {ok, {currency, <<"UYU"/utf8>>, <<"858"/utf8>>, <<"Uruguayan Peso"/utf8>>, <<"$U"/utf8>>, 2}}; <<"927"/utf8>> -> {ok, {currency, <<"UYW"/utf8>>, <<"927"/utf8>>, <<"Unidad Previsional"/utf8>>, <<"UP"/utf8>>, 4}}; <<"860"/utf8>> -> {ok, {currency, <<"UZS"/utf8>>, <<"860"/utf8>>, <<"Uzbekistani So'm"/utf8>>, <<"лв"/utf8>>, 2}}; <<"548"/utf8>> -> {ok, {currency, <<"VUV"/utf8>>, <<"548"/utf8>>, <<"Vanuatu Vatu"/utf8>>, <<"VT"/utf8>>, 0}}; <<"926"/utf8>> -> {ok, {currency, <<"VED"/utf8>>, <<"926"/utf8>>, <<"Venezuelan Bolívar"/utf8>>, <<"Bs."/utf8>>, 2}}; <<"928"/utf8>> -> {ok, {currency, <<"VES"/utf8>>, <<"928"/utf8>>, <<"Venezuelan Bolívar"/utf8>>, <<"Bs."/utf8>>, 2}}; <<"704"/utf8>> -> {ok, {currency, <<"VND"/utf8>>, <<"704"/utf8>>, <<"Vietnamese Đồng"/utf8>>, <<"₫"/utf8>>, 0}}; <<"882"/utf8>> -> {ok, {currency, <<"WST"/utf8>>, <<"882"/utf8>>, <<"Samoan Tālā"/utf8>>, <<"T"/utf8>>, 2}}; <<"950"/utf8>> -> {ok, {currency, <<"XAF"/utf8>>, <<"950"/utf8>>, <<"Central African CFA Franc"/utf8>>, <<"F.CFA"/utf8>>, 0}}; <<"396"/utf8>> -> {ok, {currency, <<"XAD"/utf8>>, <<"396"/utf8>>, <<"Arab Accounting Dinar"/utf8>>, <<"AAD"/utf8>>, 2}}; <<"951"/utf8>> -> {ok, {currency, <<"XCD"/utf8>>, <<"951"/utf8>>, <<"East Caribbean Dollar"/utf8>>, <<"$"/utf8>>, 2}}; <<"532"/utf8>> -> {ok, {currency, <<"XCG"/utf8>>, <<"532"/utf8>>, <<"Caribbean Guilder"/utf8>>, <<"Cg"/utf8>>, 2}}; <<"952"/utf8>> -> {ok, {currency, <<"XOF"/utf8>>, <<"952"/utf8>>, <<"West African CFA Franc"/utf8>>, <<"F.CFA"/utf8>>, 0}}; <<"953"/utf8>> -> {ok, {currency, <<"XPF"/utf8>>, <<"953"/utf8>>, <<"CFP Franc"/utf8>>, <<"₣"/utf8>>, 0}}; <<"886"/utf8>> -> {ok, {currency, <<"YER"/utf8>>, <<"886"/utf8>>, <<"Yemeni Rial"/utf8>>, <<"﷼"/utf8>>, 2}}; <<"710"/utf8>> -> {ok, {currency, <<"ZAR"/utf8>>, <<"710"/utf8>>, <<"South African Rand"/utf8>>, <<"R"/utf8>>, 2}}; <<"967"/utf8>> -> {ok, {currency, <<"ZMW"/utf8>>, <<"967"/utf8>>, <<"Zambian Kwacha"/utf8>>, <<"ZK"/utf8>>, 2}}; <<"924"/utf8>> -> {ok, {currency, <<"ZWG"/utf8>>, <<"924"/utf8>>, <<"Zimbabwean Gold"/utf8>>, <<"ZiG"/utf8>>, 2}}; _ -> {error, unrecognized_code} end. -file("src/dime.gleam", 739). ?DOC(" Try and retrieve a currency by it's 3 character numeric code.\n"). -spec from_numeric_code(binary()) -> {ok, currency()} | {error, currency_code_error()}. from_numeric_code(Currency_code) -> _pipe = validate_length(Currency_code), gleam@result:'try'(_pipe, fun parse_numeric_code/1). -file("src/dime.gleam", 557). ?DOC(" Retrieve the list of all the currencies known to this library.\n"). -spec known_currencies() -> list(currency()). known_currencies() -> [{currency, <<"AED"/utf8>>, <<"784"/utf8>>, <<"United Arab Emirates Dirham"/utf8>>, <<"د.إ"/utf8>>, 2}, {currency, <<"AFN"/utf8>>, <<"971"/utf8>>, <<"Afghan Afghani"/utf8>>, <<"؋"/utf8>>, 2}, {currency, <<"ALL"/utf8>>, <<"008"/utf8>>, <<"Albanian Lek"/utf8>>, <<"L"/utf8>>, 2}, {currency, <<"AMD"/utf8>>, <<"051"/utf8>>, <<"Armenian Dram"/utf8>>, <<"֏"/utf8>>, 2}, {currency, <<"AOA"/utf8>>, <<"973"/utf8>>, <<"Angolan Kwanza"/utf8>>, <<"Kz"/utf8>>, 2}, {currency, <<"ARS"/utf8>>, <<"032"/utf8>>, <<"Argentine Peso"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"AUD"/utf8>>, <<"036"/utf8>>, <<"Australian Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"AWG"/utf8>>, <<"533"/utf8>>, <<"Aruban Florin"/utf8>>, <<"ƒ"/utf8>>, 2}, {currency, <<"AZN"/utf8>>, <<"944"/utf8>>, <<"Azerbaijani Manat"/utf8>>, <<"₼"/utf8>>, 2}, {currency, <<"BAM"/utf8>>, <<"977"/utf8>>, <<"Bosnia and Herzegovina Convertible Mark"/utf8>>, <<"KM"/utf8>>, 2}, {currency, <<"BBD"/utf8>>, <<"052"/utf8>>, <<"Barbadian Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"BDT"/utf8>>, <<"050"/utf8>>, <<"Bangladeshi Taka"/utf8>>, <<"৳"/utf8>>, 2}, {currency, <<"BGN"/utf8>>, <<"975"/utf8>>, <<"Bulgarian Lev"/utf8>>, <<"лв"/utf8>>, 2}, {currency, <<"BHD"/utf8>>, <<"048"/utf8>>, <<"Bahraini Dinar"/utf8>>, <<".د.ب"/utf8>>, 3}, {currency, <<"BIF"/utf8>>, <<"108"/utf8>>, <<"Burundian Franc"/utf8>>, <<"FBu"/utf8>>, 0}, {currency, <<"BMD"/utf8>>, <<"060"/utf8>>, <<"Bermudian Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"BND"/utf8>>, <<"096"/utf8>>, <<"Brunei Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"BOB"/utf8>>, <<"068"/utf8>>, <<"Bolivian Boliviano"/utf8>>, <<"Bs"/utf8>>, 2}, {currency, <<"BRL"/utf8>>, <<"986"/utf8>>, <<"Brazilian Real"/utf8>>, <<"R$"/utf8>>, 2}, {currency, <<"BSD"/utf8>>, <<"044"/utf8>>, <<"Bahamian Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"BTN"/utf8>>, <<"064"/utf8>>, <<"Bhutanese Ngultrum"/utf8>>, <<"Nu."/utf8>>, 2}, {currency, <<"BWP"/utf8>>, <<"072"/utf8>>, <<"Botswana Pula"/utf8>>, <<"P"/utf8>>, 2}, {currency, <<"BYN"/utf8>>, <<"933"/utf8>>, <<"Belarusian Ruble"/utf8>>, <<"Br"/utf8>>, 2}, {currency, <<"BZD"/utf8>>, <<"084"/utf8>>, <<"Belize Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"CAD"/utf8>>, <<"124"/utf8>>, <<"Canadian Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"CDF"/utf8>>, <<"976"/utf8>>, <<"Congolese Franc"/utf8>>, <<"FC"/utf8>>, 2}, {currency, <<"CHF"/utf8>>, <<"756"/utf8>>, <<"Swiss Franc"/utf8>>, <<"CHF"/utf8>>, 2}, {currency, <<"CLP"/utf8>>, <<"152"/utf8>>, <<"Chilean Peso"/utf8>>, <<"$"/utf8>>, 0}, {currency, <<"CNY"/utf8>>, <<"156"/utf8>>, <<"Chinese Yuan Renminbi"/utf8>>, <<"¥"/utf8>>, 2}, {currency, <<"COP"/utf8>>, <<"170"/utf8>>, <<"Colombian Peso"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"CRC"/utf8>>, <<"188"/utf8>>, <<"Costa Rican Colon"/utf8>>, <<"₡"/utf8>>, 2}, {currency, <<"CUP"/utf8>>, <<"192"/utf8>>, <<"Cuban Peso"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"CVE"/utf8>>, <<"132"/utf8>>, <<"Cabo Verde Escudo"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"CZK"/utf8>>, <<"203"/utf8>>, <<"Czech Koruna"/utf8>>, <<"Kč"/utf8>>, 2}, {currency, <<"DJF"/utf8>>, <<"262"/utf8>>, <<"Djibouti Franc"/utf8>>, <<"Fdj"/utf8>>, 0}, {currency, <<"DKK"/utf8>>, <<"208"/utf8>>, <<"Danish Krone"/utf8>>, <<"kr"/utf8>>, 2}, {currency, <<"DOP"/utf8>>, <<"214"/utf8>>, <<"Dominican Peso"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"DZD"/utf8>>, <<"012"/utf8>>, <<"Algerian Dinar"/utf8>>, <<"دج"/utf8>>, 2}, {currency, <<"EGP"/utf8>>, <<"818"/utf8>>, <<"Egyptian Pound"/utf8>>, <<"£"/utf8>>, 2}, {currency, <<"ERN"/utf8>>, <<"232"/utf8>>, <<"Eritrean Nakfa"/utf8>>, <<"Nfk"/utf8>>, 2}, {currency, <<"ETB"/utf8>>, <<"230"/utf8>>, <<"Ethiopian Birr"/utf8>>, <<"Br"/utf8>>, 2}, {currency, <<"EUR"/utf8>>, <<"978"/utf8>>, <<"Euro"/utf8>>, <<"€"/utf8>>, 2}, {currency, <<"FJD"/utf8>>, <<"242"/utf8>>, <<"Fiji Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"FKP"/utf8>>, <<"238"/utf8>>, <<"Falkland Islands Pound"/utf8>>, <<"£"/utf8>>, 2}, {currency, <<"GBP"/utf8>>, <<"826"/utf8>>, <<"Pound Sterling"/utf8>>, <<"£"/utf8>>, 2}, {currency, <<"GEL"/utf8>>, <<"981"/utf8>>, <<"Georgian Lari"/utf8>>, <<"₾"/utf8>>, 2}, {currency, <<"GHS"/utf8>>, <<"936"/utf8>>, <<"Ghana Cedi"/utf8>>, <<"₵"/utf8>>, 2}, {currency, <<"GIP"/utf8>>, <<"292"/utf8>>, <<"Gibraltar Pound"/utf8>>, <<"£"/utf8>>, 2}, {currency, <<"GMD"/utf8>>, <<"270"/utf8>>, <<"Gambian Dalasi"/utf8>>, <<"D"/utf8>>, 2}, {currency, <<"GNF"/utf8>>, <<"324"/utf8>>, <<"Guinean Franc"/utf8>>, <<"FG"/utf8>>, 0}, {currency, <<"GTQ"/utf8>>, <<"320"/utf8>>, <<"Guatemalan Quetzal"/utf8>>, <<"Q"/utf8>>, 2}, {currency, <<"GYD"/utf8>>, <<"328"/utf8>>, <<"Guyana Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"HKD"/utf8>>, <<"344"/utf8>>, <<"Hong Kong Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"HNL"/utf8>>, <<"340"/utf8>>, <<"Hondurasi Lempira"/utf8>>, <<"L"/utf8>>, 2}, {currency, <<"HRK"/utf8>>, <<"191"/utf8>>, <<"Croatian Kuna"/utf8>>, <<"kn"/utf8>>, 2}, {currency, <<"HTG"/utf8>>, <<"332"/utf8>>, <<"Haitian Gourde"/utf8>>, <<"G"/utf8>>, 2}, {currency, <<"HUF"/utf8>>, <<"348"/utf8>>, <<"Hungarian Forint"/utf8>>, <<"Ft"/utf8>>, 2}, {currency, <<"IDR"/utf8>>, <<"360"/utf8>>, <<"Indian Rupiah"/utf8>>, <<"Rp"/utf8>>, 2}, {currency, <<"ILS"/utf8>>, <<"376"/utf8>>, <<"Israeli New Sheqel"/utf8>>, <<"₪"/utf8>>, 2}, {currency, <<"INR"/utf8>>, <<"356"/utf8>>, <<"Indian Rupee"/utf8>>, <<"₹"/utf8>>, 2}, {currency, <<"IQD"/utf8>>, <<"368"/utf8>>, <<"Iraqi Dinar"/utf8>>, <<"ع.د"/utf8>>, 3}, {currency, <<"IRR"/utf8>>, <<"364"/utf8>>, <<"Iranian Rial"/utf8>>, <<"﷼"/utf8>>, 2}, {currency, <<"ISK"/utf8>>, <<"352"/utf8>>, <<"Icelandic Króna"/utf8>>, <<"kr"/utf8>>, 0}, {currency, <<"JMD"/utf8>>, <<"388"/utf8>>, <<"Jamaican Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"JOD"/utf8>>, <<"400"/utf8>>, <<"Jordanian Dinar"/utf8>>, <<"د.ا"/utf8>>, 3}, {currency, <<"JPY"/utf8>>, <<"392"/utf8>>, <<"Japanese Yen"/utf8>>, <<"¥"/utf8>>, 0}, {currency, <<"KES"/utf8>>, <<"404"/utf8>>, <<"Kenyan Shilling"/utf8>>, <<"Sh"/utf8>>, 2}, {currency, <<"KGS"/utf8>>, <<"417"/utf8>>, <<"Kyrgyzstani Som"/utf8>>, <<"лв"/utf8>>, 2}, {currency, <<"KHR"/utf8>>, <<"116"/utf8>>, <<"Cambodian Riel"/utf8>>, <<"៛"/utf8>>, 2}, {currency, <<"KMF"/utf8>>, <<"174"/utf8>>, <<"Comorian Franc"/utf8>>, <<"CF"/utf8>>, 0}, {currency, <<"KPW"/utf8>>, <<"408"/utf8>>, <<"North Korean Won"/utf8>>, <<"₩"/utf8>>, 2}, {currency, <<"KRW"/utf8>>, <<"410"/utf8>>, <<"South Korean Won"/utf8>>, <<"₩"/utf8>>, 0}, {currency, <<"KWD"/utf8>>, <<"414"/utf8>>, <<"Kuwaiti Dinar"/utf8>>, <<"د.ك"/utf8>>, 3}, {currency, <<"KYD"/utf8>>, <<"136"/utf8>>, <<"Cayman Islands Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"KZT"/utf8>>, <<"398"/utf8>>, <<"Kazakhstani Tenge"/utf8>>, <<"₸"/utf8>>, 2}, {currency, <<"LAK"/utf8>>, <<"418"/utf8>>, <<"Lao Kip"/utf8>>, <<"₭"/utf8>>, 2}, {currency, <<"LBP"/utf8>>, <<"422"/utf8>>, <<"Lebanese Pound"/utf8>>, <<"ل.ل"/utf8>>, 2}, {currency, <<"LKR"/utf8>>, <<"144"/utf8>>, <<"Sri Lankan Rupee"/utf8>>, <<"Rs"/utf8>>, 2}, {currency, <<"LRD"/utf8>>, <<"430"/utf8>>, <<"Liberian Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"LSL"/utf8>>, <<"426"/utf8>>, <<"Loti"/utf8>>, <<"L"/utf8>>, 2}, {currency, <<"LYD"/utf8>>, <<"434"/utf8>>, <<"Libyan Dinar"/utf8>>, <<"ل.د"/utf8>>, 3}, {currency, <<"MAD"/utf8>>, <<"504"/utf8>>, <<"Moroccan Dirham"/utf8>>, <<"د.م."/utf8>>, 2}, {currency, <<"MDL"/utf8>>, <<"498"/utf8>>, <<"Moldovan Leu"/utf8>>, <<"L"/utf8>>, 2}, {currency, <<"MGA"/utf8>>, <<"969"/utf8>>, <<"Malagasy Ariary"/utf8>>, <<"Ar"/utf8>>, 2}, {currency, <<"MKD"/utf8>>, <<"807"/utf8>>, <<"Macedonian Denar"/utf8>>, <<"ден"/utf8>>, 2}, {currency, <<"MMK"/utf8>>, <<"104"/utf8>>, <<"Myanmar Kyat"/utf8>>, <<"K"/utf8>>, 2}, {currency, <<"MNT"/utf8>>, <<"496"/utf8>>, <<"Mongolian Tögrög"/utf8>>, <<"₮"/utf8>>, 2}, {currency, <<"MOP"/utf8>>, <<"446"/utf8>>, <<"Macanese Pataca"/utf8>>, <<"P"/utf8>>, 2}, {currency, <<"MRU"/utf8>>, <<"929"/utf8>>, <<"Mauritanian Ouguiya"/utf8>>, <<"UM"/utf8>>, 2}, {currency, <<"MUR"/utf8>>, <<"480"/utf8>>, <<"Mauritian Rupee"/utf8>>, <<"₨"/utf8>>, 2}, {currency, <<"MVR"/utf8>>, <<"462"/utf8>>, <<"Maldivian Rufiyaa"/utf8>>, <<".ރ"/utf8>>, 2}, {currency, <<"MWK"/utf8>>, <<"454"/utf8>>, <<"Malawian Kwacha"/utf8>>, <<"MK"/utf8>>, 2}, {currency, <<"MXN"/utf8>>, <<"484"/utf8>>, <<"Mexican Peso"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"MYR"/utf8>>, <<"458"/utf8>>, <<"Malaysian Ringgit"/utf8>>, <<"RM"/utf8>>, 2}, {currency, <<"MZN"/utf8>>, <<"943"/utf8>>, <<"Mozambican Metical"/utf8>>, <<"MT"/utf8>>, 2}, {currency, <<"NAD"/utf8>>, <<"516"/utf8>>, <<"Namibian Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"NGN"/utf8>>, <<"566"/utf8>>, <<"Nigerian Naira"/utf8>>, <<"₦"/utf8>>, 2}, {currency, <<"NIO"/utf8>>, <<"558"/utf8>>, <<"Nicaraguan Córdoba"/utf8>>, <<"C$"/utf8>>, 2}, {currency, <<"NOK"/utf8>>, <<"578"/utf8>>, <<"Norwegian Krone"/utf8>>, <<"kr"/utf8>>, 2}, {currency, <<"NPR"/utf8>>, <<"524"/utf8>>, <<"Nepalese Rupee"/utf8>>, <<"₨"/utf8>>, 2}, {currency, <<"NZD"/utf8>>, <<"554"/utf8>>, <<"New Zealand Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"OMR"/utf8>>, <<"512"/utf8>>, <<"Omani Rial"/utf8>>, <<"ر.ع."/utf8>>, 3}, {currency, <<"PAB"/utf8>>, <<"590"/utf8>>, <<"Panamanian Balboa"/utf8>>, <<"B/."/utf8>>, 2}, {currency, <<"PEN"/utf8>>, <<"604"/utf8>>, <<"Peruvian Sol"/utf8>>, <<"S/"/utf8>>, 2}, {currency, <<"PGK"/utf8>>, <<"598"/utf8>>, <<"Papua New Guinean Kina"/utf8>>, <<"K"/utf8>>, 2}, {currency, <<"PHP"/utf8>>, <<"608"/utf8>>, <<"Philippine Peso"/utf8>>, <<"₱"/utf8>>, 2}, {currency, <<"PKR"/utf8>>, <<"586"/utf8>>, <<"Pakistani Rupee"/utf8>>, <<"₨"/utf8>>, 2}, {currency, <<"PLN"/utf8>>, <<"985"/utf8>>, <<"Polish Złoty"/utf8>>, <<"zł"/utf8>>, 2}, {currency, <<"PYG"/utf8>>, <<"600"/utf8>>, <<"Paraguayan Guaraní"/utf8>>, <<"₲"/utf8>>, 0}, {currency, <<"QAR"/utf8>>, <<"634"/utf8>>, <<"Qatari Riyal"/utf8>>, <<"ر.ق"/utf8>>, 2}, {currency, <<"RON"/utf8>>, <<"946"/utf8>>, <<"Romanian Leu"/utf8>>, <<"lei"/utf8>>, 2}, {currency, <<"RSD"/utf8>>, <<"941"/utf8>>, <<"Serbian Dinar"/utf8>>, <<"дин"/utf8>>, 2}, {currency, <<"RUB"/utf8>>, <<"643"/utf8>>, <<"Russian Ruble"/utf8>>, <<"₽"/utf8>>, 2}, {currency, <<"RWF"/utf8>>, <<"646"/utf8>>, <<"Rwandan Franc"/utf8>>, <<"FRw"/utf8>>, 0}, {currency, <<"SAR"/utf8>>, <<"682"/utf8>>, <<"Saudi Riyal"/utf8>>, <<"ر.س"/utf8>>, 2}, {currency, <<"SBD"/utf8>>, <<"090"/utf8>>, <<"Solomon Islands Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"SCR"/utf8>>, <<"690"/utf8>>, <<"Seychellois Rupee"/utf8>>, <<"₨"/utf8>>, 2}, {currency, <<"SDG"/utf8>>, <<"938"/utf8>>, <<"Sudanese Pound"/utf8>>, <<"ج.س."/utf8>>, 2}, {currency, <<"SEK"/utf8>>, <<"752"/utf8>>, <<"Swedish Krona"/utf8>>, <<"kr"/utf8>>, 2}, {currency, <<"SGD"/utf8>>, <<"702"/utf8>>, <<"Singapore Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"SHP"/utf8>>, <<"654"/utf8>>, <<"Saint Helena Pound"/utf8>>, <<"£"/utf8>>, 2}, {currency, <<"SLE"/utf8>>, <<"925"/utf8>>, <<"Sierra Leonean Leone"/utf8>>, <<"Le"/utf8>>, 2}, {currency, <<"SOS"/utf8>>, <<"706"/utf8>>, <<"Somali Shilling"/utf8>>, <<"Sh"/utf8>>, 2}, {currency, <<"SRD"/utf8>>, <<"968"/utf8>>, <<"Surinamese Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"SSP"/utf8>>, <<"728"/utf8>>, <<"South Sudanese Pound"/utf8>>, <<"£"/utf8>>, 2}, {currency, <<"STN"/utf8>>, <<"930"/utf8>>, <<"São Tomé and Príncipe Dobra"/utf8>>, <<"Db"/utf8>>, 2}, {currency, <<"SVC"/utf8>>, <<"222"/utf8>>, <<"El Salvador Colon"/utf8>>, <<"₡"/utf8>>, 2}, {currency, <<"SYP"/utf8>>, <<"760"/utf8>>, <<"Syrian Pound"/utf8>>, <<"£"/utf8>>, 2}, {currency, <<"SZL"/utf8>>, <<"748"/utf8>>, <<"Swazi Lilangeni"/utf8>>, <<"L"/utf8>>, 2}, {currency, <<"THB"/utf8>>, <<"764"/utf8>>, <<"Thai Baht"/utf8>>, <<"฿"/utf8>>, 2}, {currency, <<"TJS"/utf8>>, <<"972"/utf8>>, <<"Tajikistani Somoni"/utf8>>, <<"ЅМ"/utf8>>, 2}, {currency, <<"TMT"/utf8>>, <<"934"/utf8>>, <<"Turkmenistani New Manat"/utf8>>, <<"m"/utf8>>, 2}, {currency, <<"TND"/utf8>>, <<"788"/utf8>>, <<"Tunisian Dinar"/utf8>>, <<"د.ت"/utf8>>, 3}, {currency, <<"TOP"/utf8>>, <<"776"/utf8>>, <<"Tongan Paʻanga"/utf8>>, <<"T$"/utf8>>, 2}, {currency, <<"TRY"/utf8>>, <<"949"/utf8>>, <<"Turkish Lira"/utf8>>, <<"₺"/utf8>>, 2}, {currency, <<"TTD"/utf8>>, <<"780"/utf8>>, <<"Trinidad and Tobago Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"TWD"/utf8>>, <<"901"/utf8>>, <<"New Taiwan Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"TZS"/utf8>>, <<"834"/utf8>>, <<"Tanzanian Shilling"/utf8>>, <<"Sh"/utf8>>, 2}, {currency, <<"UAH"/utf8>>, <<"980"/utf8>>, <<"Ukrainian Hryvnia"/utf8>>, <<"₴"/utf8>>, 2}, {currency, <<"UGX"/utf8>>, <<"800"/utf8>>, <<"Ugandan Shilling"/utf8>>, <<"Sh"/utf8>>, 0}, {currency, <<"USD"/utf8>>, <<"840"/utf8>>, <<"United States Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"UYU"/utf8>>, <<"858"/utf8>>, <<"Uruguayan Peso"/utf8>>, <<"$U"/utf8>>, 2}, {currency, <<"UYW"/utf8>>, <<"927"/utf8>>, <<"Unidad Previsional"/utf8>>, <<"UP"/utf8>>, 4}, {currency, <<"UZS"/utf8>>, <<"860"/utf8>>, <<"Uzbekistani So'm"/utf8>>, <<"лв"/utf8>>, 2}, {currency, <<"VED"/utf8>>, <<"926"/utf8>>, <<"Venezuelan Bolívar"/utf8>>, <<"Bs."/utf8>>, 2}, {currency, <<"VES"/utf8>>, <<"928"/utf8>>, <<"Venezuelan Bolívar"/utf8>>, <<"Bs."/utf8>>, 2}, {currency, <<"VND"/utf8>>, <<"704"/utf8>>, <<"Vietnamese Đồng"/utf8>>, <<"₫"/utf8>>, 0}, {currency, <<"VUV"/utf8>>, <<"548"/utf8>>, <<"Vanuatu Vatu"/utf8>>, <<"VT"/utf8>>, 0}, {currency, <<"WST"/utf8>>, <<"882"/utf8>>, <<"Samoan Tālā"/utf8>>, <<"T"/utf8>>, 2}, {currency, <<"XAF"/utf8>>, <<"950"/utf8>>, <<"Central African CFA Franc"/utf8>>, <<"F.CFA"/utf8>>, 0}, {currency, <<"XAD"/utf8>>, <<"396"/utf8>>, <<"Arab Accounting Dinar"/utf8>>, <<"AAD"/utf8>>, 2}, {currency, <<"XCD"/utf8>>, <<"951"/utf8>>, <<"East Caribbean Dollar"/utf8>>, <<"$"/utf8>>, 2}, {currency, <<"XCG"/utf8>>, <<"532"/utf8>>, <<"Caribbean Guilder"/utf8>>, <<"Cg"/utf8>>, 2}, {currency, <<"XOF"/utf8>>, <<"952"/utf8>>, <<"West African CFA Franc"/utf8>>, <<"F.CFA"/utf8>>, 0}, {currency, <<"XPF"/utf8>>, <<"953"/utf8>>, <<"CFP Franc"/utf8>>, <<"₣"/utf8>>, 0}, {currency, <<"YER"/utf8>>, <<"886"/utf8>>, <<"Yemeni Rial"/utf8>>, <<"﷼"/utf8>>, 2}, {currency, <<"ZAR"/utf8>>, <<"710"/utf8>>, <<"South African Rand"/utf8>>, <<"R"/utf8>>, 2}, {currency, <<"ZMW"/utf8>>, <<"967"/utf8>>, <<"Zambian Kwacha"/utf8>>, <<"ZK"/utf8>>, 2}, {currency, <<"ZWG"/utf8>>, <<"924"/utf8>>, <<"Zimbabwean Gold"/utf8>>, <<"ZiG"/utf8>>, 2}].