money 6.9.0 → 6.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +131 -3
  3. data/LICENSE +17 -17
  4. data/README.md +181 -71
  5. data/config/currency_backwards_compatible.json +65 -0
  6. data/config/currency_iso.json +119 -56
  7. data/config/currency_non_iso.json +35 -2
  8. data/lib/money/bank/variable_exchange.rb +22 -12
  9. data/lib/money/currency/loader.rb +15 -13
  10. data/lib/money/currency.rb +38 -39
  11. data/lib/money/locale_backend/base.rb +7 -0
  12. data/lib/money/locale_backend/currency.rb +11 -0
  13. data/lib/money/locale_backend/errors.rb +6 -0
  14. data/lib/money/locale_backend/i18n.rb +25 -0
  15. data/lib/money/locale_backend/legacy.rb +28 -0
  16. data/lib/money/money/allocation.rb +46 -0
  17. data/lib/money/money/arithmetic.rb +33 -15
  18. data/lib/money/money/constructors.rb +1 -2
  19. data/lib/money/money/formatter.rb +399 -0
  20. data/lib/money/money/formatting_rules.rb +142 -0
  21. data/lib/money/money/locale_backend.rb +22 -0
  22. data/lib/money/money.rb +235 -187
  23. data/lib/money/rates_store/memory.rb +24 -24
  24. data/lib/money/version.rb +1 -1
  25. data/money.gemspec +14 -8
  26. metadata +36 -56
  27. data/.coveralls.yml +0 -1
  28. data/.gitignore +0 -23
  29. data/.rspec +0 -1
  30. data/.travis.yml +0 -26
  31. data/AUTHORS +0 -126
  32. data/CONTRIBUTING.md +0 -17
  33. data/Gemfile +0 -16
  34. data/Rakefile +0 -17
  35. data/lib/money/money/formatting.rb +0 -426
  36. data/spec/bank/base_spec.rb +0 -79
  37. data/spec/bank/single_currency_spec.rb +0 -13
  38. data/spec/bank/variable_exchange_spec.rb +0 -265
  39. data/spec/currency/heuristics_spec.rb +0 -11
  40. data/spec/currency/loader_spec.rb +0 -19
  41. data/spec/currency_spec.rb +0 -359
  42. data/spec/money/arithmetic_spec.rb +0 -693
  43. data/spec/money/constructors_spec.rb +0 -103
  44. data/spec/money/formatting_spec.rb +0 -757
  45. data/spec/money_spec.rb +0 -778
  46. data/spec/rates_store/memory_spec.rb +0 -69
  47. data/spec/spec_helper.rb +0 -28
@@ -8,6 +8,7 @@
8
8
  "subunit": "Fils",
9
9
  "subunit_to_unit": 100,
10
10
  "symbol_first": false,
11
+ "format": "%n %u",
11
12
  "html_entity": "",
12
13
  "decimal_mark": ".",
13
14
  "thousands_separator": ",",
@@ -23,6 +24,7 @@
23
24
  "subunit": "Pul",
24
25
  "subunit_to_unit": 100,
25
26
  "symbol_first": false,
27
+ "format": "%n %u",
26
28
  "html_entity": "",
27
29
  "decimal_mark": ".",
28
30
  "thousands_separator": ",",
@@ -39,6 +41,7 @@
39
41
  "subunit": "Qintar",
40
42
  "subunit_to_unit": 100,
41
43
  "symbol_first": false,
44
+ "format": "%n %u",
42
45
  "html_entity": "",
43
46
  "decimal_mark": ".",
44
47
  "thousands_separator": ",",
@@ -54,6 +57,7 @@
54
57
  "subunit": "Luma",
55
58
  "subunit_to_unit": 100,
56
59
  "symbol_first": false,
60
+ "format": "%n %u",
57
61
  "html_entity": "",
58
62
  "decimal_mark": ".",
59
63
  "thousands_separator": ",",
@@ -84,6 +88,7 @@
84
88
  "subunit": "Cêntimo",
85
89
  "subunit_to_unit": 100,
86
90
  "symbol_first": false,
91
+ "format": "%n %u",
87
92
  "html_entity": "",
88
93
  "decimal_mark": ".",
89
94
  "thousands_separator": ",",
@@ -100,7 +105,7 @@
100
105
  "subunit": "Centavo",
101
106
  "subunit_to_unit": 100,
102
107
  "symbol_first": true,
103
- "html_entity": "₱",
108
+ "html_entity": "$",
104
109
  "decimal_mark": ",",
105
110
  "thousands_separator": ".",
106
111
  "iso_numeric": "032",
@@ -131,6 +136,7 @@
131
136
  "subunit": "Cent",
132
137
  "subunit_to_unit": 100,
133
138
  "symbol_first": false,
139
+ "format": "%n %u",
134
140
  "html_entity": "ƒ",
135
141
  "decimal_mark": ".",
136
142
  "thousands_separator": ",",
@@ -207,6 +213,7 @@
207
213
  "subunit": "Stotinka",
208
214
  "subunit_to_unit": 100,
209
215
  "symbol_first": false,
216
+ "format": "%n %u",
210
217
  "html_entity": "",
211
218
  "decimal_mark": ".",
212
219
  "thousands_separator": ",",
@@ -217,7 +224,7 @@
217
224
  "priority": 100,
218
225
  "iso_code": "BHD",
219
226
  "name": "Bahraini Dinar",
