Gettext/Checking-API
From Get docs
Previous: Format Type API, Up: libgettextpo [Contents][Index]
9.13.8 Checking API
- Function
- void po_file_check_all (po_file_t
file
, po_xerror_handler_thandler
) - Tests whether the entire
file
is valid, likemsgfmt
does it. If it is invalid, passes the reasons tohandler
.
- Function
- void po_message_check_all (po_message_t
message
, po_message_iterator_titerator
, po_xerror_handler_thandler
) - Tests
message
, to be inserted atiterator
in a PO file in memory, likemsgfmt
does it. If it is invalid, passes the reasons tohandler
.iterator
is not modified by this call; it only specifies the file and the domain.
- Function: void po_message_check_format (po_message_t
message
, po_xerror_handler_thandler
) Tests whether the message translation from
message
is a valid format string if the message is marked as being a format string. If it is invalid, passes the reasons tohandler
.This function is exported as ‘
po_message_check_format_v2
’ at ABI level, but is defined aspo_message_check_format
in C code after the inclusion of ‘<gettext-po.h>
’.