Gettext/po 005ffilepos 005ft-API
From Get docs
Next: Format Type API, Previous: PO Header Entry API, Up: libgettextpo [Contents][Index]
9.13.6 po_filepos_t API
- Data Type
- po_filepos_t
- This is a pointer type that refers to a string’s position within a source file.
The following functions provide an interface to extract and manipulate these references.
- Function
- po_filepos_t po_message_filepos (po_message_t
message, intindex) - Returns the file reference in position
indexfrom the message. Ifindexis out of range, returnsNULL.
- Function
- void po_message_remove_filepos (po_message_t
message, intindex) - Removes the file reference in position
indexfrom the message. It moves all references followingindexone position backwards.
- Function
- void po_message_add_filepos (po_message_t
message, const char *file, size_tstart_line) - Adds a reference to the string from
filestarting atstart_line, if it is not already present for the message. The value(size_t)(-1)forstart_linedenotes that the line number is not available.