{- This is a machine generated module.
   Do not edit.
   See cabal file for repository url.
-}
{- | Two letter Country Codes

     Defines the type CountryCode with constructors for each
     of the two-letter codes defined in
     <http://www.iso.org/iso/list-en1-semic-3.txt> and
     instances for 'Eq', 'Read', 'Show', 'Enum', 'Bounded'
     and 'Ord'.

     Also defines @'countryNameFromCode'@, which gives the
     official short country name all in uppercase and
     @'readableCountryName'@, which produces somewhat more user-friendly output

     Intended to be imported qualified as some country codes
     are the same as some standard Haskell constructors.

-}
{-# LANGUAGE CPP #-}
#if __GLASGOW_HASKELL__ >= 701
{-# LANGUAGE DeriveGeneric #-}
#endif
module Data.ISO3166_CountryCodes
    (CountryCode(..),
     countryNameFromCode,
     readableCountryName
    ) where
import qualified Prelude as P
import Prelude ((.),not,(==),otherwise,(&&),(==),(/=))
import Control.Monad
import Data.Char
import Data.List

#if __GLASGOW_HASKELL__ >= 701
import qualified GHC.Generics as G
#endif

{- | A human readable version of the official name of a country
     from its country code

     Uses some ad-hockery to rearrange the order of the words.

-}
readableCountryName :: CountryCode -> P.String

readableCountryName :: CountryCode -> String
readableCountryName
    = [String] -> String
forall (t :: * -> *) a. Foldable t => t [a] -> [a]
concat ([String] -> String)
-> (CountryCode -> [String]) -> CountryCode -> String
forall b c a. (b -> c) -> (a -> b) -> a -> c
. String -> [String] -> [String]
forall a. a -> [a] -> [a]
intersperse String
" " ([String] -> [String])
-> (CountryCode -> [String]) -> CountryCode -> [String]
forall b c a. (b -> c) -> (a -> b) -> a -> c
. [String] -> [String]
rearrange ([String] -> [String])
-> (CountryCode -> [String]) -> CountryCode -> [String]
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (String -> String) -> [String] -> [String]
forall a b. (a -> b) -> [a] -> [b]
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap String -> String
up1 ([String] -> [String])
-> (CountryCode -> [String]) -> CountryCode -> [String]
forall b c a. (b -> c) -> (a -> b) -> a -> c
. String -> [String]
words (String -> [String])
-> (CountryCode -> String) -> CountryCode -> [String]
forall b c a. (b -> c) -> (a -> b) -> a -> c
.
      (Char -> Char) -> String -> String
forall a b. (a -> b) -> [a] -> [b]
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Char -> Char
toUpper (String -> String)
-> (CountryCode -> String) -> CountryCode -> String
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CountryCode -> String
countryNameFromCode
      where up1 :: String -> String
up1 [] = []
            up1 (Char
c:String
rest) | Bool -> Bool
not (Char -> Bool
isAlpha Char
c) = Char
cChar -> String -> String
forall a. a -> [a] -> [a]
:String -> String
up1 String
rest
            up1 String
"OF" = String
"of"
            up1 String
"THE" = String
"the"
            up1 String
"AND" = String
"and"
            up1 String
"U.S." = String
"US" -- gawd
            up1 (Char
'M':Char
'C':String
l) = String
"Mc"String -> String -> String
forall a. [a] -> [a] -> [a]
++String -> String
up1 String
l -- Don't do MacEdonia!
                                          -- but there are no Mac_ countries yet
            up1 (Char
'D':Char
'\'':String
l) = String
"d'"String -> String -> String
forall a. [a] -> [a] -> [a]
++String -> String
up1 String
l
            up1 (Char
c:String
cs) = Char -> Char
toUpper Char
cChar -> String -> String
forall a. a -> [a] -> [a]
: String -> String
downup String
cs
            downup :: String -> String
downup [] = [] -- needed for hyphenated names
            downup (Char
c:String
cs) | Char
cChar -> Char -> Bool
forall a. Eq a => a -> a -> Bool
==Char
'-' = Char
cChar -> String -> String
forall a. a -> [a] -> [a]
:String -> String
up1 String
cs
                          | Bool
otherwise = Char -> Char
toLower Char
cChar -> String -> String
forall a. a -> [a] -> [a]
:String -> String
downup String
cs
            rearrange :: [String] -> [String]
rearrange [] = []
            rearrange [String
c] = [String
c]
            rearrange ll :: [String]
ll@(String
n:[String]
l)
                | [String] -> String
forall a. HasCallStack => [a] -> a
last [String]
l String -> [String] -> Bool
forall a. Eq a => a -> [a] -> Bool
forall (t :: * -> *) a. (Foldable t, Eq a) => a -> t a -> Bool
`elem` [String
"of", String
"the"] Bool -> Bool -> Bool
&& String -> Char
forall a. HasCallStack => [a] -> a
last String
n Char -> Char -> Bool
forall a. Eq a => a -> a -> Bool
== Char
','
                    = (String -> String) -> [String] -> [String]
forall {a}. (a -> a) -> [a] -> [a]
onhead String -> String
up1 [String]
l[String] -> [String] -> [String]
forall a. [a] -> [a] -> [a]
++[[Char
c|Char
c<-String
n,Char
cChar -> Char -> Bool
forall a. Eq a => a -> a -> Bool
/=Char
',']]
                | Bool
otherwise = [String]
ll
            onhead :: (a -> a) -> [a] -> [a]
onhead a -> a
f [] = []
            onhead a -> a
f (a
h:[a]
r) = a -> a
f a
ha -> [a] -> [a]
forall a. a -> [a] -> [a]
:[a]
r
{- Copyright © 2010 Jón Fairbairn
-}
data CountryCode = 
   AF -- ^ Afghanistan
   |
   AX -- ^ Åland Islands
   |
   AL -- ^ Albania
   |
   DZ -- ^ Algeria
   |
   AS -- ^ American Samoa
   |
    -- ^ Andorra
   |
   AO -- ^ Angola
   |
   AI -- ^ Anguilla
   |
   AQ -- ^ Antarctica
   |
   AG -- ^ Antigua and Barbuda
   |
   AR -- ^ Argentina
   |
   AM -- ^ Armenia
   |
   AW -- ^ Aruba
   |
   AU -- ^ Australia
   |
   AT -- ^ Austria
   |
   AZ -- ^ Azerbaijan
   |
   BS -- ^ Bahamas
   |
   BH -- ^ Bahrain
   |
   BD -- ^ Bangladesh
   |
   BB -- ^ Barbados
   |
   BY -- ^ Belarus
   |
   BE -- ^ Belgium
   |
   BZ -- ^ Belize
   |
   BJ -- ^ Benin
   |
   BM -- ^ Bermuda
   |
   BT -- ^ Bhutan
   |
   BO -- ^ Bolivia, Plurinational State of
   |
   BQ -- ^ Bonaire, Sint Eustatius and Saba
   |
   BA -- ^ Bosnia and Herzegovina
   |
   BW -- ^ Botswana
   |
   BV -- ^ Bouvet Island
   |
   BR -- ^ Brazil
   |
   IO -- ^ British Indian Ocean Territory
   |
   BN -- ^ Brunei Darussalam
   |
   BG -- ^ Bulgaria
   |
   BF -- ^ Burkina Faso
   |
   BI -- ^ Burundi
   |
   KH -- ^ Cambodia
   |
   CM -- ^ Cameroon
   |
   CA -- ^ Canada
   |
   CV -- ^ Cape Verde
   |
   KY -- ^ Cayman Islands
   |
   CF -- ^ Central African Republic
   |
   TD -- ^ Chad
   |
   CL -- ^ Chile
   |
   CN -- ^ China
   |
   CX -- ^ Christmas Island
   |
   CC -- ^ Cocos (Keeling) Islands
   |
   CO -- ^ Colombia
   |
   KM -- ^ Comoros
   |
   CG -- ^ Congo
   |
   CD -- ^ Congo, the Democratic Republic of the
   |
   CK -- ^ Cook Islands
   |
   CR -- ^ Costa Rica
   |
   CI -- ^ Côte d'Ivoire
   |
   HR -- ^ Croatia
   |
   CU -- ^ Cuba
   |
   CW -- ^ Curaçao
   |
   CY -- ^ Cyprus
   |
   CZ -- ^ Czech Republic
   |
   DK -- ^ Denmark
   |
   DJ -- ^ Djibouti
   |
   DM -- ^ Dominica
   |
   DO -- ^ Dominican Republic
   |
   EC -- ^ Ecuador
   |
   EG -- ^ Egypt
   |
   SV -- ^ El Salvador
   |
   GQ -- ^ Equatorial Guinea
   |
   ER -- ^ Eritrea
   |
   EE -- ^ Estonia
   |
   ET -- ^ Ethiopia
   |
   FK -- ^ Falkland Islands (Malvinas)
   |
   FO -- ^ Faroe Islands
   |
   FJ -- ^ Fiji
   |
   FI -- ^ Finland
   |
   FR -- ^ France
   |
   GF -- ^ French Guiana
   |
   PF -- ^ French Polynesia
   |
   TF -- ^ French Southern Territories
   |
   GA -- ^ Gabon
   |
   GM -- ^ Gambia
   |
   GE -- ^ Georgia
   |
   DE -- ^ Germany
   |
   GH -- ^ Ghana
   |
   GI -- ^ Gibraltar
   |
   GR -- ^ Greece
   |
   GL -- ^ Greenland
   |
   GD -- ^ Grenada
   |
   GP -- ^ Guadeloupe
   |
   GU -- ^ Guam
   |
   GT -- ^ Guatemala
   |
   GG -- ^ Guernsey
   |
   GN -- ^ Guinea
   |
   GW -- ^ Guinea-Bissau
   |
   GY -- ^ Guyana
   |
   HT -- ^ Haiti
   |
   HM -- ^ Heard Island and McDonald Islands
   |
   VA -- ^ Holy See (Vatican City State)
   |
   HN -- ^ Honduras
   |
   HK -- ^ Hong Kong
   |
   HU -- ^ Hungary
   |
   IS -- ^ Iceland
   |
   IN -- ^ India
   |
   ID -- ^ Indonesia
   |
   IR -- ^ Iran, Islamic Republic of
   |
   IQ -- ^ Iraq
   |
   IE -- ^ Ireland
   |
   IM -- ^ Isle of Man
   |
   IL -- ^ Israel
   |
   IT -- ^ Italy
   |
   JM -- ^ Jamaica
   |
   JP -- ^ Japan
   |
   JE -- ^ Jersey
   |
   JO -- ^ Jordan
   |
   KZ -- ^ Kazakhstan
   |
   KE -- ^ Kenya
   |
   KI -- ^ Kiribati
   |
   KP -- ^ Korea, Democratic People's Republic of
   |
   KR -- ^ Korea, Republic of
   |
   KW -- ^ Kuwait
   |
   KG -- ^ Kyrgyzstan
   |
   LA -- ^ Lao People's Democratic Republic
   |
   LV -- ^ Latvia
   |
   LB -- ^ Lebanon
   |
   LS -- ^ Lesotho
   |
   LR -- ^ Liberia
   |
   LY -- ^ Libya
   |
   LI -- ^ Liechtenstein
   |
   LT -- ^ Lithuania
   |
   LU -- ^ Luxembourg
   |
   MO -- ^ Macao
   |
   MK -- ^ Macedonia, the Former Yugoslav Republic of
   |
   MG -- ^ Madagascar
   |
   MW -- ^ Malawi
   |
   MY -- ^ Malaysia
   |
   MV -- ^ Maldives
   |
   ML -- ^ Mali
   |
   MT -- ^ Malta
   |
   MH -- ^ Marshall Islands
   |
   MQ -- ^ Martinique
   |
   MR -- ^ Mauritania
   |
   MU -- ^ Mauritius
   |
   YT -- ^ Mayotte
   |
   MX -- ^ Mexico
   |
   FM -- ^ Micronesia, Federated States of
   |
   MD -- ^ Moldova, Republic of
   |
   MC -- ^ Monaco
   |
   MN -- ^ Mongolia
   |
   ME -- ^ Montenegro
   |
   MS -- ^ Montserrat
   |
   MA -- ^ Morocco
   |
   MZ -- ^ Mozambique
   |
   MM -- ^ Myanmar
   |
   NA -- ^ Namibia
   |
   NR -- ^ Nauru
   |
   NP -- ^ Nepal
   |
   NL -- ^ Netherlands
   |
   NC -- ^ New Caledonia
   |
   NZ -- ^ New Zealand
   |
   NI -- ^ Nicaragua
   |
   NE -- ^ Niger
   |
   NG -- ^ Nigeria
   |
   NU -- ^ Niue
   |
   NF -- ^ Norfolk Island
   |
   MP -- ^ Northern Mariana Islands
   |
   NO -- ^ Norway
   |
   OM -- ^ Oman
   |
   PK -- ^ Pakistan
   |
   PW -- ^ Palau
   |
   PS -- ^ Palestine, State of
   |
   PA -- ^ Panama
   |
   PG -- ^ Papua New Guinea
   |
   PY -- ^ Paraguay
   |
   PE -- ^ Peru
   |
   PH -- ^ Philippines
   |
   PN -- ^ Pitcairn
   |
   PL -- ^ Poland
   |
   PT -- ^ Portugal
   |
   PR -- ^ Puerto Rico
   |
   QA -- ^ Qatar
   |
   RE -- ^ Réunion
   |
   RO -- ^ Romania
   |
   RU -- ^ Russian Federation
   |
   RW -- ^ Rwanda
   |
   BL -- ^ Saint Barthélemy
   |
   SH -- ^ Saint Helena, Ascension and Tristan da Cunha
   |
   KN -- ^ Saint Kitts and Nevis
   |
   LC -- ^ Saint Lucia
   |
   MF -- ^ Saint Martin (French part)
   |
   PM -- ^ Saint Pierre and Miquelon
   |
   VC -- ^ Saint Vincent and the Grenadines
   |
   WS -- ^ Samoa
   |
   SM -- ^ San Marino
   |
   ST -- ^ Sao Tome and Principe
   |
   SA -- ^ Saudi Arabia
   |
   SN -- ^ Senegal
   |
   RS -- ^ Serbia
   |
   SC -- ^ Seychelles
   |
   SL -- ^ Sierra Leone
   |
   SG -- ^ Singapore
   |
   SX -- ^ Sint Maarten (Dutch part)
   |
   SK -- ^ Slovakia
   |
   SI -- ^ Slovenia
   |
   SB -- ^ Solomon Islands
   |
   SO -- ^ Somalia
   |
   ZA -- ^ South Africa
   |
   GS -- ^ South Georgia and the South Sandwich Islands
   |
   SS -- ^ South Sudan
   |
   ES -- ^ Spain
   |
   LK -- ^ Sri Lanka
   |
   SD -- ^ Sudan
   |
   SR -- ^ Suriname
   |
   SJ -- ^ Svalbard and Jan Mayen
   |
   SZ -- ^ Swaziland
   |
   SE -- ^ Sweden
   |
   CH -- ^ Switzerland
   |
   SY -- ^ Syrian Arab Republic
   |
   TW -- ^ Taiwan, Province of China
   |
   TJ -- ^ Tajikistan
   |
   TZ -- ^ Tanzania, United Republic of
   |
   TH -- ^ Thailand
   |
   TL -- ^ Timor-Leste
   |
   TG -- ^ Togo
   |
   TK -- ^ Tokelau
   |
   TO -- ^ Tonga
   |
   TT -- ^ Trinidad and Tobago
   |
   TN -- ^ Tunisia
   |
   TR -- ^ Turkey
   |
   TM -- ^ Turkmenistan
   |
   TC -- ^ Turks and Caicos Islands
   |
   TV -- ^ Tuvalu
   |
   UG -- ^ Uganda
   |
   UA -- ^ Ukraine
   |
   AE -- ^ United Arab Emirates
   |
   GB -- ^ United Kingdom
   |
   US -- ^ United States
   |
   UM -- ^ United States Minor Outlying Islands
   |
   UY -- ^ Uruguay
   |
   UZ -- ^ Uzbekistan
   |
   VU -- ^ Vanuatu
   |
   VE -- ^ Venezuela, Bolivarian Republic of
   |
   VN -- ^ Viet Nam
   |
   VG -- ^ Virgin Islands, British
   |
   VI -- ^ Virgin Islands, U.S.
   |
   WF -- ^ Wallis and Futuna
   |
   EH -- ^ Western Sahara
   |
   YE -- ^ Yemen
   |
   ZM -- ^ Zambia
   |
   ZW -- ^ Zimbabwe
#if __GLASGOW_HASKELL__ >= 701
   deriving (CountryCode -> CountryCode -> Bool
(CountryCode -> CountryCode -> Bool)
-> (CountryCode -> CountryCode -> Bool) -> Eq CountryCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CountryCode -> CountryCode -> Bool
== :: CountryCode -> CountryCode -> Bool
$c/= :: CountryCode -> CountryCode -> Bool
/= :: CountryCode -> CountryCode -> Bool
P.Eq,ReadPrec [CountryCode]
ReadPrec CountryCode
Int -> ReadS CountryCode
ReadS [CountryCode]
(Int -> ReadS CountryCode)
-> ReadS [CountryCode]
-> ReadPrec CountryCode
-> ReadPrec [CountryCode]
-> Read CountryCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
$creadsPrec :: Int -> ReadS CountryCode
readsPrec :: Int -> ReadS CountryCode
$creadList :: ReadS [CountryCode]
readList :: ReadS [CountryCode]
$creadPrec :: ReadPrec CountryCode
readPrec :: ReadPrec CountryCode
$creadListPrec :: ReadPrec [CountryCode]
readListPrec :: ReadPrec [CountryCode]
P.Read,Int -> CountryCode -> String -> String
[CountryCode] -> String -> String
CountryCode -> String
(Int -> CountryCode -> String -> String)
-> (CountryCode -> String)
-> ([CountryCode] -> String -> String)
-> Show CountryCode
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
$cshowsPrec :: Int -> CountryCode -> String -> String
showsPrec :: Int -> CountryCode -> String -> String
$cshow :: CountryCode -> String
show :: CountryCode -> String
$cshowList :: [CountryCode] -> String -> String
showList :: [CountryCode] -> String -> String
P.Show,Int -> CountryCode
CountryCode -> Int
CountryCode -> [CountryCode]
CountryCode -> CountryCode
CountryCode -> CountryCode -> [CountryCode]
CountryCode -> CountryCode -> CountryCode -> [CountryCode]
(CountryCode -> CountryCode)
-> (CountryCode -> CountryCode)
-> (Int -> CountryCode)
-> (CountryCode -> Int)
-> (CountryCode -> [CountryCode])
-> (CountryCode -> CountryCode -> [CountryCode])
-> (CountryCode -> CountryCode -> [CountryCode])
-> (CountryCode -> CountryCode -> CountryCode -> [CountryCode])
-> Enum CountryCode
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
$csucc :: CountryCode -> CountryCode
succ :: CountryCode -> CountryCode
$cpred :: CountryCode -> CountryCode
pred :: CountryCode -> CountryCode
$ctoEnum :: Int -> CountryCode
toEnum :: Int -> CountryCode
$cfromEnum :: CountryCode -> Int
fromEnum :: CountryCode -> Int
$cenumFrom :: CountryCode -> [CountryCode]
enumFrom :: CountryCode -> [CountryCode]
$cenumFromThen :: CountryCode -> CountryCode -> [CountryCode]
enumFromThen :: CountryCode -> CountryCode -> [CountryCode]
$cenumFromTo :: CountryCode -> CountryCode -> [CountryCode]
enumFromTo :: CountryCode -> CountryCode -> [CountryCode]
$cenumFromThenTo :: CountryCode -> CountryCode -> CountryCode -> [CountryCode]
enumFromThenTo :: CountryCode -> CountryCode -> CountryCode -> [CountryCode]
P.Enum,CountryCode
CountryCode -> CountryCode -> Bounded CountryCode
forall a. a -> a -> Bounded a
$cminBound :: CountryCode
minBound :: CountryCode
$cmaxBound :: CountryCode
maxBound :: CountryCode
P.Bounded,Eq CountryCode
Eq CountryCode =>
(CountryCode -> CountryCode -> Ordering)
-> (CountryCode -> CountryCode -> Bool)
-> (CountryCode -> CountryCode -> Bool)
-> (CountryCode -> CountryCode -> Bool)
-> (CountryCode -> CountryCode -> Bool)
-> (CountryCode -> CountryCode -> CountryCode)
-> (CountryCode -> CountryCode -> CountryCode)
-> Ord CountryCode
CountryCode -> CountryCode -> Bool
CountryCode -> CountryCode -> Ordering
CountryCode -> CountryCode -> CountryCode
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
$ccompare :: CountryCode -> CountryCode -> Ordering
compare :: CountryCode -> CountryCode -> Ordering
$c< :: CountryCode -> CountryCode -> Bool
< :: CountryCode -> CountryCode -> Bool
$c<= :: CountryCode -> CountryCode -> Bool
<= :: CountryCode -> CountryCode -> Bool
$c> :: CountryCode -> CountryCode -> Bool
> :: CountryCode -> CountryCode -> Bool
$c>= :: CountryCode -> CountryCode -> Bool
>= :: CountryCode -> CountryCode -> Bool
$cmax :: CountryCode -> CountryCode -> CountryCode
max :: CountryCode -> CountryCode -> CountryCode
$cmin :: CountryCode -> CountryCode -> CountryCode
min :: CountryCode -> CountryCode -> CountryCode
P.Ord,(forall x. CountryCode -> Rep CountryCode x)
-> (forall x. Rep CountryCode x -> CountryCode)
-> Generic CountryCode
forall x. Rep CountryCode x -> CountryCode
forall x. CountryCode -> Rep CountryCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x. CountryCode -> Rep CountryCode x
from :: forall x. CountryCode -> Rep CountryCode x
$cto :: forall x. Rep CountryCode x -> CountryCode
to :: forall x. Rep CountryCode x -> CountryCode
G.Generic)
#else
   deriving (P.Eq,P.Read,P.Show,P.Enum,P.Bounded,P.Ord)
#endif

{-|
  convert a country code to the official (English) name of the country

   see @'readableCountryName'@ for something with a more pleasing word order and capitalisation
-}
countryNameFromCode:: CountryCode -> P.String
countryNameFromCode :: CountryCode -> String
countryNameFromCode CountryCode
AF = String
"Afghanistan"
countryNameFromCode CountryCode
AX = String
"Åland Islands"
countryNameFromCode CountryCode
AL = String
"Albania"
countryNameFromCode CountryCode
DZ = String
"Algeria"
countryNameFromCode CountryCode
AS = String
"American Samoa"
countryNameFromCode CountryCode
AD = String
"Andorra"
countryNameFromCode CountryCode
AO = String
"Angola"
countryNameFromCode CountryCode
AI = String
"Anguilla"
countryNameFromCode CountryCode
AQ = String
"Antarctica"
countryNameFromCode CountryCode
AG = String
"Antigua and Barbuda"
countryNameFromCode CountryCode
AR = String
"Argentina"
countryNameFromCode CountryCode
AM = String
"Armenia"
countryNameFromCode CountryCode
AW = String
"Aruba"
countryNameFromCode CountryCode
AU = String
"Australia"
countryNameFromCode CountryCode
AT = String
"Austria"
countryNameFromCode CountryCode
AZ = String
"Azerbaijan"
countryNameFromCode CountryCode
BS = String
"Bahamas"
countryNameFromCode CountryCode
BH = String
"Bahrain"
countryNameFromCode CountryCode
BD = String
"Bangladesh"
countryNameFromCode CountryCode
BB = String
"Barbados"
countryNameFromCode CountryCode
BY = String
"Belarus"
countryNameFromCode CountryCode
BE = String
"Belgium"
countryNameFromCode CountryCode
BZ = String
"Belize"
countryNameFromCode CountryCode
BJ = String
"Benin"
countryNameFromCode CountryCode
BM = String
"Bermuda"
countryNameFromCode CountryCode
BT = String
"Bhutan"
countryNameFromCode CountryCode
BO = String
"Bolivia, Plurinational State of"
countryNameFromCode CountryCode
BQ = String
"Bonaire, Sint Eustatius and Saba"
countryNameFromCode CountryCode
BA = String
"Bosnia and Herzegovina"
countryNameFromCode CountryCode
BW = String
"Botswana"
countryNameFromCode CountryCode
BV = String
"Bouvet Island"
countryNameFromCode CountryCode
BR = String
"Brazil"
countryNameFromCode CountryCode
IO = String
"British Indian Ocean Territory"
countryNameFromCode CountryCode
BN = String
"Brunei Darussalam"
countryNameFromCode CountryCode
BG = String
"Bulgaria"
countryNameFromCode CountryCode
BF = String
"Burkina Faso"
countryNameFromCode CountryCode
BI = String
"Burundi"
countryNameFromCode CountryCode
KH = String
"Cambodia"
countryNameFromCode CountryCode
CM = String
"Cameroon"
countryNameFromCode CountryCode
CA = String
"Canada"
countryNameFromCode CountryCode
CV = String
"Cape Verde"
countryNameFromCode CountryCode
KY = String
"Cayman Islands"
countryNameFromCode CountryCode
CF = String
"Central African Republic"
countryNameFromCode CountryCode
TD = String
"Chad"
countryNameFromCode CountryCode
CL = String
"Chile"
countryNameFromCode CountryCode
CN = String
"China"
countryNameFromCode CountryCode
CX = String
"Christmas Island"
countryNameFromCode CountryCode
CC = String
"Cocos (Keeling) Islands"
countryNameFromCode CountryCode
CO = String
"Colombia"
countryNameFromCode CountryCode
KM = String
"Comoros"
countryNameFromCode CountryCode
CG = String
"Congo"
countryNameFromCode CountryCode
CD = String
"Congo, the Democratic Republic of the"
countryNameFromCode CountryCode
CK = String
"Cook Islands"
countryNameFromCode CountryCode
CR = String
"Costa Rica"
countryNameFromCode CountryCode
CI = String
"Côte d'Ivoire"
countryNameFromCode CountryCode
HR = String
"Croatia"
countryNameFromCode CountryCode
CU = String
"Cuba"
countryNameFromCode CountryCode
CW = String
"Curaçao"
countryNameFromCode CountryCode
CY = String
"Cyprus"
countryNameFromCode CountryCode
CZ = String
"Czech Republic"
countryNameFromCode CountryCode
DK = String
"Denmark"
countryNameFromCode CountryCode
DJ = String
"Djibouti"
countryNameFromCode CountryCode
DM = String
"Dominica"
countryNameFromCode CountryCode
DO = String
"Dominican Republic"
countryNameFromCode CountryCode
EC = String
"Ecuador"
countryNameFromCode CountryCode
EG = String
"Egypt"
countryNameFromCode CountryCode
SV = String
"El Salvador"
countryNameFromCode CountryCode
GQ = String
"Equatorial Guinea"
countryNameFromCode CountryCode
ER = String
"Eritrea"
countryNameFromCode CountryCode
EE = String
"Estonia"
countryNameFromCode CountryCode
ET = String
"Ethiopia"
countryNameFromCode CountryCode
FK = String
"Falkland Islands (Malvinas)"
countryNameFromCode CountryCode
FO = String
"Faroe Islands"
countryNameFromCode CountryCode
FJ = String
"Fiji"
countryNameFromCode CountryCode
FI = String
"Finland"
countryNameFromCode CountryCode
FR = String
"France"
countryNameFromCode CountryCode
GF = String
"French Guiana"
countryNameFromCode CountryCode
PF = String
"French Polynesia"
countryNameFromCode CountryCode
TF = String
"French Southern Territories"
countryNameFromCode CountryCode
GA = String
"Gabon"
countryNameFromCode CountryCode
GM = String
"Gambia"
countryNameFromCode CountryCode
GE = String
"Georgia"
countryNameFromCode CountryCode
DE = String
"Germany"
countryNameFromCode CountryCode
GH = String
"Ghana"
countryNameFromCode CountryCode
GI = String
"Gibraltar"
countryNameFromCode CountryCode
GR = String
"Greece"
countryNameFromCode CountryCode
GL = String
"Greenland"
countryNameFromCode CountryCode
GD = String
"Grenada"
countryNameFromCode CountryCode
GP = String
"Guadeloupe"
countryNameFromCode CountryCode
GU = String
"Guam"
countryNameFromCode CountryCode
GT = String
"Guatemala"
countryNameFromCode CountryCode
GG = String
"Guernsey"
countryNameFromCode CountryCode
GN = String
"Guinea"
countryNameFromCode CountryCode
GW = String
"Guinea-Bissau"
countryNameFromCode CountryCode
GY = String
"Guyana"
countryNameFromCode CountryCode
HT = String
"Haiti"
countryNameFromCode CountryCode
HM = String
"Heard Island and McDonald Islands"
countryNameFromCode CountryCode
VA = String
"Holy See (Vatican City State)"
countryNameFromCode CountryCode
HN = String
"Honduras"
countryNameFromCode CountryCode
HK = String
"Hong Kong"
countryNameFromCode CountryCode
HU = String
"Hungary"
countryNameFromCode CountryCode
IS = String
"Iceland"
countryNameFromCode CountryCode
IN = String
"India"
countryNameFromCode CountryCode
ID = String
"Indonesia"
countryNameFromCode CountryCode
IR = String
"Iran, Islamic Republic of"
countryNameFromCode CountryCode
IQ = String
"Iraq"
countryNameFromCode CountryCode
IE = String
"Ireland"
countryNameFromCode CountryCode
IM = String
"Isle of Man"
countryNameFromCode CountryCode
IL = String
"Israel"
countryNameFromCode CountryCode
IT = String
"Italy"
countryNameFromCode CountryCode
JM = String
"Jamaica"
countryNameFromCode CountryCode
JP = String
"Japan"
countryNameFromCode CountryCode
JE = String
"Jersey"
countryNameFromCode CountryCode
JO = String
"Jordan"
countryNameFromCode CountryCode
KZ = String
"Kazakhstan"
countryNameFromCode CountryCode
KE = String
"Kenya"
countryNameFromCode CountryCode
KI = String
"Kiribati"
countryNameFromCode CountryCode
KP = String
"Korea, Democratic People's Republic of"
countryNameFromCode CountryCode
KR = String
"Korea, Republic of"
countryNameFromCode CountryCode
KW = String
"Kuwait"
countryNameFromCode CountryCode
KG = String
"Kyrgyzstan"
countryNameFromCode CountryCode
LA = String
"Lao People's Democratic Republic"
countryNameFromCode CountryCode
LV = String
"Latvia"
countryNameFromCode CountryCode
LB = String
"Lebanon"
countryNameFromCode CountryCode
LS = String
"Lesotho"
countryNameFromCode CountryCode
LR = String
"Liberia"
countryNameFromCode CountryCode
LY = String
"Libya"
countryNameFromCode CountryCode
LI = String
"Liechtenstein"
countryNameFromCode CountryCode
LT = String
"Lithuania"
countryNameFromCode CountryCode
LU = String
"Luxembourg"
countryNameFromCode CountryCode
MO = String
"Macao"
countryNameFromCode CountryCode
MK = String
"Macedonia, the Former Yugoslav Republic of"
countryNameFromCode CountryCode
MG = String
"Madagascar"
countryNameFromCode CountryCode
MW = String
"Malawi"
countryNameFromCode CountryCode
MY = String
"Malaysia"
countryNameFromCode CountryCode
MV = String
"Maldives"
countryNameFromCode CountryCode
ML = String
"Mali"
countryNameFromCode CountryCode
MT = String
"Malta"
countryNameFromCode CountryCode
MH = String
"Marshall Islands"
countryNameFromCode CountryCode
MQ = String
"Martinique"
countryNameFromCode CountryCode
MR = String
"Mauritania"
countryNameFromCode CountryCode
MU = String
"Mauritius"
countryNameFromCode CountryCode
YT = String
"Mayotte"
countryNameFromCode CountryCode
MX = String
"Mexico"
countryNameFromCode CountryCode
FM = String
"Micronesia, Federated States of"
countryNameFromCode CountryCode
MD = String
"Moldova, Republic of"
countryNameFromCode CountryCode
MC = String
"Monaco"
countryNameFromCode CountryCode
MN = String
"Mongolia"
countryNameFromCode CountryCode
ME = String
"Montenegro"
countryNameFromCode CountryCode
MS = String
"Montserrat"
countryNameFromCode CountryCode
MA = String
"Morocco"
countryNameFromCode CountryCode
MZ = String
"Mozambique"
countryNameFromCode CountryCode
MM = String
"Myanmar"
countryNameFromCode CountryCode
NA = String
"Namibia"
countryNameFromCode CountryCode
NR = String
"Nauru"
countryNameFromCode CountryCode
NP = String
"Nepal"
countryNameFromCode CountryCode
NL = String
"Netherlands"
countryNameFromCode CountryCode
NC = String
"New Caledonia"
countryNameFromCode CountryCode
NZ = String
"New Zealand"
countryNameFromCode CountryCode
NI = String
"Nicaragua"
countryNameFromCode CountryCode
NE = String
"Niger"
countryNameFromCode CountryCode
NG = String
"Nigeria"
countryNameFromCode CountryCode
NU = String
"Niue"
countryNameFromCode CountryCode
NF = String
"Norfolk Island"
countryNameFromCode CountryCode
MP = String
"Northern Mariana Islands"
countryNameFromCode CountryCode
NO = String
"Norway"
countryNameFromCode CountryCode
OM = String
"Oman"
countryNameFromCode CountryCode
PK = String
"Pakistan"
countryNameFromCode CountryCode
PW = String
"Palau"
countryNameFromCode CountryCode
PS = String
"Palestine, State of"
countryNameFromCode CountryCode
PA = String
"Panama"
countryNameFromCode CountryCode
PG = String
"Papua New Guinea"
countryNameFromCode CountryCode
PY = String
"Paraguay"
countryNameFromCode CountryCode
PE = String
"Peru"
countryNameFromCode CountryCode
PH = String
"Philippines"
countryNameFromCode CountryCode
PN = String
"Pitcairn"
countryNameFromCode CountryCode
PL = String
"Poland"
countryNameFromCode CountryCode
PT = String
"Portugal"
countryNameFromCode CountryCode
PR = String
"Puerto Rico"
countryNameFromCode CountryCode
QA = String
"Qatar"
countryNameFromCode CountryCode
RE = String
"Réunion"
countryNameFromCode CountryCode
RO = String
"Romania"
countryNameFromCode CountryCode
RU = String
"Russian Federation"
countryNameFromCode CountryCode
RW = String
"Rwanda"
countryNameFromCode CountryCode
BL = String
"Saint Barthélemy"
countryNameFromCode CountryCode
SH = String
"Saint Helena, Ascension and Tristan da Cunha"
countryNameFromCode CountryCode
KN = String
"Saint Kitts and Nevis"
countryNameFromCode CountryCode
LC = String
"Saint Lucia"
countryNameFromCode CountryCode
MF = String
"Saint Martin (French part)"
countryNameFromCode CountryCode
PM = String
"Saint Pierre and Miquelon"
countryNameFromCode CountryCode
VC = String
"Saint Vincent and the Grenadines"
countryNameFromCode CountryCode
WS = String
"Samoa"
countryNameFromCode CountryCode
SM = String
"San Marino"
countryNameFromCode CountryCode
ST = String
"Sao Tome and Principe"
countryNameFromCode CountryCode
SA = String
"Saudi Arabia"
countryNameFromCode CountryCode
SN = String
"Senegal"
countryNameFromCode CountryCode
RS = String
"Serbia"
countryNameFromCode CountryCode
SC = String
"Seychelles"
countryNameFromCode CountryCode
SL = String
"Sierra Leone"
countryNameFromCode CountryCode
SG = String
"Singapore"
countryNameFromCode CountryCode
SX = String
"Sint Maarten (Dutch part)"
countryNameFromCode CountryCode
SK = String
"Slovakia"
countryNameFromCode CountryCode
SI = String
"Slovenia"
countryNameFromCode CountryCode
SB = String
"Solomon Islands"
countryNameFromCode CountryCode
SO = String
"Somalia"
countryNameFromCode CountryCode
ZA = String
"South Africa"
countryNameFromCode CountryCode
GS = String
"South Georgia and the South Sandwich Islands"
countryNameFromCode CountryCode
SS = String
"South Sudan"
countryNameFromCode CountryCode
ES = String
"Spain"
countryNameFromCode CountryCode
LK = String
"Sri Lanka"
countryNameFromCode CountryCode
SD = String
"Sudan"
countryNameFromCode CountryCode
SR = String
"Suriname"
countryNameFromCode CountryCode
SJ = String
"Svalbard and Jan Mayen"
countryNameFromCode CountryCode
SZ = String
"Swaziland"
countryNameFromCode CountryCode
SE = String
"Sweden"
countryNameFromCode CountryCode
CH = String
"Switzerland"
countryNameFromCode CountryCode
SY = String
"Syrian Arab Republic"
countryNameFromCode CountryCode
TW = String
"Taiwan, Province of China"
countryNameFromCode CountryCode
TJ = String
"Tajikistan"
countryNameFromCode CountryCode
TZ = String
"Tanzania, United Republic of"
countryNameFromCode CountryCode
TH = String
"Thailand"
countryNameFromCode CountryCode
TL = String
"Timor-Leste"
countryNameFromCode CountryCode
TG = String
"Togo"
countryNameFromCode CountryCode
TK = String
"Tokelau"
countryNameFromCode CountryCode
TO = String
"Tonga"
countryNameFromCode CountryCode
TT = String
"Trinidad and Tobago"
countryNameFromCode CountryCode
TN = String
"Tunisia"
countryNameFromCode CountryCode
TR = String
"Turkey"
countryNameFromCode CountryCode
TM = String
"Turkmenistan"
countryNameFromCode CountryCode
TC = String
"Turks and Caicos Islands"
countryNameFromCode CountryCode
TV = String
"Tuvalu"
countryNameFromCode CountryCode
UG = String
"Uganda"
countryNameFromCode CountryCode
UA = String
"Ukraine"
countryNameFromCode CountryCode
AE = String
"United Arab Emirates"
countryNameFromCode CountryCode
GB = String
"United Kingdom"
countryNameFromCode CountryCode
US = String
"United States"
countryNameFromCode CountryCode
UM = String
"United States Minor Outlying Islands"
countryNameFromCode CountryCode
UY = String
"Uruguay"
countryNameFromCode CountryCode
UZ = String
"Uzbekistan"
countryNameFromCode CountryCode
VU = String
"Vanuatu"
countryNameFromCode CountryCode
VE = String
"Venezuela, Bolivarian Republic of"
countryNameFromCode CountryCode
VN = String
"Viet Nam"
countryNameFromCode CountryCode
VG = String
"Virgin Islands, British"
countryNameFromCode CountryCode
VI = String
"Virgin Islands, U.S."
countryNameFromCode CountryCode
WF = String
"Wallis and Futuna"
countryNameFromCode CountryCode
EH = String
"Western Sahara"
countryNameFromCode CountryCode
YE = String
"Yemen"
countryNameFromCode CountryCode
ZM = String
"Zambia"
countryNameFromCode CountryCode
ZW = String
"Zimbabwe"