220
- "symbol": "ب.د",
227
+ "symbol": "د.ب",
221
228
  "alternate_symbols": ["BD"],
222
229
  "subunit": "Fils",
223
230
  "subunit_to_unit": 1000,
@@ -238,6 +245,7 @@
238
245
  "subunit": "Centime",
239
246
  "subunit_to_unit": 1,
240
247
  "symbol_first": false,
248
+ "format": "%n %u",
241
249
  "html_entity": "",
242
250
  "decimal_mark": ".",
243
251
  "thousands_separator": ",",
@@ -330,6 +338,7 @@
330
338
  "subunit": "Chertrum",
331
339
  "subunit_to_unit": 100,
332
340
  "symbol_first": false,
341
+ "format": "%n %u",
333
342
  "html_entity": "",
334
343
  "decimal_mark": ".",
335
344
  "thousands_separator": ",",
@@ -361,6 +370,7 @@
361
370
  "subunit": "Kapeyka",
362
371
  "subunit_to_unit": 100,
363
372
  "symbol_first": false,
373
+ "format": "%n %u",
364
374
  "html_entity": "",
365
375
  "decimal_mark": ",",
366
376
  "thousands_separator": " ",
@@ -377,6 +387,7 @@
377
387
  "subunit": null,
378
388
  "subunit_to_unit": 1,
379
389
  "symbol_first": false,
390
+ "format": "%n %u",
380
391
  "html_entity": "",
381
392
  "decimal_mark": ",",
382
393
  "thousands_separator": " ",
@@ -425,6 +436,7 @@
425
436
  "subunit": "Centime",
426
437
  "subunit_to_unit": 100,
427
438
  "symbol_first": false,
439
+ "format": "%n %u",
428
440
  "html_entity": "",
429
441
  "decimal_mark": ".",
430
442
  "thousands_separator": ",",
@@ -440,6 +452,7 @@
440
452
  "subunit": "Rappen",
441
453
  "subunit_to_unit": 100,
442
454
  "symbol_first": true,
455
+ "format": "%u%n",
443
456
  "html_entity": "",
444
457
  "decimal_mark": ".",
445
458
  "thousands_separator": ",",
@@ -532,6 +545,7 @@
532
545
  "subunit": "Centavo",
533
546
  "subunit_to_unit": 100,
534
547
  "symbol_first": false,
548
+ "format": "%n %u",
535
549
  "html_entity": "",
536
550
  "decimal_mark": ".",
537
551
  "thousands_separator": ",",
@@ -564,6 +578,7 @@
564
578
  "subunit": "Centavo",
565
579
  "subunit_to_unit": 100,
566
580
  "symbol_first": false,
581
+ "format": "%n %u",
567
582
  "html_entity": "",
568
583
  "decimal_mark": ".",
569
584
  "thousands_separator": ",",
@@ -579,6 +594,7 @@
579
594
  "subunit": "Haléř",
580
595
  "subunit_to_unit": 100,
581
596
  "symbol_first": false,
597
+ "format": "%n %u",
582
598
  "html_entity": "",
583
599
  "decimal_mark": ",",
584
600
  "thousands_separator": " ",
@@ -594,6 +610,7 @@
594
610
  "subunit": "Centime",
595
611
  "subunit_to_unit": 1,
596
612
  "symbol_first": false,
613
+ "format": "%n %u",
597
614
  "html_entity": "",
598
615
  "decimal_mark": ".",
599
616
  "thousands_separator": ",",
@@ -610,6 +627,7 @@
610
627
  "subunit": "Øre",
611
628
  "subunit_to_unit": 100,
612
629
  "symbol_first": false,
630
+ "format": "%n %u",
613
631
  "html_entity": "",
614
632
  "decimal_mark": ",",
615
633
  "thousands_separator": ".",
@@ -641,6 +659,7 @@
641
659
  "subunit": "Centime",
642
660
  "subunit_to_unit": 100,
643
661
  "symbol_first": false,
662
+ "format": "%n %u",
644
663
  "html_entity": "",
645
664
  "decimal_mark": ".",
646
665
  "thousands_separator": ",",
@@ -671,6 +690,7 @@
671
690
  "subunit": "Cent",
672
691
  "subunit_to_unit": 100,
673
692
  "symbol_first": false,
693
+ "format": "%n %u",
674
694
  "html_entity": "",
675
695
  "decimal_mark": ".",
676
696
  "thousands_separator": ",",
@@ -687,6 +707,7 @@
687
707
  "subunit": "Santim",
688
708
  "subunit_to_unit": 100,
689
709
  "symbol_first": false,
710
+ "format": "%n %u",
690
711
  "html_entity": "",
691
712
  "decimal_mark": ".",
692
713
  "thousands_separator": ",",
@@ -718,6 +739,7 @@
718
739
  "subunit": "Cent",
719
740
  "subunit_to_unit": 100,
720
741
  "symbol_first": false,
742
+ "format": "%n %u",
721
743
  "html_entity": "$",
722
744
  "decimal_mark": ".",
723
745
  "thousands_separator": ",",
@@ -734,6 +756,7 @@
734
756
  "subunit": "Penny",
735
757
  "subunit_to_unit": 100,
736
758
  "symbol_first": false,
759
+ "format": "%n %u",
737
760
  "html_entity": "£",
738
761
  "decimal_mark": ".",
739
762
  "thousands_separator": ",",
