Top |
lt_region_db_t * | lt_region_db_new () |
lt_region_db_t * | lt_region_db_ref () |
void | lt_region_db_unref () |
lt_region_t * | lt_region_db_lookup () |
This class provides an interface to access Region database. which has been registered as ISO 3166-1 and UN M.49 code.
lt_region_db_t *
lt_region_db_new (void
);
Create a new instance of a lt_region_db_t.
lt_region_db_t *
lt_region_db_ref (lt_region_db_t *regiondb
);
Increases the reference count of regiondb
.
void
lt_region_db_unref (lt_region_db_t *regiondb
);
Decreases the reference count of regiondb
. when its reference count
drops to 0, the object is finalized (i.e. its memory is freed).
lt_region_t * lt_region_db_lookup (lt_region_db_t *regiondb
,const char *language_or_code
);
Lookup lt_region_t
if language_or_code
is valid and registered into
the database.
typedef struct _lt_region_db_t lt_region_db_t;
All the fields in the lt_region_db_t structure are private to the lt_region_db_t implementation.