|
|
Methods
|
LookupCountryCodeByName(CountryCode) :
|
Looks up country code
using the name supplied.
var aCountry = 'Sweden' ;
var countryCode = CountryUtils.LookupCountryCodeByName( aCountry );
// countryCode: 'SE'
|
|
|
LookupCountryCodeByNumber(CountryNumber) :
|
Returns the country code
for the given country number
var aCountryNumber = 752 ;
var countryCode = CountryUtils.LookupCountryCodeByNumber( aCountryNumber );
// countryCode: 'SE'
|
|
|
LookupCountryNameByCode(CountryCode) :
|
Returns the country name
for the given country code
var aCountryNumber = 752;
var aCountry = CountryUtils.LookupCountryCodeByName( aCountryNumber );
// aCountry: 'Sweden'
|
|
|
LookupCountryNameByNumber(CountryNumber) :
|
Returns the country name
for the given country number
aCountryNumber = 752;
aCountry = CountryUtils.LookupCountryNameByNumber( aCountryNumber );
// aCountry: 'Sweden'
|
|
|
LookupCountryNumberByCode(CountryCode) :
|
Returns the country name
for the given country code
aCountryCode = 'SE';
aCountryNumber = CountryUtils.LookupCountryNumberByCode( aCountryCode );
// aCountryNumber: 752
|
|
|
LookupCountryNumberByName(CountryName) :
|
Returns the country
number for the given country name
aCountry = 'Sweden';
aCountryNumber = CountryUtils.LookupCountryNumberByName( aCountry );
// aCountryNumber: 752
|