@@ -764,6 +787,7 @@
764
787
  "subunit": "Tetri",
765
788
  "subunit_to_unit": 100,
766
789
  "symbol_first": false,
790
+ "format": "%n %u",
767
791
  "html_entity": "",
768
792
  "decimal_mark": ".",
769
793
  "thousands_separator": ",",
@@ -810,6 +834,7 @@
810
834
  "subunit": "Butut",
811
835
  "subunit_to_unit": 100,
812
836
  "symbol_first": false,
837
+ "format": "%n %u",
813
838
  "html_entity": "",
814
839
  "decimal_mark": ".",
815
840
  "thousands_separator": ",",
@@ -826,6 +851,7 @@
826
851
  "subunit": "Centime",
827
852
  "subunit_to_unit": 1,
828
853
  "symbol_first": false,
854
+ "format": "%n %u",
829
855
  "html_entity": "",
830
856
  "decimal_mark": ".",
831
857
  "thousands_separator": ",",
@@ -857,6 +883,7 @@
857
883
  "subunit": "Cent",
858
884
  "subunit_to_unit": 100,
859
885
  "symbol_first": false,
886
+ "format": "%n %u",
860
887
  "html_entity": "$",
861
888
  "decimal_mark": ".",
862
889
  "thousands_separator": ",",
@@ -904,6 +931,7 @@
904
931
  "subunit": "Lipa",
905
932
  "subunit_to_unit": 100,
906
933
  "symbol_first": false,
934
+ "format": "%n %u",
907
935
  "html_entity": "",
908
936
  "decimal_mark": ",",
909
937
  "thousands_separator": ".",
@@ -919,6 +947,7 @@
919
947
  "subunit": "Centime",
920
948
  "subunit_to_unit": 100,
921
949
  "symbol_first": false,
950
+ "format": "%n %u",
922
951
  "html_entity": "",
923
952
  "decimal_mark": ".",
924
953
  "thousands_separator": ",",
@@ -931,12 +960,13 @@
931
960
  "name": "Hungarian Forint",
932
961
  "symbol": "Ft",
933
962
  "alternate_symbols": [],
934
- "subunit": "Fillér",
963
+ "subunit": "",
935
964
  "subunit_to_unit": 1,
936
965
  "symbol_first": false,
966
+ "format": "%n %u",
937
967
  "html_entity": "",
938
968
  "decimal_mark": ",",
939
- "thousands_separator": ".",
969
+ "thousands_separator": " ",
940
970
  "iso_numeric": "348",
941
971
  "smallest_denomination": 5
942
972
  },
@@ -994,6 +1024,7 @@
994
1024
  "subunit": "Fils",
995
1025
  "subunit_to_unit": 1000,
996
1026
  "symbol_first": false,
1027
+ "format": "%n %u",
997
1028
  "html_entity": "",
998
1029
  "decimal_mark": ".",
999
1030
  "thousands_separator": ",",
@@ -1019,11 +1050,12 @@
1019
1050
  "priority": 100,
1020
1051
  "iso_code": "ISK",
1021
1052
  "name": "Icelandic Króna",
1022
- "symbol": "kr",
1053
+ "symbol": "kr.",
1023
1054
  "alternate_symbols": ["Íkr"],
1024
1055
  "subunit": null,
1025
1056
  "subunit_to_unit": 1,
1026
- "symbol_first": true,
1057
+ "symbol_first": false,
1058
+ "format": "%n %u",
1027
1059
  "html_entity": "",
1028
1060
  "decimal_mark": ",",
1029
1061
  "thousands_separator": ".",
@@ -1100,6 +1132,7 @@
1100
1132
  "subunit": "Tyiyn",
1101
1133
  "subunit_to_unit": 100,
1102
1134
  "symbol_first": false,
1135
+ "format": "%n %u",
1103
1136
  "html_entity": "",
1104
1137
  "decimal_mark": ".",
1105
1138
  "thousands_separator": ",",
@@ -1115,6 +1148,7 @@
1115
1148
  "subunit": "Sen",
1116
1149
  "subunit_to_unit": 100,
1117
1150
  "symbol_first": false,
1151
+ "format": "%n %u",
1118
1152
  "html_entity": "៛",
1119
1153
  "decimal_mark": ".",
1120
1154
  "thousands_separator": ",",
@@ -1131,6 +1165,7 @@
1131
1165
  "subunit": "Centime",
1132
1166
  "subunit_to_unit": 1,
1133
1167
  "symbol_first": false,
1168
+ "format": "%n %u",
1134
1169
  "html_entity": "",
1135
1170
  "decimal_mark": ".",
1136
1171
  "thousands_separator": ",",
@@ -1146,6 +1181,7 @@
1146
1181
  "subunit": "Chŏn",
1147
1182
  "subunit_to_unit": 100,
1148
1183
  "symbol_first": false,
1184
+ "format": "%n %u",
1149
1185
  "html_entity": "₩",
1150
1186
  "decimal_mark": ".",
1151
1187
  "thousands_separator": ",",
@@ -1202,11 +1238,12 @@
1202
1238
  "priority": 100,
1203
1239
  "iso_code": "KZT",
1204
1240
  "name": "Kazakhstani Tenge",
1205
- "symbol": "",
1241
+ "symbol": "",
1206
1242
  "alternate_symbols": [],
1207
1243
  "subunit": "Tiyn",
1208
1244
  "subunit_to_unit": 100,
