|  |  |  | liblangtag Documentation |  | 
|---|---|---|---|---|
| Top | Description | ||||
lt_bool_t lt_script_compare (const lt_script_t *v1,const lt_script_t *v2); const char * lt_script_convert_to_modifier (const lt_script_t *script); void lt_script_dump (const lt_script_t *script); const char * lt_script_get_name (const lt_script_t *script); const char * lt_script_get_tag (const lt_script_t *script); lt_script_t * lt_script_ref (lt_script_t *script); lt_script_t; void lt_script_unref (lt_script_t *script);
lt_bool_t lt_script_compare (const lt_script_t *v1,const lt_script_t *v2);
Compare if v1 and v2 is the same object or not.
| 
 | a lt_script_t. | 
| 
 | a lt_script_t. | 
| Returns : | TRUEif it's the same, otherwiseFALSE. | 
const char *        lt_script_convert_to_modifier       (const lt_script_t *script);
Convert the script subtag to the locale variant modifier.
| 
 | a lt_script_t. | 
| Returns : | a modifier string or NULL. | 
void                lt_script_dump                      (const lt_script_t *script);
Dumps the container information to the standard output.
| 
 | a lt_script_t. | 
const char *        lt_script_get_name                  (const lt_script_t *script);
Obtains the description of the subtag.
| 
 | a lt_script_t. | 
| Returns : | a description string. | 
const char *        lt_script_get_tag                   (const lt_script_t *script);
Obtains the tag name.
| 
 | a lt_script_t. | 
| Returns : | a tag string. | 
lt_script_t *       lt_script_ref                       (lt_script_t *script);
Increases the reference count of script.
| 
 | a lt_script_t. | 
| Returns : | the same scriptobject. [transfer none] | 
typedef struct _lt_script_t lt_script_t;
All the fields in the lt_script_t structure are private to the lt_script_t implementation.
void                lt_script_unref                     (lt_script_t *script);
Decreases the reference count of script. when its reference count
drops to 0, the object is finalized (i.e. its memory is freed).
| 
 | a lt_script_t. |