-
Notifications
You must be signed in to change notification settings - Fork 1
/
std.kt
185 lines (185 loc) · 10.6 KB
/
std.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
data class Currency(val currencyCode: String, val minorUnits: Int, val factor: Int, val name: String) {
companion object {
val currencyMap = mapOf<String, Currency>(
"AED" to Currency("AED", 2, 100, "UAE Dirham"),
"AFN" to Currency("AFN", 2, 100, "Afghani"),
"ALL" to Currency("ALL", 2, 100, "Lek"),
"AMD" to Currency("AMD", 2, 100, "Armenian Dram"),
"ANG" to Currency("ANG", 2, 100, "Netherlands Antillean Guilder"),
"AOA" to Currency("AOA", 2, 100, "Kwanza"),
"ARS" to Currency("ARS", 2, 100, "Argentine Peso"),
"AUD" to Currency("AUD", 2, 100, "Australian Dollar"),
"AWG" to Currency("AWG", 2, 100, "Aruban Florin"),
"AZN" to Currency("AZN", 2, 100, "Azerbaijan Manat"),
"BAM" to Currency("BAM", 2, 100, "Convertible Mark"),
"BBD" to Currency("BBD", 2, 100, "Barbados Dollar"),
"BDT" to Currency("BDT", 2, 100, "Taka"),
"BGN" to Currency("BGN", 2, 100, "Bulgarian Lev"),
"BHD" to Currency("BHD", 3, 1000, "Bahraini Dinar"),
"BIF" to Currency("BIF", 0, 1, "Burundi Franc"),
"BMD" to Currency("BMD", 2, 100, "Bermudian Dollar"),
"BND" to Currency("BND", 2, 100, "Brunei Dollar"),
"BOB" to Currency("BOB", 2, 100, "Boliviano"),
"BOV" to Currency("BOV", 2, 100, "Mvdol"),
"BRL" to Currency("BRL", 2, 100, "Brazilian Real"),
"BSD" to Currency("BSD", 2, 100, "Bahamian Dollar"),
"BTN" to Currency("BTN", 2, 100, "Ngultrum"),
"BWP" to Currency("BWP", 2, 100, "Pula"),
"BYN" to Currency("BYN", 2, 100, "Belarusian Ruble"),
"BZD" to Currency("BZD", 2, 100, "Belize Dollar"),
"CAD" to Currency("CAD", 2, 100, "Canadian Dollar"),
"CDF" to Currency("CDF", 2, 100, "Congolese Franc"),
"CHE" to Currency("CHE", 2, 100, "WIR Euro"),
"CHF" to Currency("CHF", 2, 100, "Swiss Franc"),
"CHW" to Currency("CHW", 2, 100, "WIR Franc"),
"CLF" to Currency("CLF", 4, 10000, "Unidad de Fomento"),
"CLP" to Currency("CLP", 0, 1, "Chilean Peso"),
"CNY" to Currency("CNY", 2, 100, "Yuan Renminbi"),
"COP" to Currency("COP", 2, 100, "Colombian Peso"),
"COU" to Currency("COU", 2, 100, "Unidad de Valor Real"),
"CRC" to Currency("CRC", 2, 100, "Costa Rican Colon"),
"CUC" to Currency("CUC", 2, 100, "Peso Convertible"),
"CUP" to Currency("CUP", 2, 100, "Cuban Peso"),
"CVE" to Currency("CVE", 2, 100, "Cabo Verde Escudo"),
"CZK" to Currency("CZK", 2, 100, "Czech Koruna"),
"DJF" to Currency("DJF", 0, 1, "Djibouti Franc"),
"DKK" to Currency("DKK", 2, 100, "Danish Krone"),
"DOP" to Currency("DOP", 2, 100, "Dominican Peso"),
"DZD" to Currency("DZD", 2, 100, "Algerian Dinar"),
"EGP" to Currency("EGP", 2, 100, "Egyptian Pound"),
"ERN" to Currency("ERN", 2, 100, "Nakfa"),
"ETB" to Currency("ETB", 2, 100, "Ethiopian Birr"),
"EUR" to Currency("EUR", 2, 100, "Euro"),
"FJD" to Currency("FJD", 2, 100, "Fiji Dollar"),
"FKP" to Currency("FKP", 2, 100, "Falkland Islands Pound"),
"GBP" to Currency("GBP", 2, 100, "Pound Sterling"),
"GEL" to Currency("GEL", 2, 100, "Lari"),
"GHS" to Currency("GHS", 2, 100, "Ghana Cedi"),
"GIP" to Currency("GIP", 2, 100, "Gibraltar Pound"),
"GMD" to Currency("GMD", 2, 100, "Dalasi"),
"GNF" to Currency("GNF", 0, 1, "Guinean Franc"),
"GTQ" to Currency("GTQ", 2, 100, "Quetzal"),
"GYD" to Currency("GYD", 2, 100, "Guyana Dollar"),
"HKD" to Currency("HKD", 2, 100, "Hong Kong Dollar"),
"HNL" to Currency("HNL", 2, 100, "Lempira"),
"HTG" to Currency("HTG", 2, 100, "Gourde"),
"HUF" to Currency("HUF", 2, 100, "Forint"),
"IDR" to Currency("IDR", 2, 100, "Rupiah"),
"ILS" to Currency("ILS", 2, 100, "New Israeli Sheqel"),
"INR" to Currency("INR", 2, 100, "Indian Rupee"),
"IQD" to Currency("IQD", 3, 1000, "Iraqi Dinar"),
"IRR" to Currency("IRR", 2, 100, "Iranian Rial"),
"ISK" to Currency("ISK", 0, 1, "Iceland Krona"),
"JMD" to Currency("JMD", 2, 100, "Jamaican Dollar"),
"JOD" to Currency("JOD", 3, 1000, "Jordanian Dinar"),
"JPY" to Currency("JPY", 0, 1, "Yen"),
"KES" to Currency("KES", 2, 100, "Kenyan Shilling"),
"KGS" to Currency("KGS", 2, 100, "Som"),
"KHR" to Currency("KHR", 2, 100, "Riel"),
"KMF" to Currency("KMF", 0, 1, "Comorian Franc "),
"KPW" to Currency("KPW", 2, 100, "North Korean Won"),
"KRW" to Currency("KRW", 0, 1, "Won"),
"KWD" to Currency("KWD", 3, 1000, "Kuwaiti Dinar"),
"KYD" to Currency("KYD", 2, 100, "Cayman Islands Dollar"),
"KZT" to Currency("KZT", 2, 100, "Tenge"),
"LAK" to Currency("LAK", 2, 100, "Lao Kip"),
"LBP" to Currency("LBP", 2, 100, "Lebanese Pound"),
"LKR" to Currency("LKR", 2, 100, "Sri Lanka Rupee"),
"LRD" to Currency("LRD", 2, 100, "Liberian Dollar"),
"LSL" to Currency("LSL", 2, 100, "Loti"),
"LYD" to Currency("LYD", 3, 1000, "Libyan Dinar"),
"MAD" to Currency("MAD", 2, 100, "Moroccan Dirham"),
"MDL" to Currency("MDL", 2, 100, "Moldovan Leu"),
"MGA" to Currency("MGA", 2, 100, "Malagasy Ariary"),
"MKD" to Currency("MKD", 2, 100, "Denar"),
"MMK" to Currency("MMK", 2, 100, "Kyat"),
"MNT" to Currency("MNT", 2, 100, "Tugrik"),
"MOP" to Currency("MOP", 2, 100, "Pataca"),
"MRU" to Currency("MRU", 2, 100, "Ouguiya"),
"MUR" to Currency("MUR", 2, 100, "Mauritius Rupee"),
"MVR" to Currency("MVR", 2, 100, "Rufiyaa"),
"MWK" to Currency("MWK", 2, 100, "Malawi Kwacha"),
"MXN" to Currency("MXN", 2, 100, "Mexican Peso"),
"MXV" to Currency("MXV", 2, 100, "Mexican Unidad de Inversion (UDI)"),
"MYR" to Currency("MYR", 2, 100, "Malaysian Ringgit"),
"MZN" to Currency("MZN", 2, 100, "Mozambique Metical"),
"NAD" to Currency("NAD", 2, 100, "Namibia Dollar"),
"NGN" to Currency("NGN", 2, 100, "Naira"),
"NIO" to Currency("NIO", 2, 100, "Cordoba Oro"),
"NOK" to Currency("NOK", 2, 100, "Norwegian Krone"),
"NPR" to Currency("NPR", 2, 100, "Nepalese Rupee"),
"NZD" to Currency("NZD", 2, 100, "New Zealand Dollar"),
"OMR" to Currency("OMR", 3, 1000, "Rial Omani"),
"PAB" to Currency("PAB", 2, 100, "Balboa"),
"PEN" to Currency("PEN", 2, 100, "Sol"),
"PGK" to Currency("PGK", 2, 100, "Kina"),
"PHP" to Currency("PHP", 2, 100, "Philippine Peso"),
"PKR" to Currency("PKR", 2, 100, "Pakistan Rupee"),
"PLN" to Currency("PLN", 2, 100, "Zloty"),
"PYG" to Currency("PYG", 0, 1, "Guarani"),
"QAR" to Currency("QAR", 2, 100, "Qatari Rial"),
"RON" to Currency("RON", 2, 100, "Romanian Leu"),
"RSD" to Currency("RSD", 2, 100, "Serbian Dinar"),
"RUB" to Currency("RUB", 2, 100, "Russian Ruble"),
"RWF" to Currency("RWF", 0, 1, "Rwanda Franc"),
"SAR" to Currency("SAR", 2, 100, "Saudi Riyal"),
"SBD" to Currency("SBD", 2, 100, "Solomon Islands Dollar"),
"SCR" to Currency("SCR", 2, 100, "Seychelles Rupee"),
"SDG" to Currency("SDG", 2, 100, "Sudanese Pound"),
"SEK" to Currency("SEK", 2, 100, "Swedish Krona"),
"SGD" to Currency("SGD", 2, 100, "Singapore Dollar"),
"SHP" to Currency("SHP", 2, 100, "Saint Helena Pound"),
"SLE" to Currency("SLE", 2, 100, "Leone"),
"SOS" to Currency("SOS", 2, 100, "Somali Shilling"),
"SRD" to Currency("SRD", 2, 100, "Surinam Dollar"),
"SSP" to Currency("SSP", 2, 100, "South Sudanese Pound"),
"STN" to Currency("STN", 2, 100, "Dobra"),
"SVC" to Currency("SVC", 2, 100, "El Salvador Colon"),
"SYP" to Currency("SYP", 2, 100, "Syrian Pound"),
"SZL" to Currency("SZL", 2, 100, "Lilangeni"),
"THB" to Currency("THB", 2, 100, "Baht"),
"TJS" to Currency("TJS", 2, 100, "Somoni"),
"TMT" to Currency("TMT", 2, 100, "Turkmenistan New Manat"),
"TND" to Currency("TND", 3, 1000, "Tunisian Dinar"),
"TOP" to Currency("TOP", 2, 100, "Pa’anga"),
"TRY" to Currency("TRY", 2, 100, "Turkish Lira"),
"TTD" to Currency("TTD", 2, 100, "Trinidad and Tobago Dollar"),
"TWD" to Currency("TWD", 2, 100, "New Taiwan Dollar"),
"TZS" to Currency("TZS", 2, 100, "Tanzanian Shilling"),
"UAH" to Currency("UAH", 2, 100, "Hryvnia"),
"UGX" to Currency("UGX", 0, 1, "Uganda Shilling"),
"USD" to Currency("USD", 2, 100, "US Dollar"),
"USN" to Currency("USN", 2, 100, "US Dollar (Next day)"),
"UYI" to Currency("UYI", 0, 1, "Uruguay Peso en Unidades Indexadas (UI)"),
"UYU" to Currency("UYU", 2, 100, "Peso Uruguayo"),
"UYW" to Currency("UYW", 4, 10000, "Unidad Previsional"),
"UZS" to Currency("UZS", 2, 100, "Uzbekistan Sum"),
"VED" to Currency("VED", 2, 100, "Bolívar Soberano"),
"VES" to Currency("VES", 2, 100, "Bolívar Soberano"),
"VND" to Currency("VND", 0, 1, "Dong"),
"VUV" to Currency("VUV", 0, 1, "Vatu"),
"WST" to Currency("WST", 2, 100, "Tala"),
"XAF" to Currency("XAF", 0, 1, "CFA Franc BEAC"),
"XAG" to Currency("XAG", 0, 1, "Silver"),
"XAU" to Currency("XAU", 0, 1, "Gold"),
"XBA" to Currency("XBA", 0, 1, "Bond Markets Unit European Composite Unit (EURCO)"),
"XBB" to Currency("XBB", 0, 1, "Bond Markets Unit European Monetary Unit (E.M.U.-6)"),
"XBC" to Currency("XBC", 0, 1, "Bond Markets Unit European Unit of Account 9 (E.U.A.-9)"),
"XBD" to Currency("XBD", 0, 1, "Bond Markets Unit European Unit of Account 17 (E.U.A.-17)"),
"XCD" to Currency("XCD", 2, 100, "East Caribbean Dollar"),
"XDR" to Currency("XDR", 0, 1, "SDR (Special Drawing Right)"),
"XOF" to Currency("XOF", 0, 1, "CFA Franc BCEAO"),
"XPD" to Currency("XPD", 0, 1, "Palladium"),
"XPF" to Currency("XPF", 0, 1, "CFP Franc"),
"XPT" to Currency("XPT", 0, 1, "Platinum"),
"XSU" to Currency("XSU", 0, 1, "Sucre"),
"XTS" to Currency("XTS", 0, 1, "Codes specifically reserved for testing purposes"),
"XUA" to Currency("XUA", 0, 1, "ADB Unit of Account"),
"XXX" to Currency("XXX", 0, 1, "The codes assigned for transactions where no currency is involved"),
"YER" to Currency("YER", 2, 100, "Yemeni Rial"),
"ZAR" to Currency("ZAR", 2, 100, "Rand"),
"ZMW" to Currency("ZMW", 2, 100, "Zambian Kwacha"),
"ZWG" to Currency("ZWG", 2, 100, "Zimbabwe Gold")
)
}
}