1209
1245
  "symbol_first": false,
1246
+ "format": "%n %u",
1210
1247
  "html_entity": "",
1211
1248
  "decimal_mark": ".",
1212
1249
  "thousands_separator": ",",
@@ -1222,6 +1259,7 @@
1222
1259
  "subunit": "Att",
1223
1260
  "subunit_to_unit": 100,
1224
1261
  "symbol_first": false,
1262
+ "format": "%n %u",
1225
1263
  "html_entity": "₭",
1226
1264
  "decimal_mark": ".",
1227
1265
  "thousands_separator": ",",
@@ -1253,6 +1291,7 @@
1253
1291
  "subunit": "Cent",
1254
1292
  "subunit_to_unit": 100,
1255
1293
  "symbol_first": false,
1294
+ "format": "%n %u",
1256
1295
  "html_entity": "₨",
1257
1296
  "decimal_mark": ".",
1258
1297
  "thousands_separator": ",",
@@ -1269,6 +1308,7 @@
1269
1308
  "subunit": "Cent",
1270
1309
  "subunit_to_unit": 100,
1271
1310
  "symbol_first": false,
1311
+ "format": "%n %u",
1272
1312
  "html_entity": "$",
1273
1313
  "decimal_mark": ".",
1274
1314
  "thousands_separator": ",",
@@ -1285,42 +1325,13 @@
1285
1325
  "subunit": "Sente",
1286
1326
  "subunit_to_unit": 100,
1287
1327
  "symbol_first": false,
1328
+ "format": "%n %u",
1288
1329
  "html_entity": "",
1289
1330
  "decimal_mark": ".",
1290
1331
  "thousands_separator": ",",
1291
1332
  "iso_numeric": "426",
1292
1333
  "smallest_denomination": 1
1293
1334
  },
1294
- "ltl": {
1295
- "priority": 100,
1296
- "iso_code": "LTL",
1297
- "name": "Lithuanian Litas",
1298
- "symbol": "Lt",
1299
- "alternate_symbols": [],
1300
- "subunit": "Centas",
1301
- "subunit_to_unit": 100,
1302
- "symbol_first": false,
1303
- "html_entity": "",
1304
- "decimal_mark": ".",
1305
- "thousands_separator": ",",
1306
- "iso_numeric": "440",
1307
- "smallest_denomination": 1
1308
- },
1309
- "lvl": {
1310
- "priority": 100,
1311
- "iso_code": "LVL",
1312
- "name": "Latvian Lats",
1313
- "symbol": "Ls",
1314
- "alternate_symbols": [],
1315
- "subunit": "Santīms",
1316
- "subunit_to_unit": 100,
1317
- "symbol_first": true,
1318
- "html_entity": "",
1319
- "decimal_mark": ".",
1320
- "thousands_separator": ",",
1321
- "iso_numeric": "428",
1322
- "smallest_denomination": 1
1323
- },
1324
1335
  "lyd": {
1325
1336
  "priority": 100,
1326
1337
  "iso_code": "LYD",
@@ -1330,6 +1341,7 @@
1330
1341
  "subunit": "Dirham",
1331
1342
  "subunit_to_unit": 1000,
1332
1343
  "symbol_first": false,
1344
+ "format": "%n %u",
1333
1345
  "html_entity": "",
1334
1346
  "decimal_mark": ".",
1335
1347
  "thousands_separator": ",",
@@ -1345,6 +1357,7 @@
1345
1357
  "subunit": "Centime",
1346
1358
  "subunit_to_unit": 100,
1347
1359
  "symbol_first": false,
1360
+ "format": "%n %u",
1348
1361
  "html_entity": "",
1349
1362
  "decimal_mark": ".",
1350
1363
  "thousands_separator": ",",
@@ -1360,6 +1373,7 @@
1360
1373
  "subunit": "Ban",
1361
1374
  "subunit_to_unit": 100,
1362
1375
  "symbol_first": false,
1376
+ "format": "%n %u",
1363
1377
  "html_entity": "",
1364
1378
  "decimal_mark": ".",
1365
1379
  "thousands_separator": ",",
@@ -1390,6 +1404,7 @@
1390
1404
  "subunit": "Deni",
1391
1405
  "subunit_to_unit": 100,
1392
1406
  "symbol_first": false,
1407
+ "format": "%n %u",
1393
1408
  "html_entity": "",
1394
1409
  "decimal_mark": ".",
1395
1410
  "thousands_separator": ",",
@@ -1406,6 +1421,7 @@
1406
1421
  "subunit": "Pya",
1407
1422
  "subunit_to_unit": 100,
1408
1423
  "symbol_first": false,
1424
+ "format": "%n %u",
1409
1425
  "html_entity": "",
1410
1426
  "decimal_mark": ".",
1411
1427
  "thousands_separator": ",",
@@ -1421,6 +1437,7 @@
1421
1437
  "subunit": "Möngö",
1422
1438
  "subunit_to_unit": 100,
1423
1439
  "symbol_first": false,
1440
+ "format": "%n %u",
1424
1441
  "html_entity": "₮",
1425
1442
  "decimal_mark": ".",
1426
1443
  "thousands_separator": ",",
@@ -1436,25 +1453,27 @@
1436
1453
  "subunit": "Avo",
1437
1454
  "subunit_to_unit": 100,
1438
1455
  "symbol_first": false,
1456
+ "format": "%n %u",
1439
1457
  "html_entity": "",
1440
1458
  "decimal_mark": ".",
1441
1459
  "thousands_separator": ",",
1442
1460
  "iso_numeric": "446",
1443
1461
  "smallest_denomination": 10
1444
1462
  },
