Gettext/PO-Header-Entry-API
From Get docs
Next: po_filepos_t API, Previous: po_message_t API, Up: libgettextpo [Contents][Index]
9.13.5 PO Header Entry API
The following functions provide an interface to extract and manipulate
the header entry (see Header Entry) from a file loaded in memory.
The meta information must be written back into the domain message with
the empty string as msgid
.
- Function
- const char * po_file_domain_header (po_file_t
file
, const char *domain
) - Returns the header entry of a domain from
file
, a PO file loaded in memory. The valueNULL
provided asdomain
denotes the default domain. ReturnsNULL
if there is no header entry.
- Function
- char * po_header_field (const char *
header
, const char *field
) - Returns the value of
field
in theheader
entry. The return value is either a freshly allocated string, to be freed by the caller, orNULL
.
- Function
- char * po_header_set_field (const char *
header
, const char *field
, const char *value
) - Returns a freshly allocated string which contains the entry from
header
withfield
set tovalue
. The field is added if necessary.