Top |
lt_lang_db_t * | lt_lang_db_new () |
lt_lang_db_t * | lt_lang_db_ref () |
void | lt_lang_db_unref () |
lt_lang_t * | lt_lang_db_lookup () |
This class provides an interface to access Language database. which has been registered as ISO 639 code.
lt_lang_db_t *
lt_lang_db_ref (lt_lang_db_t *langdb
);
Increases the reference count of langdb
.
void
lt_lang_db_unref (lt_lang_db_t *langdb
);
Decreases the reference count of langdb
. when its reference count
drops to 0, the object is finalized (i.e. its memory is freed).
lt_lang_t * lt_lang_db_lookup (lt_lang_db_t *langdb
,const char *subtag
);
Lookup lt_lang_t
if subtag
is valid and registered into the database.
typedef struct _lt_lang_db_t lt_lang_db_t;
All the fields in the lt_lang_db_t structure are private to the lt_lang_db_t implementation.