first commit
This commit is contained in:
37
include/platform/locale/country.h
Normal file
37
include/platform/locale/country.h
Normal file
@ -0,0 +1,37 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
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__
|
||||
Reference in New Issue
Block a user