38 lines
918 B
C++
38 lines
918 B
C++
/* -----------------------------------------------------------------------------
|
|
GSFramework
|
|
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
|
----------------------------------------------------------------------------- */
|
|
|
|
|
|
#ifndef __NCOUNTRY__
|
|
#define __NCOUNTRY__
|
|
|
|
|
|
#include "nstring/nstring.h"
|
|
|
|
|
|
namespace GS {
|
|
namespace Locale {
|
|
|
|
struct Info
|
|
{
|
|
String continent, region, country, fips, iso2, iso3;
|
|
int iso;
|
|
String internet;
|
|
};
|
|
|
|
// FIPS 10-4: American National Standard Codes for the Representation of Names of Countries, Dependencies, and Areas of Special Sovereignty for Information Interchange.
|
|
const Info *GetFIPSCountry(const char *);
|
|
// ISO 3166: Two-character.
|
|
const Info *GetISO2Country(const char *);
|
|
// ISO 3166: Three-character.
|
|
const Info *GetISO3Country(const char *);
|
|
// ISO 3166: Three-digit.
|
|
const Info *GetISOCountry(int);
|
|
|
|
} // Locale
|
|
} // GS
|
|
|
|
|
|
#endif // __NCOUNTRY__
|