![]() |
![]() |
![]() |
liblangtag Documentation | ![]() |
---|---|---|---|---|
Top | Description |
lt_bool_t lt_region_compare (const lt_region_t *v1
,const lt_region_t *v2
); void lt_region_dump (const lt_region_t *region
); const char * lt_region_get_better_tag (const lt_region_t *region
); const char * lt_region_get_name (const lt_region_t *region
); const char * lt_region_get_preferred_tag (const lt_region_t *region
); const char * lt_region_get_tag (const lt_region_t *region
); lt_region_t * lt_region_ref (lt_region_t *region
); lt_region_t; void lt_region_unref (lt_region_t *region
);
lt_bool_t lt_region_compare (const lt_region_t *v1
,const lt_region_t *v2
);
Compare if v1
and v2
is the same object or not.
|
a lt_region_t. |
|
a lt_region_t. |
Returns : |
TRUE if it's the same, otherwise FALSE . |
void lt_region_dump (const lt_region_t *region
);
Dumps the container information to the standard output.
|
a lt_region_t. |
const char * lt_region_get_better_tag (const lt_region_t *region
);
Obtains the better tag for use. this is a convenient function to get the preferred-value if available.
|
a lt_region_t. |
Returns : |
a tag string. |
const char * lt_region_get_name (const lt_region_t *region
);
Obtains the description of the subtag.
|
a lt_region_t. |
Returns : |
a description string. |
const char * lt_region_get_preferred_tag (const lt_region_t *region
);
Obtains the preferred-value. this is available only when the tag is marked as deprecated.
|
a lt_region_t. |
Returns : |
a preferred-value for the tag or NULL . |
const char * lt_region_get_tag (const lt_region_t *region
);
Obtains the tag name.
|
a lt_region_t. |
Returns : |
a tag string. |
lt_region_t * lt_region_ref (lt_region_t *region
);
Increases the reference count of region
.
|
a lt_region_t. |
Returns : |
the same region object. [transfer none]
|
typedef struct _lt_region_t lt_region_t;
All the fields in the lt_region_t structure are private to the lt_region_t implementation.
void lt_region_unref (lt_region_t *region
);
Decreases the reference count of region
. when its reference count
drops to 0, the object is finalized (i.e. its memory is freed).
|
a lt_region_t. |