Top |
lt_lang_t * | lt_lang_ref () |
void | lt_lang_unref () |
const char * | lt_lang_get_name () |
const char * | lt_lang_get_better_tag () |
const char * | lt_lang_get_tag () |
const char * | lt_lang_get_preferred_tag () |
const char * | lt_lang_get_suppress_script () |
const char * | lt_lang_get_macro_language () |
const char * | lt_lang_get_scope () |
void | lt_lang_dump () |
lt_bool_t | lt_lang_compare () |
void
lt_lang_unref (lt_lang_t *lang
);
Decreases the reference count of lang
. when its reference count
drops to 0, the object is finalized (i.e. its memory is freed).
const char *
lt_lang_get_name (const lt_lang_t *lang
);
Obtains the description of the subtag.
const char *
lt_lang_get_better_tag (const lt_lang_t *lang
);
Obtains the better tag for use. this is a convenient function to get the preferred-value if available.
const char *
lt_lang_get_preferred_tag (const lt_lang_t *lang
);
Obtains the preferred-value. this is available only when the tag is marked as deprecated.
const char *
lt_lang_get_suppress_script (const lt_lang_t *lang
);
Obtains the suppress-script value. which shouldn't be used to form language tags with the associated primary or extended language subtag.
const char *
lt_lang_get_macro_language (const lt_lang_t *lang
);
Obtains the macrolanguage being assigned for the subtag. This is available only when the subtag is registered as the macrolanguage in ISO 639-3.
const char *
lt_lang_get_scope (const lt_lang_t *lang
);
Obtains the scope value indicating the type of language code according to ISO 639.
void
lt_lang_dump (const lt_lang_t *lang
);
Dumps the container information to the standard output.
typedef struct _lt_lang_t lt_lang_t;
All the fields in the lt_lang_t structure are private to the lt_lang_t implementation.