>From 84cc940fd185ae46ef90525bed05590b4db80f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?= Date: Mon, 6 May 2019 17:00:38 +0200 Subject: [PATCH 13/15] doc: Update po_message_t API (IV) * gettext-tools/doc/gettext.texi (po_message_t API): Add po_message_is_obsolete, po_message_set_obsolete, po_message_is_fuzzy, po_message_set_fuzzy, po_message_is_format, po_message_set_format, po_message_is_range, and po_message_set_range documentation. --- gettext-tools/doc/gettext.texi | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gettext-tools/doc/gettext.texi b/gettext-tools/doc/gettext.texi index 012a880a7..71642b9d8 100644 --- a/gettext-tools/doc/gettext.texi +++ b/gettext-tools/doc/gettext.texi @@ -5578,6 +5578,55 @@ comments of a message to the value @var{extracted_comments}, a multiline string, ending in a newline, or a address@hidden empty string. @end deftypefun address@hidden {int} po_message_is_obsolete (po_message_t @var{message}) +The @code{po_message_is_obsolete} function returns true when the message +is marked as obsolete. address@hidden deftypefun + address@hidden {void} po_message_set_obsolete (po_message_t @var{message},@ + int @var{obsolete}) +The @code{po_message_set_obsolete} function changes the obsolete mark of +the message. address@hidden deftypefun + address@hidden {int} po_message_is_fuzzy (po_message_t @var{message}) +The @code{po_message_is_fuzzy} function returns true when the message +is marked as fuzzy. address@hidden deftypefun + address@hidden {void} po_message_set_fuzzy (po_message_t @var{message},@ + int @var{fuzzy}) +The @code{po_message_set_fuzzy} function changes the fuzzy mark of +the message. address@hidden deftypefun + address@hidden {int} po_message_is_format (po_message_t @var{message},@ + const char address@hidden) +The @code{po_message_is_format} function returns true when the message +is marked as being a format string of @var{format_type}. address@hidden deftypefun + address@hidden {void} po_message_set_format (po_message_t @var{message},@ + const char address@hidden, int @var{value}) +The @code{po_message_set_fuzzy} function changes the format mark of +the message for the @var{format_type} provided. address@hidden deftypefun + address@hidden {int} po_message_is_range (po_message_t @var{message},@ + int address@hidden, int address@hidden) +The @code{po_message_is_range} function returns true when the message +has a numeric range set, and stores the minimum and maximum value in the +direction pointed by @var{minp} and @var{maxp} respectively. address@hidden deftypefun + address@hidden {void} po_message_set_range (po_message_t @var{message},@ + int @var{min}, int @var{max}) +The @code{po_message_set_range} function changes the numeric range of +the message. @var{min} and @var{max} must be non-negative, with address@hidden < @var{max}. Use @var{min} and @var{max} with value @code{-1} +to remove the numeric range of @var{message} address@hidden deftypefun + @node PO Header Entry API @subsection PO Header Entry API -- 2.21.0