{-# 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
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"
up1 (Char
'M':Char
'C':String
l) = String
"Mc"String -> String -> String
forall a. [a] -> [a] -> [a]
++String -> String
up1 String
l
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 [] = []
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
data CountryCode =
AF
|
AX
|
AL
|
DZ
|
AS
|
AD
|
AO
|
AI
|
AQ
|
AG
|
AR
|
AM
|
AW
|
AU
|
AT
|
AZ
|
BS
|
BH
|
BD
|
BB
|
BY
|
BE
|
BZ
|
BJ
|
BM
|
BT
|
BO
|
BQ
|
BA
|
BW
|
BV
|
BR
|
IO
|
BN
|
BG
|
BF
|
BI
|
KH
|
CM
|
CA
|
CV
|
KY
|
CF
|
TD
|
CL
|
CN
|
CX
|
CC
|
CO
|
KM
|
CG
|
CD
|
CK
|
CR
|
CI
|
HR
|
CU
|
CW
|
CY
|
CZ
|
DK
|
DJ
|
DM
|
DO
|
EC
|
EG
|
SV
|
GQ
|
ER
|
EE
|
ET
|
FK
|
FO
|
FJ
|
FI
|
FR
|
GF
|
PF
|
TF
|
GA
|
GM
|
GE
|
DE
|
GH
|
GI
|
GR
|
GL
|
GD
|
GP
|
GU
|
GT
|
GG
|
GN
|
GW
|
GY
|
HT
|
HM
|
VA
|
HN
|
HK
|
HU
|
IS
|
IN
|
ID
|
IR
|
IQ
|
IE
|
IM
|
IL
|
IT
|
JM
|
JP
|
JE
|
JO
|
KZ
|
KE
|
KI
|
KP
|
KR
|
KW
|
KG
|
LA
|
LV
|
LB
|
LS
|
LR
|
LY
|
LI
|
LT
|
LU
|
MO
|
MK
|
MG
|
MW
|
MY
|
MV
|
ML
|
MT
|
MH
|
MQ
|
MR
|
MU
|
YT
|
MX
|
FM
|
MD
|
MC
|
MN
|
ME
|
MS
|
MA
|
MZ
|
MM
|
NA
|
NR
|
NP
|
NL
|
NC
|
NZ
|
NI
|
NE
|
NG
|
NU
|
NF
|
MP
|
NO
|
OM
|
PK
|
PW
|
PS
|
PA
|
PG
|
PY
|
PE
|
PH
|
PN
|
PL
|
PT
|
PR
|
QA
|
RE
|
RO
|
RU
|
RW
|
BL
|
SH
|
KN
|
LC
|
MF
|
PM
|
VC
|
WS
|
SM
|
ST
|
SA
|
SN
|
RS
|
SC
|
SL
|
SG
|
SX
|
SK
|
SI
|
SB
|
SO
|
ZA
|
GS
|
SS
|
ES
|
LK
|
SD
|
SR
|
SJ
|
SZ
|
SE
|
CH
|
SY
|
TW
|
TJ
|
TZ
|
TH
|
TL
|
TG
|
TK
|
TO
|
TT
|
TN
|
TR
|
TM
|
TC
|
TV
|
UG
|
UA
|
AE
|
GB
|
US
|
UM
|
UY
|
UZ
|
VU
|
VE
|
VN
|
VG
|
VI
|
WF
|
EH
|
YE
|
ZM
|
ZW
#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
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"