1445
- "mro": {
1463
+ "mru": {
1446
1464
  "priority": 100,
1447
- "iso_code": "MRO",
1465
+ "iso_code": "MRU",
1448
1466
  "name": "Mauritanian Ouguiya",
1449
1467
  "symbol": "UM",
1450
1468
  "alternate_symbols": [],
1451
1469
  "subunit": "Khoums",
1452
1470
  "subunit_to_unit": 5,
1453
1471
  "symbol_first": false,
1472
+ "format": "%n %u",
1454
1473
  "html_entity": "",
1455
1474
  "decimal_mark": ".",
1456
1475
  "thousands_separator": ",",
1457
- "iso_numeric": "478",
1476
+ "iso_numeric": "929",
1458
1477
  "smallest_denomination": 1
1459
1478
  },
1460
1479
  "mur": {
@@ -1481,6 +1500,7 @@
1481
1500
  "subunit": "Laari",
1482
1501
  "subunit_to_unit": 100,
1483
1502
  "symbol_first": false,
1503
+ "format": "%n %u",
1484
1504
  "html_entity": "",
1485
1505
  "decimal_mark": ".",
1486
1506
  "thousands_separator": ",",
@@ -1496,6 +1516,7 @@
1496
1516
  "subunit": "Tambala",
1497
1517
  "subunit_to_unit": 100,
1498
1518
  "symbol_first": false,
1519
+ "format": "%n %u",
1499
1520
  "html_entity": "",
1500
1521
  "decimal_mark": ".",
1501
1522
  "thousands_separator": ",",
@@ -1558,6 +1579,7 @@
1558
1579
  "subunit": "Cent",
1559
1580
  "subunit_to_unit": 100,
1560
1581
  "symbol_first": false,
1582
+ "format": "%n %u",
1561
1583
  "html_entity": "$",
1562
1584
  "decimal_mark": ".",
1563
1585
  "thousands_separator": ",",
@@ -1605,6 +1627,7 @@
1605
1627
  "subunit": "Øre",
1606
1628
  "subunit_to_unit": 100,
1607
1629
  "symbol_first": false,
1630
+ "format": "%n %u",
1608
1631
  "html_entity": "kr",
1609
1632
  "decimal_mark": ",",
1610
1633
  "thousands_separator": ".",
@@ -1615,9 +1638,9 @@
1615
1638
  "priority": 100,
1616
1639
  "iso_code": "NPR",
1617
1640
  "name": "Nepalese Rupee",
1618
- "symbol": "",
1641
+ "symbol": "Rs.",
1619
1642
  "disambiguate_symbol": "NPR",
1620
- "alternate_symbols": ["Rs", "रू"],
1643
+ "alternate_symbols": ["Rs", "रू", "₨"],
1621
1644
  "subunit": "Paisa",
1622
1645
  "subunit_to_unit": 100,
1623
1646
  "symbol_first": true,
@@ -1677,12 +1700,12 @@
1677
1700
  "priority": 100,
1678
1701
  "iso_code": "PEN",
1679
1702
  "name": "Peruvian Sol",
1680
- "symbol": "S/.",
1703
+ "symbol": "S/",
1681
1704
  "alternate_symbols": [],
1682
1705
  "subunit": "Céntimo",
1683
1706
  "subunit_to_unit": 100,
1684
1707
  "symbol_first": true,
1685
- "html_entity": "S/.",
1708
+ "html_entity": "S/",
1686
1709
  "decimal_mark": ".",
1687
1710
  "thousands_separator": ",",
1688
1711
  "iso_numeric": "604",
@@ -1698,6 +1721,7 @@
1698
1721
  "subunit": "Toea",
1699
1722
  "subunit_to_unit": 100,
1700
1723
  "symbol_first": false,
1724
+ "format": "%n %u",
1701
1725
  "html_entity": "",
1702
1726
  "decimal_mark": ".",
1703
1727
  "thousands_separator": ",",
@@ -1744,6 +1768,7 @@
1744
1768
  "subunit": "Grosz",
1745
1769
  "subunit_to_unit": 100,
1746
1770
  "symbol_first": false,
1771
+ "format": "%n %u",
1747
1772
  "html_entity": "zł",
1748
1773
  "decimal_mark": ",",
1749
1774
  "thousands_separator": " ",
@@ -1774,6 +1799,7 @@
1774
1799
  "subunit": "Dirham",
1775
1800
  "subunit_to_unit": 100,
1776
1801
  "symbol_first": false,
1802
+ "format": "%n %u",
1777
1803
  "html_entity": "﷼",
1778
1804
  "decimal_mark": ".",
1779
1805
  "thousands_separator": ",",
@@ -1789,6 +1815,7 @@
1789
1815
  "subunit": "Bani",
1790
1816
  "subunit_to_unit": 100,
1791
1817
  "symbol_first": false,
1818
+ "format": "%n %u",
1792
1819
  "html_entity": "",
1793
1820
  "decimal_mark": ",",
1794
1821
  "thousands_separator": ".",
@@ -1819,6 +1846,7 @@
1819
1846
  "subunit": "Kopeck",
1820
1847
  "subunit_to_unit": 100,
1821
1848
  "symbol_first": false,
1849
+ "format": "%n %u",
1822
1850
  "html_entity": "₽",
1823
1851
  "decimal_mark": ",",
1824
1852
  "thousands_separator": ".",
@@ -1834,6 +1862,7 @@
1834
1862
  "subunit": "Centime",
1835
1863
  "subunit_to_unit": 1,
1836
1864
  "symbol_first": false,
1865
+ "format": "%n %u",
1837
1866
  "html_entity": "",
1838
1867
  "decimal_mark": ".",
1839
1868
  "thousands_separator": ",",
@@ -1865,6 +1894,7 @@
1865
1894
  "subunit": "Cent",
1866
1895
  "subunit_to_unit": 100,
1867
1896
  "symbol_first": false,
1897
+ "format": "%n %u",
1868
1898
  "html_entity": "$",
1869
1899
  "decimal_mark": ".",
1870
1900
  "thousands_separator": ",",
@@ -1881,6 +1911,7 @@
1881
1911
  "subunit": "Cent",
1882
1912
  "subunit_to_unit": 100,
1883
1913
  "symbol_first": false,
1914
+ "format": "%n %u",
1884
1915
  "html_entity": "₨",
1885
1916
  "decimal_mark": ".",
1886
1917
  "thousands_separator": ",",
@@ -1913,6 +1944,7 @@
1913
1944
  "subunit": "Öre",
1914
1945
  "subunit_to_unit": 100,
1915
1946
  "symbol_first": false,
1947
+ "format": "%n %u",
1916
1948
  "html_entity": "",
1917
1949
  "decimal_mark": ",",
1918
1950
  "thousands_separator": " ",
@@ -1945,6 +1977,7 @@
1945
1977
  "subunit": "Penny",
1946
1978
  "subunit_to_unit": 100,
1947
1979
  "symbol_first": false,
1980
+ "format": "%n %u",
1948
1981
  "html_entity": "£",
1949
1982
  "decimal_mark": ".",
1950
1983
  "thousands_separator": ",",
@@ -1975,6 +2008,7 @@
1975
2008
  "subunit": "Cent",
1976
2009
  "subunit_to_unit": 100,
1977
2010
  "symbol_first": false,
2011
+ "format": "%n %u",
1978
2012
  "html_entity": "",
1979
2013
  "decimal_mark": ".",
1980
2014
  "thousands_separator": ",",
@@ -1990,6 +2024,7 @@
1990
2024
  "subunit": "Cent",
1991
2025
  "subunit_to_unit": 100,
1992
2026
  "symbol_first": false,
2027
+ "format": "%n %u",
1993
2028
  "html_entity": "",
1994
2029
  "decimal_mark": ".",
1995
2030
  "thousands_separator": ",",
@@ -2006,6 +2041,7 @@
2006
2041
  "subunit": "Cent",
2007
2042
  "subunit_to_unit": 100,
2008
2043
  "symbol_first": false,
2044
+ "format": "%n %u",
2009
2045
  "html_entity": "",
2010
2046
  "decimal_mark": ".",
2011
2047
  "thousands_separator": ",",
@@ -2022,6 +2058,7 @@
2022
2058
  "subunit": "piaster",
2023
2059
  "subunit_to_unit": 100,
2024
2060
  "symbol_first": false,
2061
+ "format": "%n %u",
2025
2062
  "html_entity": "£",
2026
2063
  "decimal_mark": ".",
2027
2064
  "thousands_separator": ",",
@@ -2037,6 +2074,7 @@
2037
2074
  "subunit": "Cêntimo",
2038
2075
  "subunit_to_unit": 100,
2039
2076
  "symbol_first": false,
2077
+ "format": "%n %u",
2040
2078
  "html_entity": "",
2041
2079
  "decimal_mark": ".",
2042
2080
  "thousands_separator": ",",
@@ -2067,6 +2105,7 @@
2067
2105
  "subunit": "Piastre",
2068
2106
  "subunit_to_unit": 100,
2069
2107
  "symbol_first": false,
2108
+ "format": "%n %u",
2070
2109
  "html_entity": "£",
2071
2110
  "decimal_mark": ".",
2072
2111
  "thousands_separator": ",",
@@ -2112,6 +2151,7 @@
2112
2151
  "subunit": "Diram",
2113
2152
  "subunit_to_unit": 100,
2114
2153
  "symbol_first": false,
2154
+ "format": "%n %u",
2115
2155
  "html_entity": "",
2116
2156
  "decimal_mark": ".",
2117
2157
  "thousands_separator": ",",
@@ -2127,6 +2167,7 @@
2127
2167
  "subunit": "Tenge",
2128
2168
  "subunit_to_unit": 100,
2129
2169
  "symbol_first": false,
2170
+ "format": "%n %u",
2130
2171
  "html_entity": "",
2131
2172
  "decimal_mark": ".",
2132
2173
  "thousands_separator": ",",
@@ -2142,6 +2183,7 @@
2142
2183
  "subunit": "Millime",
2143
2184
  "subunit_to_unit": 1000,
2144
2185
  "symbol_first": false,
2186
+ "format": "%n %u",
2145
2187
  "html_entity": "",
2146
2188
  "decimal_mark": ".",
2147
2189
  "thousands_separator": ",",
@@ -2188,6 +2230,7 @@
2188
2230
  "subunit": "Cent",
2189
2231
  "subunit_to_unit": 100,
2190
2232
  "symbol_first": false,
2233
+ "format": "%n %u",
2191
2234
  "html_entity": "$",
2192
2235
  "decimal_mark": ".",
2193
2236
  "thousands_separator": ",",
@@ -2234,6 +2277,7 @@
2234
2277
  "subunit": "Kopiyka",
2235
2278
  "subunit_to_unit": 100,
2236
2279
  "symbol_first": false,
2280
+ "format": "%n %u",
2237
2281
  "html_entity": "₴",
2238
2282
  "decimal_mark": ".",
2239
2283
  "thousands_separator": ",",
@@ -2249,6 +2293,7 @@
2249
2293
  "subunit": "Cent",
2250
2294
  "subunit_to_unit": 1,
2251
2295
  "symbol_first": false,
2296
+ "format": "%n %u",
2252
2297
  "html_entity": "",
2253
2298
  "decimal_mark": ".",
2254
2299
  "thousands_separator": ",",
@@ -2275,12 +2320,12 @@
2275
2320
  "priority": 100,
2276
2321
  "iso_code": "UYU",
2277
2322
  "name": "Uruguayan Peso",
2278
- "symbol": "$",
2323
+ "symbol": "$U",
2279
2324
  "alternate_symbols": ["$U"],
2280
2325
  "subunit": "Centésimo",
2281
2326
  "subunit_to_unit": 100,
2282
2327
  "symbol_first": true,
2283
- "html_entity": "₱",
2328
+ "html_entity": "$U",
2284
2329
  "decimal_mark": ",",
2285
2330
  "thousands_separator": ".",
2286
2331
  "iso_numeric": "858",
@@ -2290,30 +2335,31 @@
2290
2335
  "priority": 100,
2291
2336
  "iso_code": "UZS",
2292
2337
  "name": "Uzbekistan Som",
2293
- "symbol": "",
2338
+ "symbol": "so'm",
2294
2339
  "alternate_symbols": ["so‘m", "сўм", "сум", "s", "с"],
2295
2340
  "subunit": "Tiyin",
2296
2341
  "subunit_to_unit": 100,
2297
2342
  "symbol_first": false,
2343
+ "format": "%n %u",
2298
2344
  "html_entity": "",
2299
2345
  "decimal_mark": ".",
2300
2346
  "thousands_separator": ",",
2301
2347
  "iso_numeric": "860",
2302
2348
  "smallest_denomination": 100
2303
2349
  },
2304
- "vef": {
2350
+ "ves": {
2305
2351
  "priority": 100,
2306
- "iso_code": "VEF",
2307
- "name": "Venezuelan Bolívar",
2352
+ "iso_code": "VES",
2353
+ "name": "Venezuelan Bolívar Soberano",
2308
2354
  "symbol": "Bs",
2309
- "alternate_symbols": ["Bs.F"],
2355
+ "alternate_symbols": ["Bs.S"],
2310
2356
  "subunit": "Céntimo",
2311
2357
  "subunit_to_unit": 100,
2312
2358
  "symbol_first": true,
2313
2359
  "html_entity": "",
2314
2360
  "decimal_mark": ",",
2315
2361
  "thousands_separator": ".",
2316
- "iso_numeric": "937",
2362
+ "iso_numeric": "928",
2317
2363
  "smallest_denomination": 1
2318
2364
  },
2319
2365
  "vnd": {
@@ -2325,6 +2371,7 @@
2325
2371
  "subunit": "Hào",
2326
2372
  "subunit_to_unit": 1,
2327
2373
  "symbol_first": false,
2374
+ "format": "%n %u",
2328
2375
  "html_entity": "₫",
2329
2376
  "decimal_mark": ",",
2330
2377
  "thousands_separator": ".",
@@ -2356,6 +2403,7 @@
2356
2403
  "subunit": "Sene",
2357
2404
  "subunit_to_unit": 100,
2358
2405
  "symbol_first": false,
2406
+ "format": "%n %u",
2359
2407
  "html_entity": "",
2360
2408
  "decimal_mark": ".",
2361
2409
  "thousands_separator": ",",
@@ -2366,12 +2414,13 @@
2366
2414
  "priority": 100,
2367
2415
  "iso_code": "XAF",
2368
2416
  "name": "Central African Cfa Franc",
2369
- "symbol": "Fr",
2417
+ "symbol": "CFA",
2370
2418
  "disambiguate_symbol": "FCFA",
2371
2419
  "alternate_symbols": ["FCFA"],
2372
2420
  "subunit": "Centime",
2373
2421
  "subunit_to_unit": 1,
2374
2422
  "symbol_first": false,
2423
+ "format": "%n %u",
2375
2424
  "html_entity": "",
2376
2425
  "decimal_mark": ".",
2377
2426
  "thousands_separator": ",",
@@ -2388,6 +2437,7 @@
2388
2437
  "subunit": "oz",
2389
2438
  "subunit_to_unit": 1,
2390
2439
  "symbol_first": false,
2440
+ "format": "%n %u",
2391
2441
  "html_entity": "",
2392
2442
  "decimal_mark": ".",
2393
2443
  "thousands_separator": ",",
@@ -2403,6 +2453,7 @@
2403
2453
  "subunit": "oz",
2404
2454
  "subunit_to_unit": 1,
2405
2455
  "symbol_first": false,
2456
+ "format": "%n %u",
2406
2457
  "html_entity": "",
2407
2458
  "decimal_mark": ".",
2408
2459
  "thousands_separator": ",",
@@ -2418,6 +2469,7 @@
2418
2469
  "subunit": "",
2419
2470
  "subunit_to_unit": 1,
2420
2471
  "symbol_first": false,
2472
+ "format": "%n %u",
2421
2473
  "html_entity": "",
2422
2474
  "decimal_mark": ".",
2423
2475
  "thousands_separator": ",",
@@ -2433,6 +2485,7 @@
2433
2485
  "subunit": "",
2434
2486
  "subunit_to_unit": 1,
2435
2487
  "symbol_first": false,
2488
+ "format": "%n %u",
2436
2489
  "html_entity": "",
2437
2490
  "decimal_mark": ".",
2438
2491
  "thousands_separator": ",",
@@ -2448,6 +2501,7 @@
2448
2501
  "subunit": "",
2449
2502
  "subunit_to_unit": 1,
2450
2503
  "symbol_first": false,
2504
+ "format": "%n %u",
2451
2505
  "html_entity": "",
2452
2506
  "decimal_mark": ".",
2453
2507
  "thousands_separator": ",",
@@ -2463,6 +2517,7 @@
2463
2517
  "subunit": "",
2464
2518
  "subunit_to_unit": 1,
2465
2519
  "symbol_first": false,
2520
+ "format": "%n %u",
2466
2521
  "html_entity": "",
2467
2522
  "decimal_mark": ".",
2468
2523
  "thousands_separator": ",",
@@ -2493,6 +2548,7 @@
2493
2548
  "subunit": "",
2494
2549
  "subunit_to_unit": 1,
2495
2550
  "symbol_first": false,
2551
+ "format": "%n %u",
2496
2552
  "html_entity": "$",
2497
2553
  "decimal_mark": ".",
2498
2554
  "thousands_separator": ",",
@@ -2508,6 +2564,7 @@
2508
2564
  "subunit": "Centime",
2509
2565
  "subunit_to_unit": 1,
2510
2566
  "symbol_first": false,
2567
+ "format": "%n %u",
2511
2568
  "html_entity": "",
2512
2569
  "decimal_mark": ".",
2513
2570
  "thousands_separator": ",",
@@ -2524,6 +2581,7 @@
2524
2581
  "subunit": "oz",
2525
2582
  "subunit_to_unit": 1,
2526
2583
  "symbol_first": false,
2584
+ "format": "%n %u",
2527
2585
  "html_entity": "",
2528
2586
  "decimal_mark": ".",
2529
2587
  "thousands_separator": ",",
@@ -2538,6 +2596,7 @@
2538
2596
  "subunit": "Centime",
2539
2597
  "subunit_to_unit": 1,
2540
2598
  "symbol_first": false,
2599
+ "format": "%n %u",
2541
2600
  "html_entity": "",
2542
2601
  "decimal_mark": ".",
2543
2602
  "thousands_separator": ",",
@@ -2553,6 +2612,7 @@
2553
2612
  "subunit": "",
2554
2613
  "subunit_to_unit": 1,
2555
2614
  "symbol_first": false,
2615
+ "format": "%n %u",
2556
2616
  "html_entity": "",
2557
2617
  "decimal_mark": ".",
2558
2618
  "thousands_separator": ",",
@@ -2561,13 +2621,14 @@
2561
2621
  },
2562
2622
  "xts": {
2563
2623
  "priority": 100,
2564
- "iso_code": "xts",
2624
+ "iso_code": "XTS",
2565
2625
  "name": "Codes specifically reserved for testing purposes",
2566
2626
  "symbol": "",
2567
2627
  "alternate_symbols": [],
2568
2628
  "subunit": "",
2569
2629
  "subunit_to_unit": 1,
2570
2630
  "symbol_first": false,
2631
+ "format": "%n %u",
2571
2632
  "html_entity": "",
2572
2633
  "decimal_mark": ".",
2573
2634
  "thousands_separator": ",",
@@ -2583,6 +2644,7 @@
2583
2644
  "subunit": "Fils",
2584
2645
  "subunit_to_unit": 100,
2585
2646
  "symbol_first": false,
2647
+ "format": "%n %u",
2586
2648
  "html_entity": "﷼",
2587
2649
  "decimal_mark": ".",
2588
2650
  "thousands_separator": ",",
@@ -2614,6 +2676,7 @@
2614
2676
  "subunit": "Ngwee",
2615
2677
  "subunit_to_unit": 100,
2616
2678
  "symbol_first": false,
2679
+ "format": "%n %u",
2617
2680
  "html_entity": "",
2618
2681
  "decimal_mark": ".",
2619
2682
  "thousands_separator": ",",
@@ -2624,12 +2687,12 @@
2624
2687
  "priority": 100,
2625
2688
  "iso_code": "ZMW",
2626
2689
  "name": "Zambian Kwacha",
2627
- "symbol": "ZK",
2690
+ "symbol": "K",
2628
2691
  "disambiguate_symbol": "ZMW",
2629
2692
  "alternate_symbols": [],
2630
2693
  "subunit": "Ngwee",
2631
2694
  "subunit_to_unit": 100,
2632
- "symbol_first": false,
2695
+ "symbol_first": true,
2633
2696
  "html_entity": "",
2634
2697
  "decimal_mark": ".",
2635
2698
  "thousands_separator": ",",